query-f0dfd0e96c5f0ad989a98e296f79a120
Propertiesinstance of (P31)subclass of (P279)readable file format (P1072)inception (P571)publication date (P577)
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
SELECT DISTINCT ?format ?formatLabel ?date ?pub
WHERE {
?format wdt:P31/wdt:P279* wd:Q235557.
?app wdt:P1072 ?format.
OPTIONAL {?format wdt:P571 ?date}.
OPTIONAL {?format wdt:P577 ?pub}.
BIND (?date AS ?time)
BIND (?pub AS ?time)
FILTER((?time) < "1985-01-01"^^xsd:dat)
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("?app")
v4("?date"):::projected
v2("?format"):::projected
v5("?pub"):::projected
v6("?time")
a1((" "))
c4(["wd:Q235557"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?time < s1985-01-01^^<http://www.w3.org/2001/XMLSchema#dat>'"]]
f0 --> v6
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v3 --"wdt:P1072"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P571".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P577".-> v5
end
bind1[/"?date"/]
v4 --o bind1
bind1 --as--o v6
bind2[/"?pub"/]
v5 --o bind2
bind2 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end