query-fe653278e21045349072f673ec7dfc6b
rq turtle/ttl
dades comtats catalans
SELECT ?item ?itemLabel ?p31Label ?carrec ?carrecLabel
?estat ?estatLabel ?abans ?abansLabel
?despres ?despresLabel ?creat ?dissolt ?part_de ?part_deLabel
?escut ?mapa ?imatge WHERE {
VALUES ?item {
wd:Q1233672
wd:Q1514510
wd:Q1541699
wd:Q1541813
wd:Q2037817
wd:Q1541642
wd:Q1541642
wd:Q1514510
wd:Q956729
wd:Q657448
wd:Q2338948
wd:Q1541779
wd:Q1541787
wd:Q1297894
wd:Q652275
}
OPTIONAL { ?item wdt:P31 ?p31. }
OPTIONAL { ?item wdt:P1906 ?carrec. }
OPTIONAL { ?item wdt:P17 ?estat. }
OPTIONAL { ?item wdt:P263 ?resid. }
OPTIONAL { ?item wdt:P1365 ?abans. }
OPTIONAL { ?item wdt:P1366 ?despres. }
OPTIONAL { ?item wdt:P18 ?imatge. }
OPTIONAL { ?item wdt:P571 ?creat. }
OPTIONAL { ?item wdt:P576 ?dissolt. }
OPTIONAL { ?item wdt:P361 ?part_de. }
OPTIONAL { ?item wdt:P94 ?escut. }
OPTIONAL { ?item wdt:P242 ?mapa. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
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 bd: <http://www.bigdata.com/rdf#>
#dades comtats catalans
SELECT ?item ?itemLabel ?p31Label ?carrec ?carrecLabel
?estat ?estatLabel ?abans ?abansLabel
?despres ?despresLabel ?creat ?dissolt ?part_de ?part_deLabel
?escut ?mapa ?imatge WHERE {
VALUES ?item {
wd:Q1233672
wd:Q1514510
wd:Q1541699
wd:Q1541813
wd:Q2037817
wd:Q1541642
wd:Q1541642
wd:Q1514510
wd:Q956729
wd:Q657448
wd:Q2338948
wd:Q1541779
wd:Q1541787
wd:Q1297894
wd:Q652275
}
OPTIONAL { ?item wdt:P31 ?p31. }
OPTIONAL { ?item wdt:P1906 ?carrec. }
OPTIONAL { ?item wdt:P17 ?estat. }
OPTIONAL { ?item wdt:P263 ?resid. }
OPTIONAL { ?item wdt:P1365 ?abans. }
OPTIONAL { ?item wdt:P1366 ?despres. }
OPTIONAL { ?item wdt:P18 ?imatge. }
OPTIONAL { ?item wdt:P571 ?creat. }
OPTIONAL { ?item wdt:P576 ?dissolt. }
OPTIONAL { ?item wdt:P361 ?part_de. }
OPTIONAL { ?item wdt:P94 ?escut. }
OPTIONAL { ?item wdt:P242 ?mapa. }
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;
v6("?abans"):::projected
v3("?carrec"):::projected
v9("?creat"):::projected
v7("?despres"):::projected
v10("?dissolt"):::projected
v12("?escut"):::projected
v4("?estat"):::projected
v8("?imatge"):::projected
v1("?item"):::projected
v13("?mapa"):::projected
v2("?p31")
v11("?part_de"):::projected
v5("?resid")
c14(["bd:serviceParam"]):::iri
c16(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q1233672"])
bind00 --> bind0
bind01(["wd:Q1514510"])
bind01 --> bind0
bind02(["wd:Q1541699"])
bind02 --> bind0
bind03(["wd:Q1541813"])
bind03 --> bind0
bind04(["wd:Q2037817"])
bind04 --> bind0
bind05(["wd:Q1541642"])
bind05 --> bind0
bind06(["wd:Q1541642"])
bind06 --> bind0
bind07(["wd:Q1514510"])
bind07 --> bind0
bind08(["wd:Q956729"])
bind08 --> bind0
bind09(["wd:Q657448"])
bind09 --> bind0
bind010(["wd:Q2338948"])
bind010 --> bind0
bind011(["wd:Q1541779"])
bind011 --> bind0
bind012(["wd:Q1541787"])
bind012 --> bind0
bind013(["wd:Q1297894"])
bind013 --> bind0
bind014(["wd:Q652275"])
bind014 --> bind0
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P31".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1906".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P17".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P263".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1365".-> v6
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1366".-> v7
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v8
end
subgraph optional7["(optional)"]
style optional7 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P571".-> v9
end
subgraph optional8["(optional)"]
style optional8 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P576".-> v10
end
subgraph optional9["(optional)"]
style optional9 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P361".-> v11
end
subgraph optional10["(optional)"]
style optional10 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P94".-> v12
end
subgraph optional11["(optional)"]
style optional11 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P242".-> v13
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end