query-37b7a87bf6e66aba271352e7183194cf
BBLD
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?BBLD ?prop ?ref ?refLabel
WHERE
{
# values ?item {wd:Q323699}
?item p:P2580 ?statement .
?statement ps:P2580 ?BBLD .
optional {?statement prov:wasDerivedFrom ?statement2 .
?statement2 ?prop ?ref
filter(contains(str(?prop),"reference/P"))
filter(!contains(str(?prop),"813"))
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?BBLD"):::projected
v2("?item"):::projected
v1("?prop"):::projected
v6("?ref"):::projected
v3("?statement")
v5("?statement2")
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"p:P2580"--> v3
v3 --"p:statement/P2580"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."prov:wasDerivedFrom".-> v5
v5 -->v1--> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end