query-cb93de80c4847f37a0657833d584fc1e
Swpb
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?statement ?prop ?propLabel ?valueLabel ?forLabel
WHERE
{
{
SELECT ?item ?claim ?statement ?for
WHERE
{
?item ?claim ?statement .
?statement pq:P642 ?for .
FILTER (?claim != p:P31 && ?claim != p:P279 && ?claim != p:P2699)
}
LIMIT 1000
} ?prop wikibase:claim ?claim .
?prop wikibase:statementProperty ?sp .
?statement ?sp ?value .
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("?claim")
v4("?for")
v2("?item"):::projected
v5("?prop"):::projected
v6("?sp")
v3("?statement"):::projected
v7("?value")
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?claim != 'p:P31'?claim != 'p:P279'?claim != 'p:P2699'"]]
f0 --> v1
v2 -->v1--> v3
v3 --"p:qualifier/P642"--> v4
v5 --"wikibase:claim"--> v1
v5 --"wikibase:statementProperty"--> v6
v3 -->v6--> v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end