query-fbdc8667d271ae21ecd30c37c114390c

rq turtle/ttl

Authors/editors per volume SELECT DISTINCT ?volume ?volumeLabel (GROUP_CONCAT(DISTINCT ?author; SEPARATOR = " -- ") AS ?authors) (GROUP_CONCAT(DISTINCT ?authorLabel; SEPARATOR = " -- ") AS ?authorLabels)

WHERE { BIND (wd:Q117860156 AS ?fb) #Flora Batava KB ?fb wdt:P527 ?volume. ?volume wdt:P50 ?author. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". ?author rdfs:label ?authorLabel. ?volume rdfs:label ?volumeLabel.} } GROUP BY ?volume ?volumeLabel ORDER BY ?volumeLabel

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Authors/editors per volume
SELECT DISTINCT  ?volume ?volumeLabel 
(GROUP_CONCAT(DISTINCT ?author; SEPARATOR = " -- ") AS ?authors) 
(GROUP_CONCAT(DISTINCT ?authorLabel; SEPARATOR = " -- ") AS ?authorLabels) 

WHERE 
{
  BIND (wd:Q117860156 AS ?fb) #Flora Batava KB
  ?fb  wdt:P527 ?volume.
  ?volume wdt:P50 ?author.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". 
      ?author rdfs:label ?authorLabel.
      ?volume rdfs:label ?volumeLabel.} 
}
GROUP BY ?volume ?volumeLabel 
ORDER BY ?volumeLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?author"):::projected v5("?authorLabel"):::projected v7("?authorLabels") v6("?authors") v2("?fb") v3("?volume"):::projected v1("?volumeLabel"):::projected c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/"'wd:Q117860156'"/] bind0 --as--o v2 v2 --"wdt:P527"--> v3 v3 --"wdt:P50"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 v4 --"rdfs:label"--> v5 v3 --"rdfs:label"--> v1 end bind3[/"?author"/] v4 --o bind3 bind3 --as--o v6 bind4[/"?authorLabel"/] v5 --o bind4 bind4 --as--o v7