gbv / wikidata-jskos

Access Wikidata in JSKOS format
https://coli-conc.gbv.de/services/wikidata/
MIT License
6 stars 3 forks source link

Include illustrative image(s) #57

Open nichtich opened 4 years ago

nichtich commented 4 years ago

P18 links to images on Wikimedia Commons. Image URLs should be returned in JSKOS field depiction. Image URLs can be generated from Commons file name with preferred image size like this:

http://commons.wikimedia.org/wiki/Special:FilePath/Honeycrisp.jpg?width=300px => https://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/Honeycrisp.jpg/300px-Honeycrisp.jpg

Open question is how to comply with license. JSKOS format does not include license information so how should clients (especially Cocoda) handle it?

=> https://commons.wikimedia.org/wiki/File:Honeycrisp.jpg => Jonathunder / CC BY-SA

nichtich commented 4 years ago

Unfortunately Wikimedia Commons does not support IIIF API

nichtich commented 4 years ago

Apparently the depiction field is already filled but the license issue remains.

stefandesu commented 4 years ago

Instead of return image URLs as string, couldn't we return them as an object which includes the URL as well as the license?

nichtich commented 4 years ago

Yes, that's the idea but it turns out complicated which fields to include in the image object without inventing your own standard. One option so far is IIIF Presentation API or IIIF Image Info API.