query-b11900d336ab290069e1501ff199d5c8

rq turtle/ttl

Synia: scientific event-series

Use at

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/Q56682083>

SELECT
  ?description ?descriptionLabel ?descriptionUrl

  ?value ?valueLabel ?valueUrl

  ?wikidata ?wikidataLabel ?wikidataUrl

  ?scholia ?scholiaUrl
WHERE {
  {
    BIND(1 AS ?order)
    BIND(wd:Q125391566 AS ?description)
    BIND("#scientificeventseries/" AS ?descriptionUrl)

    BIND(target: AS ?value)

    BIND(target: AS ?wikidata)

    BIND(CONCAT(SUBSTR(STR(target:), 32), "&nbsp;↗") AS ?wikidataLabel)
    BIND(CONCAT("https://www.wikidata.org/wiki/", SUBSTR(STR(target:), 32)) AS ?wikidataUrl)
    BIND("Scholia&nbsp;↗" AS ?scholia)
    BIND(CONCAT("https://scholia.toolforge.org/event-series/", SUBSTR(STR(target:), 32)) AS ?scholiaUrl)
  }
  UNION
  {
    BIND(2 AS ?order)
    BIND("Short name" AS ?description)
    target: wdt:P1813 ?value .
  }
  UNION
  {
    BIND(5 AS ?order)

    BIND(wd:Q34770 AS ?description)
    BIND("#language" AS ?descriptionUrl)

    target: wdt:P2936 ?value .
    BIND(CONCAT("#language/", SUBSTR(STR(?value), 32)) AS ?valueUrl)
    BIND(?value AS ?wikidata)
    BIND(CONCAT(SUBSTR(STR(?value), 32), "&nbsp;↗") AS ?wikidataLabel)
    BIND(CONCAT("https://www.wikidata.org/wiki/", SUBSTR(STR(?value), 32)) AS ?wikidataUrl)
    BIND("Scholia&nbsp;↗" AS ?scholia)
    BIND(CONCAT("https://scholia.toolforge.org/language/", 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; v10("?description"):::projected v10("?descriptionUrl"):::projected v10("?order") v11("?scholia"):::projected v11("?scholiaUrl"):::projected v4("?value"):::projected v10("?valueUrl"):::projected v11("?wikidata"):::projected v11("?wikidataLabel"):::projected v11("?wikidataUrl"):::projected c5(["bd:serviceParam"]):::iri c1(["wd:Q56682083"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; bind0[/"'5^^xsd:integer'"/] bind0 --as--o v10 bind1[/"'wd:Q34770'"/] bind1 --as--o v10 bind2[/"'#language'"/] bind2 --as--o v10 c1 --"wdt:P2936"--> v4 bind3[/"concat('#language/',substring(str(?value),'32^^xsd:integer'))"/] v4 --o bind3 bind3 --as--o v10 bind4[/"?value"/] v4 --o bind4 bind4 --as--o v11 bind5[/"concat(substring(str(?value),'32^^xsd:integer'),'&nbsp;↗')"/] v4 --o bind5 bind5 --as--o v11 bind6[/"concat('https://www.wikidata.org/wiki/',substring(str(?value),'32^^xsd:integer'))"/] v4 --o bind6 bind6 --as--o v11 bind7[/"'Scholia&nbsp;↗'"/] bind7 --as--o v11 bind8[/"concat('https://scholia.toolforge.org/language/',substring(str(?value),'32^^xsd:integer'))"/] v4 --o bind8 bind8 --as--o v11 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; bind9[/"'2^^xsd:integer'"/] bind9 --as--o v10 bind10[/"'Short name'"/] bind10 --as--o v10 c1 --"wdt:P1813"--> v4 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; bind11[/"'1^^xsd:integer'"/] bind11 --as--o v10 bind12[/"'wd:Q125391566'"/] bind12 --as--o v10 bind13[/"'#scientificeventseries/'"/] bind13 --as--o v10 bind14[/"'wd:Q56682083'"/] bind14 --as--o v4 bind15[/"'wd:Q56682083'"/] bind15 --as--o v11 bind16[/"concat(substring(str('wd:Q56682083'),'32^^xsd:integer'),'&nbsp;↗')"/] bind16 --as--o v11 bind17[/"concat('https://www.wikidata.org/wiki/',substring(str('wd:Q56682083'),'32^^xsd:integer'))"/] bind17 --as--o v11 bind18[/"'Scholia&nbsp;↗'"/] bind18 --as--o v11 bind19[/"concat('https://scholia.toolforge.org/event-series/',substring(str('wd:Q56682083'),'32^^xsd:integer'))"/] bind19 --as--o v11 end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end