query-d2313d1b0653d442c383cb2f37eb90d9
Seleccionar item segon el valor d'un qualificador d'un statement
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 ps: <http://www.wikidata.org/prop/statement/>
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 ?coord ?catalogCode ?pointInTime ?describedAtUrl ?notariLabel WHERE {
?item p:P528 ?p528stm .
?p528stm ps:P528 ?catalogCode;
pq:P972 wd:Q20102343.
OPTIONAL { ?p528stm pq:P585 ?pointInTime }
OPTIONAL { ?p528stm pq:P973 ?describedAtUrl }
OPTIONAL { ?p528stm pq:P664 ?notari }
OPTIONAL { ?item wdt:P625 ?coord }
SERVICE wikibase:label { bd:serviceParam wikibase:language 'ca,[AUTO_LANGUAGE]' }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?catalogCode"):::projected
v7("?coord"):::projected
v5("?describedAtUrl"):::projected
v1("?item"):::projected
v6("?notari")
v2("?p528stm")
v4("?pointInTime"):::projected
c12(["ca,#91;AUTO_LANGUAGE#93;"]):::literal
c10(["bd:serviceParam"]):::iri
c4(["wd:Q20102343"]):::iri
v1 --"p:P528"--> v2
v2 --"p:statement/P528"--> v3
v2 --"p:qualifier/P972"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P585".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P973".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P664".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P625".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end