query-d1651579059177d8da39de847cdd75d0
Items with VD18 ID and German Wikisource page
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?year ?vd18 ?wikisource ?wikipedia WHERE {
?item wdt:P6135 ?vd18 .
?item wdt:P577 ?date .
OPTIONAL {
?wikisource schema:about ?item .
FILTER (SUBSTR(STR(?wikisource),1,25)="https://de.wikisource.org")
}
OPTIONAL {
?wikipedia schema:about ?item .
FILTER (SUBSTR(STR(?wikipedia),1,25)="https://de.wikipedia.org/")
}
BIND (year(?date) AS ?year) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "de". }
} ORDER BY ASC(?year)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?date")
v4("?item"):::projected
v5("?vd18"):::projected
v2("?wikipedia"):::projected
v3("?wikisource"):::projected
v7("?year"):::projected
c11(["de"]):::literal
c9(["bd:serviceParam"]):::iri
v4 --"wdt:P6135"--> v5
v4 --"wdt:P577"--> v6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."schema:about".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."schema:about".-> v4
end
bind0[/"year-from-dateTime(?date)"/]
v6 --o bind0
bind0 --as--o v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end