News aggregator

#77: Define an order for concepts in dumps to be arranged in

Development Tickets - Fri, 01/09/2009 - 21:06

Ordering taxonoic ranks alphabetically makes little sense so it should be possible to determine an arbitrary order for taxonomic ranks

Categories: Everything else

#72: Make it possible to migrate and accepted term to an alternate and vice versa

Development Tickets - Fri, 01/09/2009 - 21:06

Currently standard concepts and terms cannot change into eachother, and for management this makes a bit of a nightmare. We need to be able to switch between the two types fairly easily. This comes from the problem with taxonomic ranks for which there are currently many variations on particular rank terms. For example the following all match the term 'order'

order

superorder infraorder magnorder microorder parvorder grandorder nanorder suborder minorder mirorder hypoorder hyperorder capaxorder megaorder gigaorder

These could probably all be covered by Superorder, Order and Suborder.

Categories: Everything else

#69: create views for Browse>Taxon Ranks

Development Tickets - Fri, 01/09/2009 - 21:06

Links on http://gbif.myspecies.info/en/node/53978 do not work - views need to be created.

Categories: Everything else

#65: Only list external identifiers as dc:identifier

Development Tickets - Fri, 01/09/2009 - 21:06

Currently we are listing dc:URI and dc:identifier, both of which point to internal. If we use dc:identifier and in this provide a URI a semantic agent would know that we're talking about that specific concept at that URI.

The reason why this became apparent was the fact that in particular for ranks there are many redundant ranks eg terms matching 'order' are: order superorder infraorder magnorder microorder parvorder grandorder nanorder suborder minorder mirorder hypoorder hyperorder capaxorder megaorder gigaorder

Most of these are rarely if ever used, and it is practical to map them to a more narrowly defined group of concepts such as Superorder, Order and Suborder

Categories: Everything else

#60: Add URI field to standard content types

Development Tickets - Fri, 01/09/2009 - 21:06

URI field required for standard content types so this can be included as the identifier Unfortunately ISO doesn't provide URI's for country and ranks, although they _do_ provide identifiers

Categories: Everything else

#59: Combine query keys for rest responses

Development Tickets - Fri, 01/09/2009 - 21:06

enhancement to #58. eg ..country?dc:title=Arab&dc:lang=fr

Categories: Everything else

#58: Better RESTful URL structure

Development Tickets - Fri, 01/09/2009 - 21:06

Select namespace by last value of the url, then select method by first key-value pair of $_GET http://gbif.myspecies.info/services/rest/country // full dictionary returned http://gbif.myspecies.info/services/rest/country?dc:title= // returns those where the title matches http://gbif.myspecies.info/services/rest/country?dc:identifier= // returns those where identifier matches http://gbif.myspecies.info/services/rest/country?dc:lang= // returns only results in that language (can be used for exporting full) In summary: Choose data type as namespace at the last part of the URL. Infer method being called by the first argument / key

Categories: Everything else

#57: Make ranks available following the TDWG ontology

Development Tickets - Fri, 01/09/2009 - 21:06

example layout

 <TaxonRankTerm rdf:ID="SpecialForm">
      <rdfs:label>f. sp.</rdfs:label>
      <dc:title>f. sp.</dc:title>
      <base:definition> The ICBN does not formally cover formae
 specialis (art. 4, note 3). However, because of the economic
importance of pathogenic f. sp., and since it is common practice
 to handle them as if the code would apply (i. e. priority
usually observed, name quoted with author), they are included here. </base:definition>
   </TaxonRankTerm>

This should be sent to roger hyam for inclusion in the TDWG Rank ontology http://rs.tdwg.org/ontology/voc/TaxonRank

Categories: Everything else

#56: use lowerCamelCase in the rest server rather than underscore_separated

Development Tickets - Fri, 01/09/2009 - 21:06

eg iso2DigitCountryCode instead of iso_2_digit_country_code

Possibly do this in country_service_format_node()?

Categories: Everything else

#55: Work out why isoquery works fine through php cli but not through mod_php

Development Tickets - Fri, 01/09/2009 - 21:06

running

isoquery  af

returns

AF	AFG	004	Afghanistan

running

isoquery -l pt

returns

AF	AFG	004	Afeganistão

Calling this using exec() (or any of the other system commands such as system()) works fine using the php command line interpreter, but when this is run through mod_php it reverts to the english.

I've done some digging around and it looks like it may be something to do with apache resetting (emptying) the environment variables (see http://ubuntuforums.org/archive/index.php/t-357056.html).

Categories: Everything else

#53: create gbif_getdata module

Development Tickets - Fri, 01/09/2009 - 21:06

Work on #50 requires this facility

Categories: Everything else

#51: Add comment form to the bottom of the Countries page

Development Tickets - Fri, 01/09/2009 - 21:06

