query-f8d9f175dfdb67733e1e4e860e46118d
Trilotat
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?article ?articleLabel ?article_release_date ?item ?itemLabel ?item_release_date
WHERE
{
?item wdt:P5824 [] . # ?item is retracted by something
OPTIONAL { ?item wdt:P577 ?item_release_date . }
?article wdt:P2860 ?item . # ?article cites ?item
OPTIONAL { ?article wdt:P577 ?article_release_date . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?article"):::projected
v4("?article_release_date"):::projected
v1("?item"):::projected
v2("?item_release_date"):::projected
a1((" "))
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P5824"--> a1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P577".-> v2
end
v3 --"wdt:P2860"--> v1
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P577".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end