query-d797ec691fec29cfe0f94482f1155cd9
Synia: Locations for language
Use at
- https://query.wikidata.org/sparql
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX target: <http://www.wikidata.org/entity/Q150>
SELECT
?description ?descriptionUrl
?value ?valueUrl
?wikidata ?wikidataUrl
?hangor ?hangorUrl
?ordia ?ordiaUrl
?scholia ?scholiaUrl
WHERE {
{
BIND(1 AS ?order)
BIND("Language" AS ?description)
BIND("#language/" AS ?descriptionUrl)
target: rdfs:label ?value_string .
FILTER (LANG(?value_string) = 'en')
BIND(COALESCE(?value_string, SUBSTR(STR(target:), 32)) AS ?value)
BIND(CONCAT("#language/", SUBSTR(STR(target:), 32)) AS ?valueUrl)
BIND(CONCAT(SUBSTR(STR(target:), 32), " ↗") AS ?wikidata)
BIND(CONCAT("https://www.wikidata.org/wiki/", SUBSTR(STR(target:), 32)) AS ?wikidataUrl)
BIND("Hangor ↗" AS ?hangor)
BIND(CONCAT("https://hangor.toolforge.org/browse/", SUBSTR(STR(target:), 32)) AS ?hangorUrl)
BIND("Ordia ↗" AS ?ordia)
BIND(CONCAT("https://ordia.toolforge.org/language/", SUBSTR(STR(target:), 32)) AS ?ordiaUrl)
BIND("Scholia ↗" AS ?scholia)
BIND(CONCAT("https://scholia.toolforge.org/language/", SUBSTR(STR(target:), 32)) AS ?scholiaUrl)
}
}
ORDER BY ?order
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?description"):::projected
v4("?descriptionUrl"):::projected
v9("?hangor"):::projected
v10("?hangorUrl"):::projected
v3("?order")
v11("?ordia"):::projected
v12("?ordiaUrl"):::projected
v13("?scholia"):::projected
v14("?scholiaUrl"):::projected
v5("?value"):::projected
v6("?valueUrl"):::projected
v2("?value_string")
v7("?wikidata"):::projected
v8("?wikidataUrl"):::projected
c2([http://www.wikidata.org/entity/Q150]):::iri
f0[["?value_string = 'en'"]]
f0 --> v2
bind1[/"'1^^xsd:integer'"/]
bind1 --as--o v3
bind2[/"'Language'"/]
bind2 --as--o v3
bind3[/"'#language/'"/]
bind3 --as--o v4
c2 --"rdfs:label"--> v2
bind4[/"?value_stringsubstring(str(http://www.wikidata.org/entity/Q150),'32^^xsd:integer')"/]
v2 --o bind4
bind4 --as--o v5
bind5[/"concat('#language/',substring(str(http://www.wikidata.org/entity/Q150),'32^^xsd:integer'))"/]
bind5 --as--o v6
bind6[/"concat(substring(str(http://www.wikidata.org/entity/Q150),'32^^xsd:integer'),' ↗')"/]
bind6 --as--o v7
bind7[/"concat('https://www.wikidata.org/wiki/',substring(str(http://www.wikidata.org/entity/Q150),'32^^xsd:integer'))"/]
bind7 --as--o v8
bind8[/"'Hangor ↗'"/]
bind8 --as--o v9
bind9[/"concat('https://hangor.toolforge.org/browse/',substring(str(http://www.wikidata.org/entity/Q150),'32^^xsd:integer'))"/]
bind9 --as--o v10
bind10[/"'Ordia ↗'"/]
bind10 --as--o v11
bind11[/"concat('https://ordia.toolforge.org/language/',substring(str(http://www.wikidata.org/entity/Q150),'32^^xsd:integer'))"/]
bind11 --as--o v12
bind12[/"'Scholia ↗'"/]
bind12 --as--o v13
bind13[/"concat('https://scholia.toolforge.org/language/',substring(str(http://www.wikidata.org/entity/Q150),'32^^xsd:integer'))"/]
bind13 --as--o v14