File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/src/main/resources/queries Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 88 ?wikipediaArticle
99 ?commonsArticle
1010 (SAMPLE (?commonsCategory ) as ?commonsCategory )
11+ (SAMPLE (?pic ) as ?pic )
1112 WHERE {
1213 # Around given location...
1314 SERVICE wikibase:around {
@@ -16,16 +17,16 @@ SELECT
1617 bd:serviceParam wikibase:radius " ${RAD}" . # Radius in kilometers.
1718 }
1819
19- # ... and without an image.
20- MINUS {?item wdt:P18 []}
21-
2220 # Get the label in the preferred language of the user, or any other language if no label is available in that language.
2321 OPTIONAL {?item rdfs:label ?itemLabelPreferredLanguage . FILTER (lang(?itemLabelPreferredLanguage ) = " ${LANG}" )}
2422 OPTIONAL {?item rdfs:label ?itemLabelAnyLanguage }
2523
2624 # Get Commons category (P373)
2725 OPTIONAL { ?item wdt:P373 ?commonsCategory . }
2826
27+ # Get (P18)
28+ OPTIONAL { ?item wdt:P18 ?pic . }
29+
2930 # Get the class label in the preferred language of the user, or any other language if no label is available in that language.
3031 OPTIONAL {
3132 ?item p:P31/ps:P31 ?classId .
You can’t perform that action at this time.
0 commit comments