query-60a4b048bdd21b98ef8cda78de25e3fb

rq turtle/ttl

TODO

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#>
SELECT ?project ?projectLabel ?inception (GROUP_CONCAT(?subject) as ?subjects) (GROUP_CONCAT(?subjectLabel; SEPARATOR = '\n') as ?subjectLabels)
WHERE 
{
  ?project wdt:P31/wdt:P279* wd:Q115473050.

  OPTIONAL {?project wdt:P571 ?inception}
  OPTIONAL {?project wdt:P921 ?subject}

  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
    ?project rdfs:label ?projectLabel.
    ?subject rdfs:label ?subjectLabel.
  }
} GROUP BY ?project ?linkcount ?projectLabel ?inception ORDER BY ?projectLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?inception"):::projected v2("?project"):::projected v1("?projectLabel"):::projected v4("?subject"):::projected v5("?subjectLabel"):::projected v7("?subjectLabels") v6("?subjects") a1((" ")) c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q115473050"]):::iri v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P571".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P921".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 v2 --"rdfs:label"--> v1 v4 --"rdfs:label"--> v5 end bind2[/"?subject"/] v4 --o bind2 bind2 --as--o v6 bind3[/"?subjectLabel"/] v5 --o bind3 bind3 --as--o v7