factsmission / synospecies

Using Plazi Data to find currently accepted scientific names
https://synospecies.plazi.org/
MIT License
5 stars 1 forks source link

Add example query for synonyms based on name #39

Open retog opened 4 years ago

retog commented 4 years ago
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX treat: <http://plazi.org/vocab/treatment#>
PREFIX dwc: <http://rs.tdwg.org/dwc/terms/>
SELECT DISTINCT ?tc ?genus ?species WHERE {
  ?t dwc:genus "Rhinolophus" .
  ?t dwc:species "euryale". 
MINUS { ?t dwc:subSpecies ?subspecies.}
  ?t ((^treat:deprecates/(treat:augmentsTaxonConcept|treat:definesTaxonConcept))|((^treat:augmentsTaxonConcept|^treat:definesTaxonConcept)/treat:deprecates))* ?tc .
  ?tc a <http://filteredpush.org/ontologies/oa/dwcFP#TaxonConcept> .
  ?tc dwc:genus ?genus .
  ?tc dwc:species ?species. 
}