Closed breyten closed 9 years ago
Looks good to me. Not sure what the "Gemeente Ede" collection is exactly, and if that should be the collection name though, but I guess that's something that you guys should decide.
I'll change the naming to Gemeentearchief Ede :-)
As far as the collection name goes :P
The documentation for the dataset is missing (docs/user/datasets.rst
) :wink:. I briefly looked at the code, and it looks good to me. Tomorrow I wil try do an actual import before we merge this in.
Mentioned docs and test shortly in CONTRIBUTING.rst :-)
@breyten I just ran the importer without any problems.
Apart from the missing docs and the two comments in staticfile.py
there is another small issue with the items that should be fixed before we can merge. The URL to the photograph in media_urls
currently points to a Wikimedia Commons HTML page that includes the photo. However, media_urls
should only include permanent links to the actual file, so that API users can directly request the images inside their applications.
Ok, fixed that. Thanks for the feedback!
For future reference: there is a Wikimedia Tools Lab which hosts (externally) developed tools that support users of the Wikimedia platform. We use one of these for the Tropenmuseum items, that allows a developer to request author and metadata from the Wikimedia Commons in XML. For example: http://tools.wmflabs.org/magnus-toolserver/commonsapi.php?image=File:GA32001.jpg
For now, this seems to be a bit overkill and the regex solution works fine. For some data on Commons there may be more metadata available that we want to store in the OCD API as well (for enrichment purposes, for instance).
Implement Gemeente Ede as a source