Community-curated SPARQL example queries for multiple life-science endpoints.
Simple test of making a distribution map (using my own SPARQL client). Note that several records of this caddis fly occur in the middle of the Atlantic :O
PREFIX dwc: <http://rs.tdwg.org/dwc/terms/>
PREFIX dwciri: <http://rs.tdwg.org/dwc/iri/>
SELECT * WHERE {
?taxon dwc:genericName "Smicridea" .
?taxon dwc:scientificName ?scientificName .
?occurrence dwciri:toTaxon ?taxon .
?occurrence dwciri:inDescribedPlace <https://www.example.org/namedLocation/BR> .
?occurrence dwc:decimalLatitude ?latitude .
?occurrence dwc:decimalLongitude ?longitude .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?latitude"):::projected
v5("?longitude"):::projected
v3("?occurrence"):::projected
v2("?scientificName"):::projected
v1("?taxon"):::projected
c2(["Smicridea"]):::literal
c6([https://www.example.org/namedLocation/BR]):::iri
v1 --http://rs.tdwg.org/dwc/terms/genericName--> c2
v1 --http://rs.tdwg.org/dwc/terms/scientificName--> v2
v3 --http://rs.tdwg.org/dwc/iri/toTaxon--> v1
v3 --http://rs.tdwg.org/dwc/iri/inDescribedPlace--> c6
v3 --http://rs.tdwg.org/dwc/terms/decimalLatitude--> v4
v3 --http://rs.tdwg.org/dwc/terms/decimalLongitude--> v5