-
Notifications
You must be signed in to change notification settings - Fork 19
Dictionary: plant_genus
ShweataNHegde edited this page Feb 8, 2021
·
3 revisions
Shweata N. Hegde
- The dictionary contains all the major plant genera.
- It's created using GRIN ID (https://en.wikipedia.org/wiki/Germplasm_Resources_Information_Network). We can replace GRIN Id with something else if we find a much more reliable database in Wikidata.
#Plant Genera
SELECT ?plant_genus ?plant_genusLabel ?GRINid ?plant_genusAltLabel
WHERE
{
?plant_genus wdt:P31 wd:Q16521. # Give me all items which are instance of taxon
?plant_genus wdt:P105 wd:Q34740. # Give me all taxon with taxon rank 'genera'
?plant_genus wdt:P1421 ?GRINid. # genera with grin id
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Click here to run the above SPARQL query on the Wikidata query service.
amidict -vv --dictionary plant_genus --directory plant_genus_dictionary --input plant_genus_sparql.xml create --informat wikisparqlxml --sparqlmap wikidataURL=plant_genus,term=plant_genusLabel,GRINid=GRINid,wikidataURL=plant_genus --transformName wikidataID=EXTRACT(wikidataURL,.*/(.*)) --synonyms=wikidataAltLabel
https://github.com/petermr/CEVOpen/blob/master/dictionary/plant_genus/plant_genus_sparql.xml
https://github.com/petermr/CEVOpen/blob/master/dictionary/plant_genus/plant_genus.xml
** Contains ~25,000 terms **
https://github.com/petermr/CEVOpen/blob/master/dictionary/plant_genus/plant_genus.md
- Add metadata
- dictionary owner
- date of creation
- Restful URL of the query
- Add property id to the dictionary (P1421)