Skip to content

Instantly share code, notes, and snippets.

@michimau
Created January 18, 2023 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michimau/e9f1fff2796664870f0668f00272f378 to your computer and use it in GitHub Desktop.
Save michimau/e9f1fff2796664870f0668f00272f378 to your computer and use it in GitHub Desktop.
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX euniss: <http://eunis.eea.europa.eu/rdf/species-schema.rdf#>
PREFIX eunist: <http://eunis.eea.europa.eu/rdf/taxonomies-schema.rdf#>
PREFIX dwcterms: <http://rs.tdwg.org/dwc/terms/>
SELECT DISTINCT
?speciesURI
?species
?photo
?genusURI
?genus
?familyURI
?family
?classURI
?class
?phylumURI
?phylum
?kingdomURI
?kingdom
WHERE {
#FILTER ( ?speciesURI = <http://eunis.eea.europa.eu/species/1367>)
?speciesURI a euniss:SpeciesSynonym .
{{
SELECT ?photo ?speciesURI
WHERE {
?speciesURI <http://xmlns.com/foaf/0.1/depiction> ?photo .
}
}}
?speciesURI euniss:binomialName ?species .
?speciesURI dwcterms:genus ?genus .
#
FILTER ( ?family = 'Canidae' )
?speciesURI euniss:taxonomy ?familyURI .
?familyURI rdfs:label ?family .
?familyURI eunist:parent ?orderURI .
?orderURI eunist:parent ?classURI .
?classURI rdfs:label ?class .
?classURI eunist:parent ?phylumURI .
?phylumURI rdfs:label ?phylum .
?phylumURI eunist:parent ?kingdomURI .
?kingdomURI rdfs:label ?kingdom .
} limit 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment