Koetai SPARQL examples

Community-curated SPARQL example queries for multiple life-science endpoints.

View the Project on GitHub Koetai/sparql-examples

issues_annotated_to_specific_occurences_observations

rq turtle/ttl

In GBIF issues remains regarding occurrences, this query lists their times and frequencey

Use at

PREFIX dwc: <http://rs.tdwg.org/dwc/terms/>
SELECT ?issue (COUNT(*) AS ?n) WHERE {
  ?occ dwc:issue ?issue .
} GROUP BY ?issue ORDER BY DESC(?n)
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v3("?issue"):::projected 
  v4("?n")
  v2("?occ")
  v2 --http://rs.tdwg.org/dwc/terms/issue-->  v3
  bind1[/"count(*)"/]
  bind1 --as--o v4