Skip to content

Instantly share code, notes, and snippets.

@beauvais
Created February 10, 2012 17:08
Show Gist options
  • Save beauvais/1790986 to your computer and use it in GitHub Desktop.
Save beauvais/1790986 to your computer and use it in GitHub Desktop.
Crab Recipes in Kasabi's Food dataset
Sample SPARQL query to find Crab Recipes in Kasabi's [food](http://kasabi.com/dataset/food) dataset.
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX recipe: <http://linkedrecipes.org/schema/>
SELECT ?label ?recipe WHERE {
<http://data.kasabi.com/dataset/food/foods/crab> recipe:ingredient_of ?recipe .
?recipe a recipe:Recipe .
?recipe rdfs:label ?label .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment