query-fffe9da5db256a9c9f528de3e945467d
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
#Coses representades a les meves fotos
SELECT DISTINCT ?item ?itemLabel ?layer ?coord ?alias
WHERE {
?file (p:P170/pq:P4174) "Pere prlpz".
?file wdt:P180 ?item.
SERVICE <https://query.wikidata.org/sparql> {
?item wdt:P31 ?layer.
?item wdt:P625 ?coord .
OPTIONAL{?item rdfs:label ?itemLabel.
FILTER(LANG(?itemLabel) = "ca").}
OPTIONAL{?layer rdfs:label ?layerLabel.
FILTER(LANG(?layerLabel) = "ca").}
}
}
#defaultView:Map
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?coord"):::projected
v1("?file")
v2("?item"):::projected
v4("?itemLabel"):::projected
v5("?layer"):::projected
v3("?layerLabel")
a1((" "))
c3(["Pere prlpz"]):::literal
v1 --"p:P170"--> a1
a1 --"p:qualifier/P4174"--> c3
v1 --"p:direct/P180"--> v2
subgraph s1["https://query.wikidata.org/sparql"]
style s1 stroke-width:4px;
v2 --"p:direct/P31"--> v5
v2 --"p:direct/P625"--> v6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."rdfs:label".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v5 -."rdfs:label".-> v3
end
end