Dataset Food
Published 10th February 2012
Updated 12th April 2012
Resources 1150048

Kasabi Food dataset is about food and cooking. We are gathering recipes, food descriptions, cooking techniques and tools from multiple sources into a single dataset and republishing the data using the Linked Recipes vocabulary.

Explore the dataset
Default APIs

SPARQL Endpoint

Use the SPARQL 1.1 query language to perform structured queries against a dataset. Useful for performing precise queries against a dataset whose structure you understand.

Sample queries

Query: 
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX lr: <http://linkedrecipes.org/schema/> SELECT DISTINCT ?type ( COUNT(?type) AS ?count ) WHERE { ?s a ?type . } GROUP BY ?type
Login to test this query using our experimental API explorer Permalink to this sample query
Query: 
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 . }
Login to test this query using our experimental API explorer Permalink to this sample query
Query: 
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX lr: <http://linkedrecipes.org/schema/> DESCRIBE ?recipe WHERE { ?recipe a lr:Recipe . } LIMIT 10
Login to test this query using our experimental API explorer Permalink to this sample query
Query: 
PREFIX recipe: <http://linkedrecipes.org/schema/> SELECT DISTINCT ?cuisine WHERE { ?cuisine a recipe:Cuisine . }
Login to test this query using our experimental API explorer Permalink to this sample query
08th Feb 2012
Query: 
DESCRIBE <http://data.kasabi.com/dataset/food/foods/basil>
Login to test this query using our experimental API explorer Permalink to this sample query
Query: 
PREFIX recipe: <http://linkedrecipes.org/schema/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dct: <http://purl.org/dc/terms/> SELECT ?technique (COUNT(?method) AS ?count) ?label ?description { ?recipe recipe:required_technique ?technique . ?technique a recipe:Technique . ?technique rdfs:label ?label . ?technique dct:description ?description . } GROUP BY ?technique ?label ?description ORDER BY DESC(?count) LIMIT 20
Login to test this query using our experimental API explorer Permalink to this sample query
Query: 
PREFIX recipe: <http://linkedrecipes.org/schema/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dct: <http://purl.org/dc/terms/> SELECT ?technique (COUNT(?method) AS ?count) ?label ?description { ?recipe recipe:required_technique ?technique . ?technique a recipe:Technique . ?technique rdfs:label ?label . ?technique dct:description ?description . } GROUP BY ?technique ?label ?description ORDER BY ASC(?count) LIMIT 20
Login to test this query using our experimental API explorer Permalink to this sample query
Query: 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX recipe: <http://linkedrecipes.org/schema/> SELECT DISTINCT ?label ?food WHERE { ?food a recipe:Food . ?food rdfs:label ?label . } LIMIT 1000
Login to test this query using our experimental API explorer Permalink to this sample query

Just a semantic description of recipes with onion as ingredient 

Query: 
DESCRIBE ?recipe WHERE { <http://data.kasabi.com/dataset/food/foods/onion> <http://linkedrecipes.org/schema/ingredient_of> ?recipe . }
Login to test this query using our experimental API explorer Permalink to this sample query
15th Apr 2012

test

Query: 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX recipe: <http://linkedrecipes.org/schema/> SELECT ?recipe ?label WHERE { ?recipe a recipe:Recipe . ?recipe rdfs:label ?label . }
Login to test this query using our experimental API explorer Permalink to this sample query
Create a sample query

Search API

Perform a free-text search against the text fields indexed in a dataset. Useful when you want to quickly query a dataset but don't know, or need to know its structure. There is also a solr search endpoint allowing more complex queries.

Lookup API

Retrieve a description of a single resource. Useful for fetching the key properties and relationships of a single entity.

Reconciliation API

Useful for resolving names, labels or codes against a dataset in Kasabi to find links to more data. This API is compatible with the Google Refine tool.

How to Attribute This Dataset

Kasabi provides a quick and easy way to attribute a dataset from any webpage. We think attribution is an important community norm.

To directly embed an attribution message in a webpage, add a script tag that invokes our Attribution API as follows

<script
     type="text/javascript"
     src="http://api.kasabi.com/dataset/food/attribution">
</script>

If you need more flexible options, then read the Attribution API documentation

Contributed APIs