query-b51a7827bbaab61abb788e75c699184d

rq turtle/ttl

Synia: Topic - thesis

Use at

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX target: <http://www.wikidata.org/entity/Q52>

SELECT DISTINCT
  ?description ?descriptionUrl

  ?value ?valueUrl 

  ?wikidata ?wikidataUrl

  ?scholia ?scholiaUrl
WHERE {
  {
    BIND(1 AS ?order)
    BIND("Topic" AS ?description)
    BIND("#topic" AS ?descriptionUrl)

    BIND(target: AS ?iri)
    BIND(SUBSTR(STR(?iri), 32) AS ?q) 
    ?iri rdfs:label ?value_string . 
    FILTER (LANG(?value_string) = 'en')
    BIND(COALESCE(?value_string, ?q) AS ?value)
    BIND(CONCAT("#topic/", ?q) AS ?valueUrl)

    BIND(CONCAT(?q, "&nbsp;↗") AS ?wikidata)
    BIND(CONCAT("https://www.wikidata.org/wiki/", ?q) AS ?wikidataUrl)

    BIND("Scholia ↗" AS ?scholia)
    BIND(CONCAT("https://scholia.toolforge.org/topic/", ?q) AS ?scholiaUrl)

    BIND("Wikidata Topic Curator (Scientific documents) ↗" AS ?wikidata_topic_curator1)
    BIND(CONCAT("http://162.19.226.24:8080/term?lang=en&subgraph=&qid=", ?q) AS ?wikidata_topic_curator1Url)

    BIND("Wikidata Topic Curator (Riksdagen documents) ↗" AS ?wikidata_topic_curator2)
    BIND(CONCAT("http://162.19.226.24:8080/term?lang=sv&subgraph=riksdagen_documents&qid=", ?q) AS ?wikidata_topic_curator2Url)
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?description"):::projected v4("?descriptionUrl"):::projected v5("?iri") v2("?order") v6("?q") v11("?scholia"):::projected v12("?scholiaUrl"):::projected v7("?value"):::projected v8("?valueUrl"):::projected v1("?value_string") v9("?wikidata"):::projected v10("?wikidataUrl"):::projected v13("?wikidata_topic_curator1") v14("?wikidata_topic_curator1Url") v15("?wikidata_topic_curator2") v16("?wikidata_topic_curator2Url") f0[["?value_string = 'en'"]] f0 --> v1 bind1[/"'1^^xsd:integer'"/] bind1 --as--o v2 bind2[/"'Topic'"/] bind2 --as--o v3 bind3[/"'#topic'"/] bind3 --as--o v4 bind4[/"http://www.wikidata.org/entity/Q52"/] bind4 --as--o v5 bind5[/"substring(str(?iri),'32^^xsd:integer')"/] v5 --o bind5 bind5 --as--o v6 v5 --"rdfs:label"--> v1 bind6[/"?value_string?q"/] v1 --o bind6 v6 --o bind6 bind6 --as--o v7 bind7[/"concat('#topic/',?q)"/] v6 --o bind7 bind7 --as--o v8 bind8[/"concat(?q,'&nbsp;↗')"/] v6 --o bind8 bind8 --as--o v9 bind9[/"concat('https://www.wikidata.org/wiki/',?q)"/] v6 --o bind9 bind9 --as--o v10 bind10[/"'Scholia ↗'"/] bind10 --as--o v11 bind11[/"concat('https://scholia.toolforge.org/topic/',?q)"/] v6 --o bind11 bind11 --as--o v12 bind12[/"'Wikidata Topic Curator (Scientific documents) ↗'"/] bind12 --as--o v13 bind13[/"concat('http://162.19.226.24:8080/term?lang=en&subgraph=&qid=',?q)"/] v6 --o bind13 bind13 --as--o v14 bind14[/"'Wikidata Topic Curator (Riksdagen documents) ↗'"/] bind14 --as--o v15 bind15[/"concat('http://162.19.226.24:8080/term?lang=sv&subgraph=riksdagen_documents&qid=',?q)"/] v6 --o bind15 bind15 --as--o v16