query-c3f878d01dc3dbda40cbc020f64aef9e
When I obtain the values of the property, the query gives all the values regardless of whether they have a reference or not:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?value
WHERE
{
VALUES ?typo { wd:Q5 wd:Q21070568 wd:Q64520857 wd:Q64643615 wd:Q75855169 }
VALUES ?time { wd:Q17167 wd:Q2815472 wd:Q2839628 wd:Q6106068 }
?item wdt:P31 ?typo ;
wdt:P2348 ?time ;
wdt:P3716 ?value ;
p:P3716 [ prov:wasDerivedFrom [ pr:P248 wd:Q100166489 ] ] .
SERVICE wikibase:label { bd:serviceParam wikibase:language '[AUTO_LANGUAGE]' . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v2("?time")
v1("?typo")
v4("?value"):::projected
a2((" "))
a1((" "))
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;"]):::literal
c5(["wd:Q100166489"]):::iri
bind0[/VALUES ?typo/]
bind0-->v1
bind00(["wd:Q5"])
bind00 --> bind0
bind01(["wd:Q21070568"])
bind01 --> bind0
bind02(["wd:Q64520857"])
bind02 --> bind0
bind03(["wd:Q64643615"])
bind03 --> bind0
bind04(["wd:Q75855169"])
bind04 --> bind0
bind1[/VALUES ?time/]
bind1-->v2
bind10(["wd:Q17167"])
bind10 --> bind1
bind11(["wd:Q2815472"])
bind11 --> bind1
bind12(["wd:Q2839628"])
bind12 --> bind1
bind13(["wd:Q6106068"])
bind13 --> bind1
v3 --"p:direct/P31"--> v1
v3 --"p:direct/P2348"--> v2
v3 --"p:direct/P3716"--> v4
a1 --"p:reference/P248"--> c5
a2 --"prov:wasDerivedFrom"--> a1
v3 --"p:P3716"--> a2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end