query-9b8be179d68e0b58cba2ed7309f5b6f6

rq turtle/ttl

Persons

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT 
  ?person ?personLabel

  ?monumenta ?monumentaLabel ?monumentaUrl

  ?wikidata ?wikidataLabel ?wikidataUrl

  ?scholia_author ?scholia_authorUrl
WHERE {
  ?person <https://monumenta.wikibase.cloud/prop/direct/P5> <https://monumenta.wikibase.cloud/entity/Q5> .
  OPTIONAL {
    ?person <https://monumenta.wikibase.cloud/prop/direct/P1> ?wikidata .
    BIND(CONCAT(?wikidata, "&nbsp;↗") AS ?wikidataLabel)
    BIND(CONCAT("https://www.wikidata.org/wiki/", ?wikidata) AS ?wikidataUrl)

    BIND("Scholia&nbsp;↗" AS ?scholia_author)
    BIND(CONCAT("https://scholia.toolforge.org/author/", ?wikidata) AS ?scholia_authorUrl)
  }

  BIND(?person AS ?monumenta)
  BIND(CONCAT(SUBSTR(STR(?person), 41), "&nbsp;↗") AS ?monumentaLabel)
  BIND(?person AS ?monumentaUrl)

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?monumenta"):::projected v8("?monumentaLabel"):::projected v9("?monumentaUrl"):::projected v1("?person"):::projected v5("?scholia_author"):::projected v6("?scholia_authorUrl"):::projected v2("?wikidata"):::projected v3("?wikidataLabel"):::projected v4("?wikidataUrl"):::projected c5(["bd:serviceParam"]):::iri c2([https://monumenta.wikibase.cloud/entity/Q5]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --https://monumenta.wikibase.cloud/prop/direct/P5--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -.https://monumenta.wikibase.cloud/prop/direct/P1.-> v2 bind0[/"concat(?wikidata,'&nbsp;↗')"/] v2 --o bind0 bind0 --as--o v3 bind1[/"concat('https://www.wikidata.org/wiki/',?wikidata)"/] v2 --o bind1 bind1 --as--o v4 bind2[/"'Scholia&nbsp;↗'"/] bind2 --as--o v5 bind3[/"concat('https://scholia.toolforge.org/author/',?wikidata)"/] v2 --o bind3 bind3 --as--o v6 end bind4[/"?person"/] v1 --o bind4 bind4 --as--o v7 bind5[/"concat(substring(str(?person),'41^^xsd:integer'),'&nbsp;↗')"/] v1 --o bind5 bind5 --as--o v8 bind6[/"?person"/] v1 --o bind6 bind6 --as--o v9 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end