query-4c4582522bab1904c8a3a58974bb375f
Search - Filme nach Kinostart https://w.wiki/779Zusätzlich zur bisherigen Variante habe ich hier auch ein "DISTINCT" im SELECT ergänzt, um keine Mehrfacheinträge zu erhalten. Für die aktuellen Kinostarts sieht das wie folgt aus:
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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?film ?release ?filmLabel WHERE {
{ ?film wdt:P31 wd:Q11424. }
UNION
{ ?film (wdt:P31/(wdt:P279+)) wd:Q11424. }
?film p:P577 ?release_statement.
?release_statement (psv:P577/wikibase:timePrecision) 11 ;
ps:P577 ?release.
FILTER((?release >= "2019-08-15"^^xsd:dat) && (?release < "2019-08-29"^^xsd:dat))
?release_statement pq:P291 wd:Q183.
FILTER(NOT EXISTS { ?release_statement wikibase:rank wikibase:DeprecatedRank. })
FILTER(NOT EXISTS { ?release_statement pq:P400 ?platform. })
FILTER(NOT EXISTS { ?release_statement pq:P437 ?distribution. })
FILTER(NOT EXISTS { ?film wdt:P31 wd:Q506240. })
SERVICE wikibase:label { bd:serviceParam wikibase:language "de". }
}
ORDER BY (?release) (?filmLabel)
Query found at
- https://www.wikidata.org/wiki/User:M2k~dewiki/Tools/Enrich_Objects
- https://www.wikidata.org/wiki/Wikidata_talk:SPARQL_query_service
- https://www.wikidata.org/wiki/Wikidata_talk:SPARQL_query_service/Wikidata_Query_Help
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?distribution")
v3("?film"):::projected
v2("?filmLabel"):::projected
v6("?platform")
v1("?release"):::projected
v4("?release_statement")
a1((" "))
a2((" "))
c14(["11^^xsd:integer"]):::literal
c21(["de"]):::literal
c6(["wikibase:DeprecatedRank"]):::iri
c19(["bd:serviceParam"]):::iri
c17(["wd:Q183"]):::iri
c9(["wd:Q11424"]):::iri
c2(["wd:Q506240"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:direct/P31"--> e0c2
e0v1("?film"):::projected
e0c2(["wd:Q506240"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v3
f0 --> c1
f0 --> c2
v3 --"p:direct/P31"--> c2
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"p:qualifier/P437"--> e1v2
e1v2("?distribution"):::projected
e1v1("?release_statement"):::projected
end
f1--EXISTS--> f1e1
f1 --> v4
f1 --> c3
f1 --> v5
v4 --"p:qualifier/P437"--> v5
f2[["not "]]
subgraph f2e2["Exists Clause"]
e2v1 --"p:qualifier/P400"--> e2v2
e2v2("?platform"):::projected
e2v1("?release_statement"):::projected
end
f2--EXISTS--> f2e2
f2 --> v4
f2 --> c4
f2 --> v6
v4 --"p:qualifier/P400"--> v6
f3[["not "]]
subgraph f3e3["Exists Clause"]
e3v1 --"wikibase:rank"--> e3c2
e3v1("?release_statement"):::projected
e3c2(["wikibase:DeprecatedRank"]):::iri
end
f3--EXISTS--> f3e3
f3 --> v4
f3 --> c5
f3 --> c6
v4 --"wikibase:rank"--> c6
f4[["?release >= s2019-08-15^^<http://www.w3.org/2001/XMLSchema#dat>'?release < s2019-08-29^^<http://www.w3.org/2001/XMLSchema#dat>'"]]
f4 --> v1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c9
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P31"--> c9
end
union0r <== or ==> union0l
end
v3 --"p:P577"--> v4
v4 --"p:statement/value/P577"--> a2
a2 --"wikibase:timePrecision"--> c14
v4 --"p:statement/P577"--> v1
v4 --"p:qualifier/P291"--> c17
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c19 --"wikibase:language"--> c21
end