User:Marsupium/BStGS
Feel free to make changes!
Obsolete queries are struck-through.
TODO edit
- wdq2sparql: https://tools.wmflabs.org/wdq2sparql/w2s.php
For number tracking use now: ({{subst:CURRENTTIMESTAMP}})
- Portrait of a Man (Q29477844): error in descriptions; probably error in creator; no source
BStGS database issues edit
As of July 2019 a lot of dupe entries. This is an older duplicate which became a triple now: Portrait of a young Man (Q29901223): bei den Einträgen https://www.sammlung.pinakothek.de/en/bookmark/artwork/Qr4Dr0DLpE und https://www.sammlung.pinakothek.de/en/bookmark/artwork/o5xr0pqnG7 scheint es sich um dasselbe Gemälde zu handeln. Ich freute mich, wenn Sie mir mitteilen könnten, ob Ihnen dieser Hinweis hilft.
All works and location control edit
- items with collection BStGS or a part of BStGS: Try it!
# List of works in the collection of the Bavarian State Painting Collections or a part thereof SELECT ?item ?itemLabel (COUNT(DISTINCT ?sitelink) AS ?sitelinkno) ?invno # ?itemDescription # <- does not work, if activated and grouped by reduces the number of results WHERE { { ?item wdt:P195 wd:Q812285. } UNION { ?item wdt:P195 [ wdt:P361 wd:Q812285 ]. } OPTIONAL { ?sitelink schema:about ?item. } # OPTIONAL { ?item schema:description ?itemDescription. } OPTIONAL { ?item p:P217 ?invnostatement. ?invnostatement ps:P217 ?invno. ?invnostatement pq:P195 wd:Q812285. } # BStGS invnos SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,fr,it,es,pt,ca,la" . } } GROUP BY ?item ?itemLabel ?invno ORDER BY DESC(?sitelinkno)
- -> 30000 (17947 (20190705224407), 589 (20170510084554), 244 (19:56, 26 April 2016 (UTC)), 149 (17:26, 15 April 2015 (UTC)))
- items with location BStGS or collection part of BStGS: Try it!
# items with location BStGS or collection part of BStGS SELECT ?item ?itemLabel (GROUP_CONCAT(DISTINCT ?invno ; SEPARATOR=", ") AS ?invnos) ?collectionLabel ?locationLabel WHERE { { ?item wdt:P195 ?sub0 . ?sub0 wdt:P361 wd:Q812285 . } UNION { ?item wdt:P276 wd:Q812285 . } OPTIONAL { ?item wdt:P217 ?invno . } OPTIONAL { ?item wdt:P195 ?collection . } OPTIONAL { ?item wdt:P276 ?location . } FILTER NOT EXISTS { ?item wdt:P195 wd:Q812285 . } MINUS { ?item wdt:P31 wd:Q15206795 } # no exhibition rooms SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,fr,it,es,pt,ca,la" . } } GROUP BY ?item ?itemLabel ?invnos ?collectionLabel ?locationLabel
- -> 0 (8 (20170713051303), 132 (20150415172600))
- items in a location but not in the collection of the BStGS: TODO: yet to be implemented
List locations edit
- Some BStGS locations: Try it!
# Some BStGS locations SELECT DISTINCT ?item ?itemLabel ?instanceOfLabel ?partLabel ?locationLabel WHERE { { ?item wdt:P361 wd:Q812285 . # parts of BStGS } UNION { ?item wdt:P361 ?sub1 . # parts of ?sub1 wdt:P361 wd:Q812285 . # parts of BStGS } # OPTIONAL { ?item wdt:P31 ?instanceOf . } # TODO: produces double entries # Those of the second group are all exhibition (wd:Q15206795) rooms anyway as of 2017-05-11 SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,fr,it,es,pt,ca,la" . } } # ORDER BY xsd:integer(?item) ?itemLabel ?instanceOfLabel ?partLabel ?locationLabel
Ontology edit
Cf. Room 701 (Q15298167), Hall 707 (Q18572487). Recommendations from Wikidata:WikiProject Museums would be useful, perhaps new section there with the properties: instance of (P31), P (P), P (P), P (P), P (P), … museum storage (Q18123400): e.g. locations of the Bavarian State Painting Collections with works not on display (Q29343881). Cf. also Wikidata:WikiProject Visual arts/Item structure#Object history or provenance
Specific maintenance (should be generalized) edit
Those should probably be empty (or empty of BStGS objects):
- move location from New Residence, Bamberg (Q430550) to Staatsgalerie Bamberg (Q29343359) Done 17:44, 18 April 2017 (UTC)
- items with collection or location Schleißheim palace complex (Q680166) or a part of it (not Schleißheim State Gallery (Q22669065)): Try it!
SELECT ?itemLabel WHERE { { ?item wdt:P195 wd:Q680166 . } UNION { ?item wdt:P195 ?sub0 . ?sub0 wdt:P361 wd:Q680166 . } UNION { ?item wdt:P276 wd:Q680166 . } UNION { ?item wdt:P276 ?sub1 . ?sub1 wdt:P361 wd:Q680166 . } SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,fr,it,es,pt,ca,la" . } }
- -> 0(?) (2 (11:32, 17 April 2015 (UTC)))
Provenance edit
More items for the collections and/or locations of the contributing galleries are needed. "Information about the provenance of paintings from the galleries of the old Bavarian Electoral Palatinate and the palaces in Schleissheim, Munich, Dachau, Neuburg, Zweibrücken (Schloss Karlsberg), Mannheim, Düsseldorf etc., may not include dates."[1]:
- for Schleissheim and Munich: Bavarian collections of the Wittelsbachs (Q32929011):
- Galerie Zweibrücken (example)
- Galerie Düsseldorf (example)
Images edit
- files in the tree of c:Category:Bayerische Staatsgemäldesammlungen and c:Category:Artworks without Wikidata item prefiltered:
petscan:1235359, finer (since 20190706): petscan:9958418
- ->0 (180 (20190705224407), 88 (20170824171118))
- of those: files in the tree of c:Category:Sculptures in the Neue Pinakothek and c:Category:Artworks without Wikidata item: petscan:1235421
- ->0 (26 (20170824171118))
- files in the tree of c:Category:Paintings in the Alte Pinakothek and c:Category:Artworks without Wikidata item: petscan:1180773
- -> 0 (0 (20170824171118), 2 (20170725202813), 8 (20170713174725), 187 (20170510084500))
- files in the tree of c:Category:Paintings in the Neue Pinakothek and c:Category:Artworks without Wikidata item: petscan:1160685
- -> 0 (6 (20170824171118), 203 (20170727142124))
items with collection or location BStGS or a part of BStGS without image:
-> 0 (depending on copyright status) (15 (17:24, 8 June 2015 (UTC)))
- number of items with collection BStGS with and without image and ratio: TODO: yet to be implemented
Object parts edit
deprecated items with collection or location BStGS or a part of BStGS which have has part(s) (P527) or part of (P361):
(CLAIM[195:812285] OR CLAIM[195:(CLAIM[361:812285])] OR CLAIM[276:812285] OR CLAIM[276:(CLAIM[361:812285])]) AND (CLAIM[527] OR CLAIM[361]), nowTry it!SELECT ?item ?itemLabel WHERE { { ?item wdt:P195 wd:Q812285. } UNION { ?item wdt:P195 ?sub0. ?sub0 wdt:P361 wd:Q812285. } UNION { ?item wdt:P276 wd:Q812285. } UNION { ?item wdt:P276 ?sub1. ?sub1 wdt:P361 wd:Q812285. } { ?item wdt:P527 _:b16. } UNION { ?item wdt:P361 _:b17. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
-> 0 (16 (23:46, 9 February 2016 (UTC)))
- SPARQL query that intelligently fetches the non-literally-BStGS works with BStGS parts: TODO: yet to be implemented
Inventory numbers edit
- items with collection or location BStGS or a part of BStGS without BStGS inventory number (query below):
- -> 0 (18 (20170711150214); 13 (18:29, 5 January 2016 (UTC)); 16 (17:24, 8 June 2015 (UTC)); 56 (17:26, 15 April 2015 (UTC)))
This list is periodically updated by a bot. Manual changes to the list will be removed on the next update!
WDQS | PetScan | TABernacle | Find images | Recent changes | Query:# items with collection or location BStGS or a part of BStGS without BStGS inventory number SELECT ?item ?itemLabel WHERE { ?item (p:P195|p:P276)/wdt:P361* ?institutionSt. ?institutionSt (ps:P195|ps:P276)/wdt:P361* wd:Q812285 . # TODO: make "?"? OPTIONAL { ?institutionSt pq:P582 ?endTime. } FILTER(!BOUND(?endTime)) # remove those not in the institution any more # The current inventory numbers are assigned since 1856 (cf. https://www.sammlung.pinakothek.de/en/about). # However I currently have no source for inventory numbers of artworks that aren't currently in the collection. # So these get filtered … (example: https://www.wikidata.org/wiki/Q29963149) OPTIONAL { ?item p:P217 ?invnostatement . ?invnostatement ps:P217 ?invno . ?invnostatement pq:P195 wd:Q812285 . } FILTER(!BOUND(?invnostatement)) # only those without invno statement with collection BStGS qualifier MINUS { ?item wdt:P31 wd:Q15206795 } # no exhibition rooms MINUS { ?item wdt:P31/wdt:P279* wd:Q464980 } # no exhibitions MINUS { ?item wdt:P31 wd:Q26945165 } # no architectural museums MINUS { ?item wdt:P31 wd:Q7328910 } # no art collections # no works with parts with BStGS inv nos MINUS { ?item wdt:P527 ?part. ?part p:P217 ?partinvnostatement. ?partinvnostatement pq:P195 wd:Q812285. } SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,fr,it,es,pt,ca,la". } } ORDER BY ?item
∑ 20 items.