I'm trying to retrieve a list of points of interests of a given class or subclass (museum, skyscraper, etc.) in a given city and to display for each of them:
- The list of translated labels in all known languages in a single row (for eg. "Statue of Liberty[en]___Freiheitsstatue[de]___Statua della libertà[it]")
- The latitude and longitude
- Other properties (for example the height of skyscrapers, if any)
What I did so far is:
SELECT DISTINCT ?item (GROUP_CONCAT(DISTINCT ?lbl; separator='___') AS ?label) WHERE {
?item wdt:P131* wd:Q61 .
?item wdt:P31/wdt:P279* wd:Q33506 .
?item rdfs:label ?l .
BIND(CONCAT(STR(?l), ' (', LANG(?l), ')') AS ?lbl)
}
GROUP BY ?item
How can I add the other info?