query-da9aaed2b98ac960b777cd32ea6a5ea1
stated in : Q20087097 but without P304 08:25, 20 October 2017 (UTC)) talk (Innocent bystanderI am looking for items which have (any) statements with P248:Q20087097 as source, but which lack the page number (P304). This is not a high priority fix, but it is still something I try to take care of. -- Hope I got it right:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?property ?propertyLabel ?value WHERE {
?refhandle pr:P248 wd:Q20087097 .
MINUS { ?refhandle pr:P304 [] }
?property wikibase:claim ?claim; wikibase:statementProperty ?statementProperty .
?item ?claim [ prov:wasDerivedFrom ?refhandle; ?statementProperty ?value ] .
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
} ORDER BY ?item
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?claim")
v1("?item"):::projected
v3("?property"):::projected
v2("?refhandle")
v5("?statementProperty")
v6("?value"):::projected
a1((" "))
a2((" "))
c2(["wd:Q20087097"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
v2 --"pr:P248"--> c2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"pr:P304"--> a1
end
v3 --"wikibase:claim"--> v4
v3 --"wikibase:statementProperty"--> v5
a2 --"prov:wasDerivedFrom"--> v2
a2 -->v5--> v6
v1 -->v4--> a2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end