query-d580f6cde5308c0164ee7194205dab49

rq turtle/ttl

Ancient lyric fragments SELECT ?fragment ?authorLabel ?fragmentLabel ?genreLabel ?dialectLabel WHERE { { ?fragment wdt:P136/wdt:P279* wd:Q1885775 . } UNION { ?fragment wdt:P136 wd:Q3906966 . } UNION { ?fragment wdt:P136 wd:Q3164714 . } ?fragment wdt:P50 ?author . ?fragment wdt:P136 ?genre . ?fragment wdt:P407 ?dialect . SERVICE wikibase:label { bd:serviceParam wikibase:language "it,grc" }
} ORDER BY ?authorLabel ?fragmentLabel

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Ancient lyric fragments
SELECT ?fragment ?authorLabel ?fragmentLabel ?genreLabel ?dialectLabel
WHERE {
  { ?fragment wdt:P136/wdt:P279* wd:Q1885775 . }
  UNION { ?fragment wdt:P136 wd:Q3906966 . }
  UNION { ?fragment wdt:P136 wd:Q3164714 . }
  ?fragment wdt:P50 ?author .
  ?fragment wdt:P136 ?genre .
  ?fragment wdt:P407 ?dialect .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "it,grc" }    
} ORDER BY ?authorLabel ?fragmentLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?author") v1("?authorLabel"):::projected v6("?dialect") v3("?fragment"):::projected v2("?fragmentLabel"):::projected v5("?genre") a1((" ")) c5(["wd:Q3164714"]):::iri c3(["wd:Q1885775"]):::iri c11(["it,grc"]):::literal c9(["bd:serviceParam"]):::iri c4(["wd:Q3906966"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P136"--> c5 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P136"--> c4 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P136"--> a1 a1 --"wdt:P279"--> c3 end union0r <== or ==> union0l end v3 --"wdt:P50"--> v4 v3 --"wdt:P136"--> v5 v3 --"wdt:P407"--> v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end