Question: How can we present pictures from Wikipedia for our editors with no copyright?
I see no SPARQL for that?
Answer: it depends ;-)
The future: we have a project SDC Structured data in Commons were we will have all pictures in a "Wikidata" tool i.e. its a free application called Wikibase that is the same application/tool as Wikidata but for your own data i,.e. you can then do SPARQL and ask for all pictures of author "August Strindberg" Q7724 depicted when smoking a pipe... i.e. all pictures and objects in the picture will be linked data see example a wikidata object Q1231009 about a painting "The Coronation of Napoleon (1805-1807).jpg" see picture
Showing this painting with objects depicted using chinese labels lang code zh
https://tools.wmflabs.org/wd-image-positions/item/Q1231009?uselang=zh
I have done some tests in Wikidata --> I can then aska query like finds all people with a person in SBL Property 3217 depicted see tweet
How to access Wikidata/Wikicommon using the API
- Example API documentation
- about a picture File:August_Strindberg.jpg
- Wikicommons File:AugustStrindberg.jpg
- API sv.wikipedia.org api.php action=query prop=imageinfo iiprop=extmetadata titles=File%3aAugust%20Strindberg.jpg I guess LicenseShortName Public domain is your friend
- about a picture File:August_Strindberg.jpg
LicenseShortName: { value: "Public domain", source: "commons-desc-page", hidden: "" },
- about a page August_Strindberg
- in sv:Wikipedia what pictures it has sv.wikipedia.org/w/api.php action=query titles=August_Strindberg prop=images
- SPARQL to get pages in sv:Wikipedia /en:WIkipedia for Wikidata Property 5101
- pictures in a Category in Wikicommons e.g. Wikicommons:Category:August_Strindberg
- https://commons.wikimedia.org/w/api.php?action=query&prop=images&titles=Category:August_Strindberg
- Looks like Strindberg also has another Wikicommon page August Strindberg
- commons Category:Photographs_of_August_Strindberg
- API:Images
- about a page August_Strindberg
- documentation Extension:CommonsMetadata
Svenskt Porträttarkiv SPA Property 4819
- Swedish database with > 700 000 scanned pictures that is Wikidata property WD 4819
- List SPA and Litteraturbanken
- I guess all those pictures can be used as they are older than 1967.....
- You can ask question in Facebook grp
Misc
- jsfiddler I have done
- Tools on https://tools.wmflabs.org
- GITHUB WIkidata
- Wikidata:Tools
- Wikidata Change stream using API:RecentChanges