query-bd6e93506f42beb99dafc1c6f286f601
Statements on an item supported by a Wikimedia import
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?st ?itemLabel ?propLabel WHERE {
BIND (wd:Q42 as ?item).
?item ?pprop ?st.
?st rdf:type wikibase:BestRank.
?st prov:wasDerivedFrom ?ref.
?ref pr:P143|pr:P4656 [].
?prop wikibase:claim ?pprop.
MINUS {?prop wikibase:propertyType wikibase:ExternalId}
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;
v1("?item")
v2("?pprop")
v5("?prop")
v4("?ref")
v3("?st"):::projected
a1((" "))
c10(["bd:serviceParam"]):::iri
c2(["wikibase:BestRank"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c8(["wikibase:ExternalId"]):::iri
bind0[/"'wd:Q42'"/]
bind0 --as--o v1
v1 -->v2--> v3
v3 --"a"--> c2
v3 --"prov:wasDerivedFrom"--> v4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v4 --"pr:P4656"--> a1
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v4 --"pr:P143"--> a1
end
union0r <== or ==> union0l
end
v5 --"wikibase:claim"--> v2
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v5 --"wikibase:propertyType"--> c8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end