Skip to content

Instantly share code, notes, and snippets.

@baskaufs
Created June 2, 2015 16:34
Show Gist options
  • Save baskaufs/01685861c6cb49f79433 to your computer and use it in GitHub Desktop.
Save baskaufs/01685861c6cb49f79433 to your computer and use it in GitHub Desktop.
Use case 4: find access URLs for Good Quality SAPs of white oak leaves
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX dcmitype: <http://purl.org/dc/dcmitype/>
PREFIX dwc: <http://rs.tdwg.org/dwc/terms/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX ac: <http://rs.tdwg.org/ac/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dwciri: <http://rs.tdwg.org/dwc/iri/>
PREFIX dsw: <http://purl.org/dsw/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX mbank: <http://www.morphbank.net/schema/morphbank#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xmp: <http://ns.adobe.com/xap/1.0/>
PREFIX xmpRights: <http://ns.adobe.com/xap/1.0/rights/>
PREFIX blocal: <http://bioimages.vanderbilt.edu/rdf/local#>
PREFIX tc: <http://rs.tdwg.org/ontology/voc/TaxonConcept#>
PREFIX Iptc4xmpExt: <http://iptc.org/std/Iptc4xmpExt/2008-02-29/>
SELECT DISTINCT ?url
WHERE {
?identification dwc:genus "Quercus".
?identification dwc:specificEpithet "alba".
?organism dsw:hasIdentification ?identification.
?organism foaf:depiction ?image.
?image Iptc4xmpExt:CVterm ?view.
?view rdfs:subClassOf ?featureCategory.
?featureCategory rdfs:label "leaf".
?image ac:hasServiceAccessPoint ?sap.
?sap ac:variant ac:GoodQuality.
?sap ac:accessURI ?url.
}
LIMIT 10
@baskaufs
Copy link
Author

baskaufs commented Jun 2, 2015

Scientific name specified as Quercus alba (white oak). The view hierarchy is specified at http://bioimages.vanderbilt.edu/rdf/stdview.rdf The service access point properties are at http://terms.tdwg.org/wiki/Audubon_Core_Term_List#Service_Access_Point_Vocabulary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment