query-ac7ab5050fbf304dc341600377018d7d
Properties missing a label or description in a given language (ex: Odia) (April 2018)Properties missing a label or description in a given languageSource query:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?property ?propertyLabel ?propertyDescription ?datatype ?missingLbl ?missingDesc
WHERE {
?property wikibase:propertyType ?datatype .
OPTIONAL { ?property rdfs:label ?missingLbl . FILTER(LANG(?missingLbl) = 'or') }
OPTIONAL { ?property schema:description ?missingDesc . FILTER(LANG(?missingDesc) = 'or') }
FILTER(!BOUND(?missingLbl) || !BOUND(?missingDesc)) .
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?datatype"):::projected
v2("?missingDesc"):::projected
v1("?missingLbl"):::projected
v3("?property"):::projected
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
f0[["(not bound(?missingLbl) || not bound(?missingDesc))"]]
f0 --> v1
f0 --> v2
v3 --"wikibase:propertyType"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."schema:description".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end