For some reason the comment panel doesn't appear on the countries page even though it's defined using the same code as ranks and languages

Categories: Everything else

#50: add iso-codes from the debian package

Development Tickets - Fri, 01/09/2009 - 21:06

http://pkg-isocodes.alioth.debian.org/ is a source of iso code data plus translations in various locales. On a debian system this can be installed using

apt-get install iso-codes

These codes by default are installed at

/usr/share/xml/iso-codes/

There is also a package which can be used to access the iso-codes in different locales called isoquery

apt-get install isoquery

Here's the isoquery man page: ISOQUERY(1) NAME

isoquery - Search and display various ISO codes (country, language, ...) SYNOPSIS

isoquery [options] [file] [ISO codes] DESCRIPTION

This manual page documents briefly the isoquery command. It can be used to generate a tabular output of the ISO standard codes provided by the package iso-codes. It parses the XML files and shows all included ISO codes or just matching entries, if specified on the command line. Moreover, it's possible to get all available translations for the ISO standard. OPTIONS

This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). isoquery supports the following options:

-i, --iso=NUMBER

The ISO standard to use. Possible values: 639, 3166, 4217, 15924 (default: 3166)

-n, --name

Name for the supplied codes (default)

-o, --official_name

Official name for the supplied codes. This may be the same as --name.

-c, --common_name

Common name for the supplied codes. This may be the same as --name.

-l, --locale=LOCALE

Use this locale for output.

-x, --xmlfile=FILE

Use another XML file with ISO data. (default: /usr/share/xml/iso-codes/iso_3166.xml)

-0, --null

Separate entries with a NULL character instead of newline.

-h, --help

Show summary of options.

-v, --version

Show program version and copyright.

EXAMPLES

If called without any command line options, isoquery will put out a table of all ISO 3166 codes. The first three columns contain the alpha-2 code, the alpha-3 code, and the numerical code assigned to the country listed in the fourth column. $ isoquery AF AFG 004 Afghanistan [...] ZW ZWE 716 Zimbabwe If you need only some countries, you can specify any of the codes in the first three columns to cut down the output. $ isoquery so nor 484 SO SOM 706 Somalia NO NOR 578 Norway MX MEX 484 Mexico Should you need the translations of the countries' names, just specify in which locale you'd like to see the output. Please note that the original English name will be shown if there is no translation available for the specified locale. $ isoquery --locale=nl fr de es FR FRA 250 Frankrijk DE DEU 276 Duitsland ES ESP 724 Spanje All of the above works for different ISO standards as well, so you can switch to language names by using the --iso command line option. For ISO 639, the first three columns are the ISO 639 2B code, the ISO 639 2T code and the ISO 639-1 code. The third column may be empty. $ isoquery --iso=639 aar aar aa Afar abk abk ab Abkhazian ace ace Achinese [...] zun zun Zuni zxx zxx No linguistic content zza zza Zaza; Dimili; Dimli; Kirdki You can trim down the results by specifying only some codes. Moreover, the option to get translated names is also available. $ isoquery --iso=639 --locale=pt vi bo kl vie vie vi Vietnamita tib bod bo tibetano kal kal kl Kalaallisut; Greenlandic You can get selected translations of currency names from the ISO 4217 standard by using the following command. The first two columns are the alpha-3 code and the numerical code assigned to the currency. $ isoquery --iso=4217 --locale=da cad 392 CAD 124 Canadisk dollar JPY 392 Japansk yen If you need to get script names, you can use the ISO 15924 table. The first two columns are the alpha-4 code and the numerical code assigned to the script. $ isoquery --iso=15924 jpan latn 280 Jpan 413 Japanese (alias for Han + Hiragana + Katakana) Latn 215 Latin Visp 280 Visible Speech FILES

By default, the XML files provided by the iso-codes package will be used.

/usr/share/xml/iso-codes/iso_639.xml

/usr/share/xml/iso-codes/iso_3166.xml

/usr/share/xml/iso-codes/iso_4217.xml

/usr/share/xml/iso-codes/iso_15924.xml LICENSE

Copyright (C) 2007-2008 Tobias Toedter <toddy@…>

Isoquery is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

Isoquery is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. AUTHOR

Tobias Toedter <toddy@…>

Categories: Everything else

#49: add geonames block to country

Development Tickets - Fri, 01/09/2009 - 21:06

List country information from geonames including neighbours

Categories: Everything else

#46: resource select list only showing title

Development Tickets - Fri, 01/09/2009 - 21:06

Ideally this should show author(Biblio: Authors), year (Biblio: Year of Publication), Title (Node: Title), Journal or Book Name( Biblio: Secondary Title), Volume (Biblio: Volume) and pages (Biblio: Pagination).

Categories: Everything else
Syndicate content
Scratchpads developed and conceived by: Vince Smith, Simon Rycroft & Dave Roberts