query-30f7806e272a855ab76c0cac38f383ba
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT ?diocese ?dioceseEnLabel ?dioceseEnDescription ?dioceseTlLabel ?dioceseTlDescription ?countryLabel ?cathedralLabel WHERE {
VALUES ?diocese {
wd:Q620268 wd:Q620403 wd:Q534378 wd:Q620439 wd:Q226020 wd:Q772971 wd:Q1364327 wd:Q1364384 wd:Q1364265
wd:Q1364414 wd:Q630859 wd:Q1122436 wd:Q1364851 wd:Q1355834 wd:Q984101 wd:Q1365221 wd:Q1365248 wd:Q1359792
wd:Q1365762 wd:Q586882 wd:Q866787 wd:Q866877 wd:Q633214 wd:Q181367 wd:Q536639 wd:Q866979 wd:Q867061
wd:Q867230 wd:Q867279 wd:Q867470 wd:Q867509 wd:Q867550 wd:Q867730 wd:Q327696 wd:Q868253 wd:Q868391
wd:Q218158 wd:Q248873 wd:Q869345 wd:Q869592 wd:Q869679 wd:Q247993 wd:Q869718 wd:Q869757 wd:Q326521
wd:Q870237 wd:Q326807 wd:Q870496 wd:Q178612 wd:Q871145 wd:Q871203 wd:Q871462 wd:Q248863 wd:Q871768
wd:Q326940 wd:Q871993 wd:Q872069 wd:Q872130 wd:Q872936 wd:Q326818 wd:Q248333 wd:Q326812 wd:Q873971
wd:Q118452 wd:Q327396 wd:Q875767 wd:Q1167111 wd:Q327384 wd:Q285199 wd:Q876698 wd:Q210571 wd:Q248859
wd:Q877020 wd:Q877051 wd:Q210318 wd:Q877150 wd:Q877665 wd:Q877926 wd:Q1582670 wd:Q1861786 wd:Q1575350
wd:Q1575341
}
OPTIONAL {
?diocese rdfs:label ?dioceseEnLabel .
FILTER((LANG(?dioceseEnLabel)) = "en")
}
OPTIONAL {
?diocese schema:description ?dioceseEnDescription.
FILTER((LANG(?dioceseEnDescription)) = "en")
}
OPTIONAL {
?diocese rdfs:label ?dioceseTlLabel .
FILTER((LANG(?dioceseTlLabel)) = "tl")
}
OPTIONAL {
?diocese schema:description ?dioceseTlDescription.
FILTER((LANG(?dioceseTlDescription)) = "tl")
}
OPTIONAL {
?diocese wdt:P17 ?country .
?country rdfs:label ?countryLabel .
FILTER((LANG(?countryLabel)) = "en")
}
OPTIONAL {
?diocese wdt:P1885 ?cathedral .
?cathedral rdfs:label ?cathedralLabel .
FILTER((LANG(?cathedralLabel)) = "en")
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v9("?cathedral")
v1("?cathedralLabel"):::projected
v8("?country")
v2("?countryLabel"):::projected
v7("?diocese"):::projected
v5("?dioceseEnDescription"):::projected
v6("?dioceseEnLabel"):::projected
v3("?dioceseTlDescription"):::projected
v4("?dioceseTlLabel"):::projected
bind0[/VALUES ?diocese/]
bind0-->v7
bind00(["wd:Q620268"])
bind00 --> bind0
bind01(["wd:Q620403"])
bind01 --> bind0
bind02(["wd:Q534378"])
bind02 --> bind0
bind03(["wd:Q620439"])
bind03 --> bind0
bind04(["wd:Q226020"])
bind04 --> bind0
bind05(["wd:Q772971"])
bind05 --> bind0
bind06(["wd:Q1364327"])
bind06 --> bind0
bind07(["wd:Q1364384"])
bind07 --> bind0
bind08(["wd:Q1364265"])
bind08 --> bind0
bind09(["wd:Q1364414"])
bind09 --> bind0
bind010(["wd:Q630859"])
bind010 --> bind0
bind011(["wd:Q1122436"])
bind011 --> bind0
bind012(["wd:Q1364851"])
bind012 --> bind0
bind013(["wd:Q1355834"])
bind013 --> bind0
bind014(["wd:Q984101"])
bind014 --> bind0
bind015(["wd:Q1365221"])
bind015 --> bind0
bind016(["wd:Q1365248"])
bind016 --> bind0
bind017(["wd:Q1359792"])
bind017 --> bind0
bind018(["wd:Q1365762"])
bind018 --> bind0
bind019(["wd:Q586882"])
bind019 --> bind0
bind020(["wd:Q866787"])
bind020 --> bind0
bind021(["wd:Q866877"])
bind021 --> bind0
bind022(["wd:Q633214"])
bind022 --> bind0
bind023(["wd:Q181367"])
bind023 --> bind0
bind024(["wd:Q536639"])
bind024 --> bind0
bind025(["wd:Q866979"])
bind025 --> bind0
bind026(["wd:Q867061"])
bind026 --> bind0
bind027(["wd:Q867230"])
bind027 --> bind0
bind028(["wd:Q867279"])
bind028 --> bind0
bind029(["wd:Q867470"])
bind029 --> bind0
bind030(["wd:Q867509"])
bind030 --> bind0
bind031(["wd:Q867550"])
bind031 --> bind0
bind032(["wd:Q867730"])
bind032 --> bind0
bind033(["wd:Q327696"])
bind033 --> bind0
bind034(["wd:Q868253"])
bind034 --> bind0
bind035(["wd:Q868391"])
bind035 --> bind0
bind036(["wd:Q218158"])
bind036 --> bind0
bind037(["wd:Q248873"])
bind037 --> bind0
bind038(["wd:Q869345"])
bind038 --> bind0
bind039(["wd:Q869592"])
bind039 --> bind0
bind040(["wd:Q869679"])
bind040 --> bind0
bind041(["wd:Q247993"])
bind041 --> bind0
bind042(["wd:Q869718"])
bind042 --> bind0
bind043(["wd:Q869757"])
bind043 --> bind0
bind044(["wd:Q326521"])
bind044 --> bind0
bind045(["wd:Q870237"])
bind045 --> bind0
bind046(["wd:Q326807"])
bind046 --> bind0
bind047(["wd:Q870496"])
bind047 --> bind0
bind048(["wd:Q178612"])
bind048 --> bind0
bind049(["wd:Q871145"])
bind049 --> bind0
bind050(["wd:Q871203"])
bind050 --> bind0
bind051(["wd:Q871462"])
bind051 --> bind0
bind052(["wd:Q248863"])
bind052 --> bind0
bind053(["wd:Q871768"])
bind053 --> bind0
bind054(["wd:Q326940"])
bind054 --> bind0
bind055(["wd:Q871993"])
bind055 --> bind0
bind056(["wd:Q872069"])
bind056 --> bind0
bind057(["wd:Q872130"])
bind057 --> bind0
bind058(["wd:Q872936"])
bind058 --> bind0
bind059(["wd:Q326818"])
bind059 --> bind0
bind060(["wd:Q248333"])
bind060 --> bind0
bind061(["wd:Q326812"])
bind061 --> bind0
bind062(["wd:Q873971"])
bind062 --> bind0
bind063(["wd:Q118452"])
bind063 --> bind0
bind064(["wd:Q327396"])
bind064 --> bind0
bind065(["wd:Q875767"])
bind065 --> bind0
bind066(["wd:Q1167111"])
bind066 --> bind0
bind067(["wd:Q327384"])
bind067 --> bind0
bind068(["wd:Q285199"])
bind068 --> bind0
bind069(["wd:Q876698"])
bind069 --> bind0
bind070(["wd:Q210571"])
bind070 --> bind0
bind071(["wd:Q248859"])
bind071 --> bind0
bind072(["wd:Q877020"])
bind072 --> bind0
bind073(["wd:Q877051"])
bind073 --> bind0
bind074(["wd:Q210318"])
bind074 --> bind0
bind075(["wd:Q877150"])
bind075 --> bind0
bind076(["wd:Q877665"])
bind076 --> bind0
bind077(["wd:Q877926"])
bind077 --> bind0
bind078(["wd:Q1582670"])
bind078 --> bind0
bind079(["wd:Q1861786"])
bind079 --> bind0
bind080(["wd:Q1575350"])
bind080 --> bind0
bind081(["wd:Q1575341"])
bind081 --> bind0
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v7 -."rdfs:label".-> v6
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v7 -."schema:description".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v7 -."rdfs:label".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v7 -."schema:description".-> v3
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v7 -."wdt:P17".-> v8
v8 --"rdfs:label"--> v2
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v7 -."wdt:P1885".-> v9
v9 --"rdfs:label"--> v1
end