query-943f30e6e9cce28487612dd2b79348ba
Synia: organization
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#>
PREFIX target: <http://www.wikidata.org/entity/Q1269766>
SELECT
?description ?descriptionLabel ?descriptionUrl
?value ?valueLabel ?valueUrl
?wikidata ?wikidataUrl
?scholia ?scholiaUrl
WHERE {
{
BIND(1 AS ?order)
BIND("Organization" AS ?description)
BIND(target: AS ?value)
BIND("Wikidata ↗" AS ?wikidata)
BIND(CONCAT("https://www.wikidata.org/wiki/", SUBSTR(STR(?value), 32)) AS ?wikidataUrl)
BIND("Scholia ↗" AS ?scholia)
BIND(CONCAT("https://scholia.toolforge.org/organization/", SUBSTR(STR(?value), 32)) AS ?scholiaUrl)
}
UNION
{
BIND(2 AS ?order)
BIND(wd:Q6256 AS ?description)
BIND("#country" AS ?descriptionUrl)
target: wdt:P17 ?value .
BIND(CONCAT("#country/", SUBSTR(STR(?value), 32)) AS ?valueUrl)
BIND("Wikidata ↗" AS ?wikidata)
BIND(CONCAT("https://www.wikidata.org/wiki/", SUBSTR(STR(?value), 32)) AS ?wikidataUrl)
BIND("Scholia ↗" AS ?scholia)
BIND(CONCAT("https://scholia.toolforge.org/organization/", SUBSTR(STR(?value), 32)) AS ?scholiaUrl)
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?order
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?description"):::projected
v8("?descriptionUrl"):::projected
v8("?order")
v10("?scholia"):::projected
v10("?scholiaUrl"):::projected
v3("?value"):::projected
v9("?valueUrl"):::projected
v10("?wikidata"):::projected
v10("?wikidataUrl"):::projected
c4(["bd:serviceParam"]):::iri
c1(["wd:Q1269766"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
bind0[/"'2^^xsd:integer'"/]
bind0 --as--o v8
bind1[/"'wd:Q6256'"/]
bind1 --as--o v8
bind2[/"'#country'"/]
bind2 --as--o v8
c1 --"wdt:P17"--> v3
bind3[/"concat('#country/',substring(str(?value),'32^^xsd:integer'))"/]
v3 --o bind3
bind3 --as--o v9
bind4[/"'Wikidata ↗'"/]
bind4 --as--o v10
bind5[/"concat('https://www.wikidata.org/wiki/',substring(str(?value),'32^^xsd:integer'))"/]
v3 --o bind5
bind5 --as--o v10
bind6[/"'Scholia ↗'"/]
bind6 --as--o v10
bind7[/"concat('https://scholia.toolforge.org/organization/',substring(str(?value),'32^^xsd:integer'))"/]
v3 --o bind7
bind7 --as--o v10
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
bind8[/"'1^^xsd:integer'"/]
bind8 --as--o v8
bind9[/"'Organization'"/]
bind9 --as--o v8
bind10[/"'wd:Q1269766'"/]
bind10 --as--o v3
bind11[/"'Wikidata ↗'"/]
bind11 --as--o v10
bind12[/"concat('https://www.wikidata.org/wiki/',substring(str(?value),'32^^xsd:integer'))"/]
v3 --o bind12
bind12 --as--o v10
bind13[/"'Scholia ↗'"/]
bind13 --as--o v10
bind14[/"concat('https://scholia.toolforge.org/organization/',substring(str(?value),'32^^xsd:integer'))"/]
v3 --o bind14
bind14 --as--o v10
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end