-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Sometimes there are some alternative names for the ingredients too, which are shown with the altLabel.
We can use this names in our ingredients name file list to suggest more sensible names to the user.
For instance for the ingredient "Chicken" these are the lables:
http://www.w3.org/2000/01/rdf-schema#label "Chicken Breast"
http://www.w3.org/2004/02/skos/core#altLabel "chicken"
And both of them are pointing to a same ID.
If we want to use altLabel too, then the sending query should be changed a little bit for these tags:
PREFIX rdfs: http://www.w3.org/2004/02/skos/core#
SELECT ?food_id WHERE{
GRAPH ?g { ?food_id rdfs:altLabel 'Chicken' .}
}
Reactions are currently unavailable