579
edits
Line 1,485: | Line 1,485: | ||
<sparql tryit="1"> | <sparql tryit="1"> | ||
# Query to look for uses of <unknown value> | # Query to look for uses of <unknown value> (now including qualifiers) | ||
PREFIX bnwd: <https://beyond-notability.wikibase.cloud/entity/> | PREFIX bnwd: <https://beyond-notability.wikibase.cloud/entity/> | ||
Line 1,495: | Line 1,495: | ||
PREFIX bnpq: <https://beyond-notability.wikibase.cloud/prop/qualifier/> | PREFIX bnpq: <https://beyond-notability.wikibase.cloud/prop/qualifier/> | ||
SELECT distinct ? | SELECT distinct ?item ?itemLabel ?stmtLabel ?sub_Label ?unknown_value_forLabel ?unknown_value_for | ||
WHERE | WHERE | ||
{ | { | ||
{ | |||
# top level items | |||
?item ?p ?s. | |||
?s ?sub ?sub_ . | |||
?stmt wikibase:claim ?p. | |||
?stmt wikibase:statementProperty ?sub. | |||
?s ?pq ?pq_ . | |||
?unknown_value_for wikibase:qualifier ?pq . | |||
FILTER( isBLANK(?pq_) ) . | |||
} | |||
UNION | |||
{ | |||
# qualifiers | |||
?item ?p ?statement. | |||
?statement ?ps ?ps_ . | |||
?unknown_value_for wikibase:claim ?p. | |||
?unknown_value_for wikibase:statementProperty ?ps. | |||
FILTER( isBLANK(?ps_) ) . | |||
} | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } | |||
} | } | ||
ORDER BY ?itemLabel ?unknown_value_forLabel | |||
</sparql> | </sparql> |
edits