query-d2bed55b77df383ab7a1c6c74fb1b514

rq turtle/ttl

Synia: Country - Mastodon Synia: Country - archaeologists Synia: Country - municipalities Synia: country Synia: country publishers Synis: Country-collections

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/Q35>

SELECT 
  ?description ?descriptionLabel ?descriptionUrl

  ?value ?valueLabel ?valueUrl

  ?wikidata ?wikidataUrl

  ?scholia ?scholiaUrl
WHERE {
  {
    BIND(1 AS ?order)
    BIND(wd:Q6256 AS ?description)
    BIND("#country" AS ?descriptionUrl)

    BIND(target: AS ?value)
    BIND(CONCAT("#country/", SUBSTR(STR(target:), 32)) AS ?valueUrl)

    BIND("Wikidata&nbsp;↗" AS ?wikidata)
    BIND(CONCAT("https://www.wikidata.org/wiki/", SUBSTR(STR(?value), 32)) AS ?wikidataUrl)

    BIND("Scholia&nbsp;↗" AS ?scholia)
    BIND(CONCAT("https://scholia.toolforge.org/country/", 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; v2("?description"):::projected v3("?descriptionUrl"):::projected v2("?order") v8("?scholia"):::projected v9("?scholiaUrl"):::projected v4("?value"):::projected v5("?valueUrl"):::projected v6("?wikidata"):::projected v7("?wikidataUrl"):::projected c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/"'1^^xsd:integer'"/] bind0 --as--o v2 bind1[/"'wd:Q6256'"/] bind1 --as--o v2 bind2[/"'#country'"/] bind2 --as--o v3 bind3[/"'wd:Q35'"/] bind3 --as--o v4 bind4[/"concat('#country/',substring(str('wd:Q35'),'32^^xsd:integer'))"/] bind4 --as--o v5 bind5[/"'Wikidata&nbsp;↗'"/] bind5 --as--o v6 bind6[/"concat('https://www.wikidata.org/wiki/',substring(str(?value),'32^^xsd:integer'))"/] v4 --o bind6 bind6 --as--o v7 bind7[/"'Scholia&nbsp;↗'"/] bind7 --as--o v8 bind8[/"concat('https://scholia.toolforge.org/country/',substring(str(?value),'32^^xsd:integer'))"/] v4 --o bind8 bind8 --as--o v9 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end