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

Move images to media and add license/caption, if known #91

Open
nichtich opened this issue Feb 18, 2025 · 0 comments
Open

Move images to media and add license/caption, if known #91

nichtich opened this issue Feb 18, 2025 · 0 comments
Milestone

Comments

@nichtich
Copy link
Member

nichtich commented Feb 18, 2025

Images of items (linked with https://www.wikidata.org/wiki/Property:P18) are returned in depiction but these image URLs cannot be used for license issues. Better put a small version (thumbnail) into media instead and possibly add license information.

Example from https://www.wikidata.org/wiki/Q1237 having P18 https://commons.wikimedia.org/wiki/File:Zaytal_Suldenferner_K%C3%B6nigspitze.jpg having Commons URI https://commons.wikimedia.org/entity/M60656862

{
  "type": "Manifest",
  "id": "https://commons.wikimedia.org/entity/M60656862"
  "items": [],
  "thumbnail": [
    {
      "type": "Image",
      "id": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/4b/Zaytal_Suldenferner_K%C3%B6nigspitze.jpg/440px-Zaytal_Suldenferner_K%C3%B6nigspitze.jpg",
      "format": "image/jpeg"
    }
  ],
  "rights": "http://creativecommons.org/licenses/by-sa/4.0/",
  "requiredStatement": {
    "label": { "en": [ "Attribution" ] },
    "value": { "en": [ "Wghler" ] }
  },
  "provider": [ {
      "id": "https://commons.wikimedia.org/",
      "type": "Agent",
      "label": { "en": [ "Wikimedia Commons" ] }
    } ]
}

This likely requires an additional query to commons structured data so may slow down queries.

@nichtich nichtich changed the title Include image license Move images to media and add license/caption, if known Feb 18, 2025
@nichtich nichtich added this to the 0.6.0 milestone Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant