query-5baa261775f27b345429d1ff6ed4e4ea

rq turtle/ttl

UG Space Collections

SELECT ?item ?itemLabel ?publicationdate ?publishedinLabel ?volume ?issue ?fullworkurl ?exactmatch (group_concat(distinct ?authorLabel; separator=", ") as ?authors) (group_concat(distinct ?subjectLabel; separator=", ") as ?mainsubjects) WHERE { ?item wdt:P8602 ?University_of_Ghana_Digital_Collections__UGSpace__ID. ?item wdt:P921 ?subject . ?item wdt:P2093 ?author . ?item wdt:P577 ?publicationdate . ?item wdt:P1433 ?publishedin . ?item wdt:P2888 ?exactmatch . OPTIONAL {?item wdt:P478 ?volume .} OPTIONAL {?item wdt:P433 ?issue .} OPTIONAL {?item wdt:P953 ?fullworkurl .}

SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". ?item rdfs:label ?itemLabel. ?publishedin rdfs:label ?publishedinLabel. ?author rdfs:label ?authorLabel. ?subject rdfs:label ?subjectLabel. } } GROUP BY ?item ?itemLabel ?publicationdate ?publishedinLabel ?volume ?issue ?fullworkurl ?exactmatch LIMIT 100

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#UG Space Collections

SELECT ?item ?itemLabel ?publicationdate ?publishedinLabel ?volume ?issue ?fullworkurl ?exactmatch
  (group_concat(distinct ?authorLabel; separator=", ") as ?authors)
  (group_concat(distinct ?subjectLabel; separator=", ") as ?mainsubjects)
WHERE  {
  ?item wdt:P8602 ?University_of_Ghana_Digital_Collections__UGSpace__ID.
  ?item wdt:P921 ?subject .
  ?item wdt:P2093 ?author .
  ?item wdt:P577 ?publicationdate .
  ?item wdt:P1433 ?publishedin .
  ?item wdt:P2888 ?exactmatch .
  OPTIONAL {?item wdt:P478 ?volume .}
  OPTIONAL {?item wdt:P433 ?issue .}
  OPTIONAL {?item wdt:P953 ?fullworkurl .}

  SERVICE wikibase:label
  {
    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
    ?item rdfs:label ?itemLabel.
    ?publishedin rdfs:label ?publishedinLabel.
    ?author rdfs:label ?authorLabel.
    ?subject rdfs:label ?subjectLabel.
  }
}
GROUP BY ?item ?itemLabel ?publicationdate ?publishedinLabel ?volume ?issue ?fullworkurl ?exactmatch
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?University_of_Ghana_Digital_Collections__UGSpace__ID") v4("?author") v13("?authorLabel"):::projected v15("?authors") v7("?exactmatch"):::projected v10("?fullworkurl"):::projected v9("?issue"):::projected v1("?item"):::projected v11("?itemLabel"):::projected v16("?mainsubjects") v5("?publicationdate"):::projected v6("?publishedin") v12("?publishedinLabel"):::projected v3("?subject") v14("?subjectLabel"):::projected v8("?volume"):::projected c11(["bd:serviceParam"]):::iri c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P8602"--> v2 v1 --"wdt:P921"--> v3 v1 --"wdt:P2093"--> v4 v1 --"wdt:P577"--> v5 v1 --"wdt:P1433"--> v6 v1 --"wdt:P2888"--> v7 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P478".-> v8 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P433".-> v9 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P953".-> v10 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 v1 --"rdfs:label"--> v11 v6 --"rdfs:label"--> v12 v4 --"rdfs:label"--> v13 v3 --"rdfs:label"--> v14 end bind2[/"?authorLabel"/] v13 --o bind2 bind2 --as--o v15 bind3[/"?subjectLabel"/] v14 --o bind3 bind3 --as--o v16