Skip to content

Commit 4996b86

Browse files
committed
Movie browser demo: Added a @skipIfNull directive for demonstration purposes
1 parent 0f7fbd0 commit 4996b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/demos/movies/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ <h1 style="display: inline; margin-right: 20px;">Wikidata Movie Browser</h1>
163163
netflix @one @pattern(of: "SELECT ?s ?id { ?s wdt:P1874 ?o . BIND(IRI(CONCAT('https://www.netflix.com/title/', STR(?o))) AS ?id) }")
164164
165165
# Pick the minimum advised viewing age based on "wdt:P2899" across any rating scheme
166-
minAge @one @pattern(of: "SELECT ?s (MIN(?o) AS ?age) { ?s (!<p>)/wdt:P2899 ?o } GROUP BY ?s")
166+
minAge @one @pattern(of: "SELECT ?s (MIN(?o) AS ?age) { ?s (!<p>)/wdt:P2899 ?o } GROUP BY ?s") @skipIfNull
167167
168168
genres @pattern(of: "SELECT DISTINCT ?s (STR(?l) AS ?x) { ?s wdt:P136/rdfs:label ?l . FILTER(langMatches(lang(?l), 'en')) }")
169169
}

0 commit comments

Comments
 (0)