query-e7ede12c75b1c21f10482bf31f1dc9b3

rq turtle/ttl

Works by Canova SELECT ?work ?workLabel (GROUP_CONCAT(DISTINCT ?instanceLabel; separator=", ") AS ?inst) (GROUP_CONCAT(DISTINCT STR(YEAR(?date)); separator=", ") AS ?date) (GROUP_CONCAT(DISTINCT ?genreLabel; separator=", ") AS ?genre) (GROUP_CONCAT(DISTINCT ?materialLabel; separator=", ") AS ?material) (SAMPLE(?image) AS ?image) WHERE { ?work wdt:P170 wd:Q5547; wdt:P31 ?instance; wdt:P136 ?genre; wdt:P571 ?date; wdt:P186 ?material; wdt:P18 ?image . SERVICE wikibase:label { bd:serviceParam wikibase:language "it,fr" . ?work rdfs:label ?workLabel . ?instance rdfs:label ?instanceLabel . ?genre rdfs:label ?genreLabel . ?material rdfs:label ?materialLabel . } . } GROUP BY ?work ?workLabel ORDER BY ?date

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#>
# Works by Canova
SELECT
  ?work ?workLabel (GROUP_CONCAT(DISTINCT ?instanceLabel; separator=", ") AS ?inst)
  (GROUP_CONCAT(DISTINCT STR(YEAR(?date)); separator=", ") AS ?date)
  (GROUP_CONCAT(DISTINCT ?genreLabel; separator=", ") AS ?genre)
  (GROUP_CONCAT(DISTINCT ?materialLabel; separator=", ") AS ?material) (SAMPLE(?image) AS ?image)
WHERE {
  ?work wdt:P170 wd:Q5547;
        wdt:P31 ?instance;
        wdt:P136 ?genre;
        wdt:P571 ?date;
        wdt:P186 ?material;
        wdt:P18 ?image .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "it,fr" .
    ?work rdfs:label ?workLabel .
    ?instance rdfs:label ?instanceLabel .
    ?genre rdfs:label ?genreLabel .
    ?material rdfs:label ?materialLabel .
  } .
} GROUP BY ?work ?workLabel
ORDER BY ?date

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v12("?date"):::projected v12("?genre") v9("?genreLabel"):::projected v12("?image"):::projected v11("?inst") v3("?instance") v8("?instanceLabel"):::projected v12("?material") v10("?materialLabel"):::projected v2("?work"):::projected v7("?workLabel"):::projected c11(["it,fr"]):::literal c9(["bd:serviceParam"]):::iri c2(["wd:Q5547"]):::iri v2 --"wdt:P170"--> c2 v2 --"wdt:P31"--> v3 v2 --"wdt:P136"--> v12 v2 --"wdt:P571"--> v12 v2 --"wdt:P186"--> v12 v2 --"wdt:P18"--> v12 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 v2 --"rdfs:label"--> v7 v3 --"rdfs:label"--> v8 v12 --"rdfs:label"--> v9 v12 --"rdfs:label"--> v10 end bind5[/"?instanceLabel"/] v8 --o bind5 bind5 --as--o v11 bind6[/"str(year-from-dateTime(?date))"/] v12 --o bind6 bind6 --as--o v12 bind7[/"?genreLabel"/] v9 --o bind7 bind7 --as--o v12 bind8[/"?materialLabel"/] v10 --o bind8 bind8 --as--o v12 bind9[/"sample(?image)"/] v12 --o bind9 bind9 --as--o v12