query-79661df2c72a73278567bbd071a1775a
Фильмы конкретного года SELECT DISTINCT ?item ?itemLabel ?name ?typeLabel ?year ?countryLabel ?valLabel WHERE { ?item (wdt:P31/wdt:P279*) wd:Q11424. ?item wdt:P577 ?publicationdate. OPTIONAL { ?item wdt:P793 ?val .} OPTIONAL { ?item wdt:P1476 ?name .} OPTIONAL { ?item wdt:P495 ?country .} ?item wdt:P31 ?type . BIND(STR(YEAR(?publicationdate)) AS ?year) FILTER(?year = "1894") SERVICE wikibase:label { bd:serviceParam wikibase:language "ru" } } order BY ?valLabel
Use at
- https://query.wikidata.org/sparql
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 ?item ?itemLabel ?name ?typeLabel ?year ?countryLabel ?valLabel WHERE {
?item (wdt:P31/wdt:P279*) wd:Q11424.
?item wdt:P577 ?publicationdate.
OPTIONAL { ?item wdt:P793 ?val .}
OPTIONAL { ?item wdt:P1476 ?name .}
OPTIONAL { ?item wdt:P495 ?country .}
?item wdt:P31 ?type .
BIND(STR(YEAR(?publicationdate)) AS ?year)
FILTER(?year = "1894")
SERVICE wikibase:label { bd:serviceParam wikibase:language "ru" }
} order BY ?valLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?country")
v3("?item"):::projected
v6("?name"):::projected
v4("?publicationdate")
v8("?type")
v5("?val")
v1("?valLabel"):::projected
v9("?year"):::projected
a1((" "))
c10(["bd:serviceParam"]):::iri
c12(["ru"]):::literal
c4(["wd:Q11424"]):::iri
f0[["?year = '1894'"]]
f0 --> v9
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v3 --"wdt:P577"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P793".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P1476".-> v6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P495".-> v7
end
v3 --"wdt:P31"--> v8
bind1[/"str(year-from-dateTime(?publicationdate))"/]
v4 --o bind1
bind1 --as--o v9
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end