Updated TDWG BioBlitz SPARQL Example
I have a link to a bit.ly bundle for the query and screenshots.
* It is possible that the LOD cache will be updating to the new version when you read this, so if the live query does not work the bundle has screen shots that will.
The query text is below. Note it is set to return just 500 records. Depending on the time of day etc. I had some issues with Pivot so I set the limit to 500 rather than 1005.
Attributes like time:month and time:dayOfYear are useful for browsing the data for patterns (maybe not in this BioBlitz example)
Also, I limit the records to those from the BioBlitz using the predicate dcterms:isPartOf
select distinct ?s, ?o as ?image, ?kingdom, ?phylum, ?class, ?order, ?family, ?genus, ?sciname, ?cname, ?month, ?observer, ?lat, ?long where {
?s rdf:type txn:Occurrence.
?s txn:kingdom ?kingdom.
?s txn:phylum ?phylum.
?s txn:class ?class.
?s txn:order ?order.
?s txn:family ?family.
?s txn:genus ?genus.
?s txn:hasScientificName ?sciname.
?s time:month ?month.
?s cc:attributionName ?observer.
optional {?s foaf:depiction ?o.
?s txn:commonName ?cname.
?s geo:lat ?lat.
?s geo:long ?long.
}.
}
limit 500
The live SPARQL No Pivot Query (my endpoint - just a table, but all observations)
http://bit.ly/mPd8vi
Here are some direct links, there are more on
bit.ly
Also I changed the observation and species RDF a little to make some queries easier.
------------------------------------------------------------------------------------
Pete DeVries
Department of Entomology
University of Wisconsin - Madison
445 Russell Laboratories
1630 Linden Drive
Madison, WI 53706
Email:
pdevries@wisc.eduTaxonConcept &
GeoSpecies Knowledge Bases
A Semantic Web,
Linked Open Data Project
--------------------------------------------------------------------------------------