|
OPTIONAL { ?wd rdfs:label ?wdLabel . FILTER(LANG(?wdLabel) = "en") } #Retrieve the label from Wikidata for the metabolite |
Since OPTIONAL sections will be run by QLever separately, this will ask for labels for all elements, making it relatively slow. You can reduce this by adding further restrictions.
So, please add ?wd wdt:P235 [] . so that you have this:
OPTIONAL { ?wd wdt:P235 [] . ?wd rdfs:label ?wdLabel . FILTER(LANG(?wdLabel) = "en") }
Please apply to all labels in QLever queries.
SPARQLQueries/4.Federated/InChIKey_to_Wikidata_for_ChEBI_and_HMDB.rq
Line 31 in aab0d17
Since OPTIONAL sections will be run by QLever separately, this will ask for labels for all elements, making it relatively slow. You can reduce this by adding further restrictions.
So, please add
?wd wdt:P235 [] .so that you have this:Please apply to all labels in QLever queries.