docs: updated query
parent
a50da48eed
commit
74260ea1b8
|
@ -23,17 +23,13 @@ First the SPARQL API is used to retrieve upcoming movies using the endpoint "htt
|
||||||
```sql
|
```sql
|
||||||
SELECT
|
SELECT
|
||||||
?movie
|
?movie
|
||||||
?movieLabel
|
|
||||||
(MIN(?releaseDate) as ?minReleaseDate)
|
(MIN(?releaseDate) as ?minReleaseDate)
|
||||||
WHERE {
|
WHERE {
|
||||||
?movie wdt:P31 wd:Q11424; # Q11424 is the item for "film"
|
?movie wdt:P31 wd:Q11424; # Q11424 is the item for "film"
|
||||||
wdt:P577 ?releaseDate; # P577 is the "publication date" property
|
wdt:P577 ?releaseDate. # P577 is the "publication date" property
|
||||||
wdt:P1476 ?title.
|
|
||||||
FILTER (xsd:date(?releaseDate) >= xsd:date("$date"^^xsd:dateTime))
|
FILTER (xsd:date(?releaseDate) >= xsd:date("$date"^^xsd:dateTime))
|
||||||
|
|
||||||
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
|
|
||||||
}
|
}
|
||||||
GROUP BY ?movie ?movieLabel
|
GROUP BY ?movie
|
||||||
ORDER BY ?minReleaseDate
|
ORDER BY ?minReleaseDate
|
||||||
LIMIT $limit
|
LIMIT $limit
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue