Skip to content
Snippets Groups Projects
Commit 320bcec0 authored by Marc Feger's avatar Marc Feger
Browse files

Change Wikidata query to return xsd:dateTime; Use rdfs:label instead of wdt:P1476.

parent 5d9efa3c
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ DISTINCT (?movie AS ?Movie) ...@@ -8,7 +8,7 @@ DISTINCT (?movie AS ?Movie)
(GROUP_CONCAT(DISTINCT ?director;separator="|") AS ?Director) (GROUP_CONCAT(DISTINCT ?director;separator="|") AS ?Director)
(GROUP_CONCAT(DISTINCT ?author;separator="|") AS ?Author) (GROUP_CONCAT(DISTINCT ?author;separator="|") AS ?Author)
(GROUP_CONCAT(DISTINCT ?cast_member;separator="|") AS ?Cast) (GROUP_CONCAT(DISTINCT ?cast_member;separator="|") AS ?Cast)
(GROUP_CONCAT(DISTINCT YEAR(?publish_date);separator="|") AS ?Published) (GROUP_CONCAT(DISTINCT ?publish_date;separator="|") AS ?Published)
(GROUP_CONCAT(DISTINCT ?genre;separator="|") AS ?Genre) (GROUP_CONCAT(DISTINCT ?genre;separator="|") AS ?Genre)
(GROUP_CONCAT(DISTINCT ?duration;separator="|") AS ?Duration) (GROUP_CONCAT(DISTINCT ?duration;separator="|") AS ?Duration)
(GROUP_CONCAT(DISTINCT ?description;separator="|") AS ?Description) (GROUP_CONCAT(DISTINCT ?description;separator="|") AS ?Description)
...@@ -59,6 +59,7 @@ HAVING (?min_dob >= 1970) ...@@ -59,6 +59,7 @@ HAVING (?min_dob >= 1970)
} }
OPTIONAL {?movie wdt:P1476 ?title.} # titel oder label ? OPTIONAL {?movie wdt:P1476 ?title.} # titel oder label ?
OPTIONAL {?movie rdfs:label ?title FILTER (LANG(?title) = "en")} # titel oder label ?
OPTIONAL {?movie wdt:P57 ?director.} OPTIONAL {?movie wdt:P57 ?director.}
OPTIONAL {?movie wdt:P58 ?author.} OPTIONAL {?movie wdt:P58 ?author.}
OPTIONAL {?movie wdt:P161 ?cast_member.} OPTIONAL {?movie wdt:P161 ?cast_member.}
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment