Add example query for synonyms based on name
Opened this issue · 0 comments
retog commented
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.
}