query-4b9ce9296f20b42be38f426d9f26db77
Items with OMIM and missing an fr-label
SELECT ?item ?itemLabel { ?item wdt:P492 ?dumy0. FILTER NOT EXISTS { ?item rdfs:label ?frlabel . FILTER( LANG( ?frlabel ) = "fr" ) . } . SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" } . }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Items with OMIM and missing an fr-label
SELECT ?item ?itemLabel {
?item wdt:P492 ?dumy0.
FILTER NOT EXISTS {
?item rdfs:label ?frlabel .
FILTER( LANG( ?frlabel ) = "fr" ) .
} .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?dumy0")
v1("?frlabel")
v2("?item"):::projected
c5(["bd:serviceParam"]):::iri
c7(["fr,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?frlabel = 'fr'"]]
e0f0 --> e0v1
e0v2 --"rdfs:label"--> e0v1
e0v1("?frlabel"):::projected
e0v2("?item"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> c2
f1[["?frlabel = 'fr'"]]
f1 --> v1
v2 --"rdfs:label"--> v1
v2 --"wdt:P492"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end