Open main menu

User:YULdigitalpreservation/nutritionInfo

Let's get more nutrition information in WikidataEdit

SPARQL QueriesEdit

Items with USDA NDB idEdit

The following query uses these:

  • Properties: USDA NDB number (P1978)    
    1 SELECT ?item ?itemLabel ?value
    2 WHERE 
    3 {
    4   ?item wdt:P1978 ?value .
    5   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
    6 }
    

Items with a OpenFoodFacts ingredient idEdit

The following query uses these:

  • Properties: Open Food Facts ingredient ID (P5930)    
    1 SELECT ?item ?itemLabel ?value
    2 {
    3 	?item wdt:P5930 ?value .
    4 	SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } 
    5 }
    

Items with a CIQUAL2017 idEdit

The following query uses these:

  • Properties: CIQUAL2017 ID (P4696)    
    1 SELECT ?item ?itemLabel ?value
    2 WHERE 
    3 {
    4   ?item wdt:P4696 ?value .
    5   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
    6 }
    

ShEx SchemasEdit

PropertiesEdit

External DatabasesEdit