File tree 1 file changed +4
-3
lines changed
app/src/main/resources/queries
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 8
8
?wikipediaArticle
9
9
?commonsArticle
10
10
(SAMPLE (?commonsCategory ) as ?commonsCategory )
11
+ (SAMPLE (?pic ) as ?pic )
11
12
WHERE {
12
13
# Around given location...
13
14
SERVICE wikibase:around {
@@ -16,16 +17,16 @@ SELECT
16
17
bd:serviceParam wikibase:radius " ${RAD}" . # Radius in kilometers.
17
18
}
18
19
19
- # ... and without an image.
20
- MINUS {?item wdt:P18 []}
21
-
22
20
# Get the label in the preferred language of the user, or any other language if no label is available in that language.
23
21
OPTIONAL {?item rdfs:label ?itemLabelPreferredLanguage . FILTER (lang(?itemLabelPreferredLanguage ) = " ${LANG}" )}
24
22
OPTIONAL {?item rdfs:label ?itemLabelAnyLanguage }
25
23
26
24
# Get Commons category (P373)
27
25
OPTIONAL { ?item wdt:P373 ?commonsCategory . }
28
26
27
+ # Get (P18)
28
+ OPTIONAL { ?item wdt:P18 ?pic . }
29
+
29
30
# Get the class label in the preferred language of the user, or any other language if no label is available in that language.
30
31
OPTIONAL {
31
32
?item p:P31/ps:P31 ?classId .
You can’t perform that action at this time.
0 commit comments