query-a3aece1c2bfeea89552460ed4eb77847

rq turtle/ttl

Propertiesauthor (P50)publication date (P577)full work available at URL (P953)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?work ?workLabel ?year ?text ?wikisource
WHERE {
?work wdt:P50 wd:Q19543; # author: Hans Sachs
   wdt:P577 ?pubdate.
BIND(YEAR(?pubdate) AS ?year)
OPTIONAL{?wikisource schema:about ?work; schema:isPartOf <https://de.wikisource.org/>} # text of work in German Wikisource
OPTIONAL{?work wdt:P953 ?text} # link for text of work
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de,en"}
} ORDER BY ?year

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?pubdate") v5("?text"):::projected v4("?wikisource"):::projected v2("?work"):::projected v4("?year"):::projected c9(["bd:serviceParam"]):::iri c6([https://de.wikisource.org/]):::iri c11(["#91;AUTO_LANGUAGE#93;,de,en"]):::literal c2(["wd:Q19543"]):::iri v2 --"wdt:P50"--> c2 v2 --"wdt:P577"--> v3 bind0[/"year-from-dateTime(?pubdate)"/] v3 --o bind0 bind0 --as--o v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."schema:about".-> v2 v4 --"schema:isPartOf"--> c6 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P953".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end