query-a9f3258c63e187b7b6ffa8b645c4ef0e
Propietats i sitelink de commons d'una llista de monuments:
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 schema: <http://schema.org/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?lon ?lat ?imatge ?prot ?itemLabel ?protLabel ?ipac ?mun ?estil ?estilLabel ?ccat ?commonslink
WHERE {
VALUES ?item {wd:Q250523 wd:Q17596577 wd:Q11913087 wd:Q20104297 wd:Q23499031 wd:Q23499032 wd:Q3816570 wd:Q22893596 wd:Q23499034 wd:Q22809170 wd:Q22809084 wd:Q3816526 wd:Q22968639 wd:Q22809747 wd:Q22809737 wd:Q23499047 wd:Q22893613 wd:Q22809132 wd:Q22893568 wd:Q11947564 wd:Q23499045 wd:Q23499046 wd:Q19255622 wd:Q22809689 wd:Q22809746 wd:Q22809745 wd:Q22893539 wd:Q22893533 wd:Q58461694 wd:Q23499037 wd:Q71365567 wd:Q22893606 wd:Q23499038 wd:Q22809725 wd:Q22809731 wd:Q23499036 wd:Q22893543 wd:Q22809136 wd:Q22809705 wd:Q22893610 wd:Q71367611 wd:Q23499039 wd:Q23499040 wd:Q23499041 wd:Q22968634 wd:Q22893540 wd:Q22968628 wd:Q22968626 wd:Q22809693 wd:Q22809724 wd:Q22968637 wd:Q22968631 wd:Q22968625 wd:Q22968638 wd:Q22893534 wd:Q23499042 wd:Q22893535 wd:Q22968633 wd:Q22968642 wd:Q22968629 wd:Q22968635 wd:Q22968630 wd:Q22893532 wd:Q22893524 wd:Q22893516 wd:Q65208575 wd:Q65208776 wd:Q23499043 wd:Q57959289 wd:Q61982448 wd:Q71441349}
OPTIONAL {
?item wdt:P625 ?coord.
?item p:P625 ?coordinate .
?coordinate psv:P625 ?coordinate_node .
?coordinate_node wikibase:geoLatitude ?lat .
?coordinate_node wikibase:geoLongitude ?lon .
}
OPTIONAL {?item wdt:P18 ?imatge}
OPTIONAL {?item wdt:P131 ?adm}
OPTIONAL {?item wdt:P1435 ?prot}
OPTIONAL {?item wdt:P373 ?ccat}
OPTIONAL {?item wdt:P1600 ?ipac}
OPTIONAL {
?item wdt:P131* ?mun.
?mun wdt:P31 wd:Q33146843.
}
OPTIONAL {?item wdt:P149 ?estil}
OPTIONAL {?commonslink schema:about ?item;
schema:isPartOf <https://commons.wikimedia.org/> }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "ca,en,oc,fr,es" .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?adm")
v10("?ccat"):::projected
v14("?commonslink"):::projected
v2("?coord")
v3("?coordinate")
v4("?coordinate_node")
v13("?estil"):::projected
v7("?imatge"):::projected
v11("?ipac"):::projected
v1("?item"):::projected
v5("?lat"):::projected
v6("?lon"):::projected
v12("?mun"):::projected
v9("?prot"):::projected
c12(["wd:Q33146843"]):::iri
c16([https://commons.wikimedia.org/]):::iri
c18(["bd:serviceParam"]):::iri
c20(["ca,en,oc,fr,es"]):::literal
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q250523"])
bind00 --> bind0
bind01(["wd:Q17596577"])
bind01 --> bind0
bind02(["wd:Q11913087"])
bind02 --> bind0
bind03(["wd:Q20104297"])
bind03 --> bind0
bind04(["wd:Q23499031"])
bind04 --> bind0
bind05(["wd:Q23499032"])
bind05 --> bind0
bind06(["wd:Q3816570"])
bind06 --> bind0
bind07(["wd:Q22893596"])
bind07 --> bind0
bind08(["wd:Q23499034"])
bind08 --> bind0
bind09(["wd:Q22809170"])
bind09 --> bind0
bind010(["wd:Q22809084"])
bind010 --> bind0
bind011(["wd:Q3816526"])
bind011 --> bind0
bind012(["wd:Q22968639"])
bind012 --> bind0
bind013(["wd:Q22809747"])
bind013 --> bind0
bind014(["wd:Q22809737"])
bind014 --> bind0
bind015(["wd:Q23499047"])
bind015 --> bind0
bind016(["wd:Q22893613"])
bind016 --> bind0
bind017(["wd:Q22809132"])
bind017 --> bind0
bind018(["wd:Q22893568"])
bind018 --> bind0
bind019(["wd:Q11947564"])
bind019 --> bind0
bind020(["wd:Q23499045"])
bind020 --> bind0
bind021(["wd:Q23499046"])
bind021 --> bind0
bind022(["wd:Q19255622"])
bind022 --> bind0
bind023(["wd:Q22809689"])
bind023 --> bind0
bind024(["wd:Q22809746"])
bind024 --> bind0
bind025(["wd:Q22809745"])
bind025 --> bind0
bind026(["wd:Q22893539"])
bind026 --> bind0
bind027(["wd:Q22893533"])
bind027 --> bind0
bind028(["wd:Q58461694"])
bind028 --> bind0
bind029(["wd:Q23499037"])
bind029 --> bind0
bind030(["wd:Q71365567"])
bind030 --> bind0
bind031(["wd:Q22893606"])
bind031 --> bind0
bind032(["wd:Q23499038"])
bind032 --> bind0
bind033(["wd:Q22809725"])
bind033 --> bind0
bind034(["wd:Q22809731"])
bind034 --> bind0
bind035(["wd:Q23499036"])
bind035 --> bind0
bind036(["wd:Q22893543"])
bind036 --> bind0
bind037(["wd:Q22809136"])
bind037 --> bind0
bind038(["wd:Q22809705"])
bind038 --> bind0
bind039(["wd:Q22893610"])
bind039 --> bind0
bind040(["wd:Q71367611"])
bind040 --> bind0
bind041(["wd:Q23499039"])
bind041 --> bind0
bind042(["wd:Q23499040"])
bind042 --> bind0
bind043(["wd:Q23499041"])
bind043 --> bind0
bind044(["wd:Q22968634"])
bind044 --> bind0
bind045(["wd:Q22893540"])
bind045 --> bind0
bind046(["wd:Q22968628"])
bind046 --> bind0
bind047(["wd:Q22968626"])
bind047 --> bind0
bind048(["wd:Q22809693"])
bind048 --> bind0
bind049(["wd:Q22809724"])
bind049 --> bind0
bind050(["wd:Q22968637"])
bind050 --> bind0
bind051(["wd:Q22968631"])
bind051 --> bind0
bind052(["wd:Q22968625"])
bind052 --> bind0
bind053(["wd:Q22968638"])
bind053 --> bind0
bind054(["wd:Q22893534"])
bind054 --> bind0
bind055(["wd:Q23499042"])
bind055 --> bind0
bind056(["wd:Q22893535"])
bind056 --> bind0
bind057(["wd:Q22968633"])
bind057 --> bind0
bind058(["wd:Q22968642"])
bind058 --> bind0
bind059(["wd:Q22968629"])
bind059 --> bind0
bind060(["wd:Q22968635"])
bind060 --> bind0
bind061(["wd:Q22968630"])
bind061 --> bind0
bind062(["wd:Q22893532"])
bind062 --> bind0
bind063(["wd:Q22893524"])
bind063 --> bind0
bind064(["wd:Q22893516"])
bind064 --> bind0
bind065(["wd:Q65208575"])
bind065 --> bind0
bind066(["wd:Q65208776"])
bind066 --> bind0
bind067(["wd:Q23499043"])
bind067 --> bind0
bind068(["wd:Q57959289"])
bind068 --> bind0
bind069(["wd:Q61982448"])
bind069 --> bind0
bind070(["wd:Q71441349"])
bind070 --> bind0
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P625".-> v2
v1 --"p:P625"--> v3
v3 --"p:statement/value/P625"--> v4
v4 --"wikibase:geoLatitude"--> v5
v4 --"wikibase:geoLongitude"--> v6
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P18".-> v7
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P131".-> v8
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P1435".-> v9
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P373".-> v10
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P1600".-> v11
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P131".-> v12
v12 --"p:direct/P31"--> c12
end
subgraph optional7["(optional)"]
style optional7 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P149".-> v13
end
subgraph optional8["(optional)"]
style optional8 fill:#bbf,stroke-dasharray: 5 5;
v14 -."schema:about".-> v1
v14 --"schema:isPartOf"--> c16
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c18 --"wikibase:language"--> c20
end