osm2rdf
osm2rdf copied to clipboard
Convert OpenStreetMap wikimedia_commons tags to IRIs
In OpenStreetMap and OpenHistoricalMap, the wikimedia_commons
key can be set to a page name on Wikimedia Commons. The page is typically a file description page in the File: namespace, but sometimes it’s a category in the Category: namespace or a gallery in the main namespace instead. It would be convenient to have osm:wikimedia_commons
triples that point to sdc:
entities for files. Categories and galleries are usually linked to Wikidata items in the same manner as Wikipedia articles, so I suppose there would be schema:about
triples for those.
One use case is to associate map features with Commons images for a better sense of context. OSM-based applications like OsmAnd can fetch the image and associated licensing information using direct MediaWiki API calls because they’re working with a single map feature at a time. OpenHistoricalMap/issues#581 tracks something similar that would be built into the OHM website. But there’s also some value in being able to query for linked images en masse. For example, a query could return map features whose wikimedia_commons
tag:
- Refers to a nonexistent (possibly deleted) image
- Refers to an image that depicts something completely different than the map feature or a photo that (in the context of OHM) was taken after the feature ceased to exist
- Refers to a photo that was taken too long ago and should be replaced by something more recent
- Refers to a photo that remains copyrighted locally, even though it’s in the public domain in the U.S., where Wikimedia Commons is hosted