Skip to content

Instantly share code, notes, and snippets.

@Lewiscowles1986
Created February 1, 2018 16:06
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 Lewiscowles1986/60ea4173a4e23be63228951e0f3fbbdd to your computer and use it in GitHub Desktop.
Save Lewiscowles1986/60ea4173a4e23be63228951e0f3fbbdd to your computer and use it in GitHub Desktop.
SPARQL on RDF
PREFIX vCard: <http://www.w3.org/2001/vcard-rdf/3.0#>
SELECT ?lastName ?firstName
FROM <http://jena.apache.org/tutorials/sparql_data/vc-db-1.rdf>
WHERE {
?x vCard:Family ?lastName .
?x vCard:Given ?firstName .
?x vCard:Family "Jones"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment