Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map ski areas to wikidata #10

Open
dhimmel opened this issue Dec 3, 2024 · 1 comment
Open

Map ski areas to wikidata #10

dhimmel opened this issue Dec 3, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@dhimmel
Copy link
Owner

dhimmel commented Dec 3, 2024

Wikidata might contain additional identifiers and information about ski areas. It would also allow us to link out to wikipedia pages for ski areas.

@dhimmel
Copy link
Owner Author

dhimmel commented Dec 3, 2024

WIP query for https://query.wikidata.org/

PREFIX wikidata: <http://www.wikidata.org/entity/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?ski_area_id ?ski_area_name ?country WHERE {
    ?ski_area_id wdt:P31 wikidata:Q130003 .  # Find ski areas
    ?ski_area_uri rdfs:label ?ski_area_name .
#     OPTIONAL {
#         ?ski_area_uri wdt:P17 ?country_uri .
#     }
#     SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

@dhimmel dhimmel added the help wanted Extra attention is needed label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant