Hallo Bert, welkom op Wikidata! Spinster (talk) 19:10, 25 September 2015 (UTC)Reply


Hallo Bert! Zou je ook een SPARQL query willen schrijven voor het opvragen van een lijst van Q-nummers van kunstwerken ahv workPID's Use case: stel dat ik een lijst van workPIDs van kunstwerken heb en ik wil andere contextuele data over die kunstwerken (titel, datering) binnenhalen, maar die data staat momenteel enkel op wikidata online -> ik heb eerst Q-nummers nodig om de rest van de data te kunnen vragen... Bedankt! Alina_data


2016/05/10 Alina_data: Er is iets mis met '2. Alle kunstwerken in Groeningemuseum, met hun titel en datapid'. De functie ' ?y v:P195 ?collection .' geeft een error melding terug. De querie werkt ook perfect zonder die functie, maar ze geeft natuurlijk geen collectionLabel terug.
Het is beter om functie 'OPTIONAL' te gebruiken, anders worden er in het resultaat enkel kunstwerken opgenomen die alle gevraagde entities ingevuld hebben en niet 'alle' kunstwerken die in een collectie zitten.
Voorstel versie 2: Alle kunstwerken in KMSKA met wikidata Q id van het kunstwerk, objectnummer, WorkPID, titel, kunstenaar Q-id, naam kunstenaar, collectie Q-id, collectie, afbeelding uit Commons, datering, objectnaam Q-id, objectnaam.

test

SELECT ?work ?inventory_number ?WorkPID ?workLabel ?creator ?creatorLabel ?collection ?collectionLabel ?image ?inception ?instance_of ?instance_ofLabel    WHERE {
 ?work wdt:P195 wd:Q1471477.
 SERVICE wikibase:label { bd:serviceParam wikibase:language "nl". }
 OPTIONAL { ?work wdt:P170 ?creator. }
 OPTIONAL { ?work wdt:P195 ?collection. }
 OPTIONAL { ?work wdt:P217 ?inventory_number. }
 OPTIONAL {
   ?work p:P195 ?y.
   ?y prov:wasDerivedFrom ?z.
   ?z pr:P854 ?WorkPID.
 }
 OPTIONAL { ?work wdt:P18 ?image. }
 OPTIONAL { ?work wdt:P571 ?inception. }
 OPTIONAL { ?work wdt:P31 ?instance_of. }
  }

Automated report of empty item: Q118951016 edit

Hello, an item that you have edited (and you are the only non-bot editor) is considered empty and will be deleted in 72 hours if it doesn't improve. Your automated cleaner, Dexbot (talk) 10:45, 5 June 2023 (UTC)Reply

Automated report of empty item: Q118951162 edit

Hello, an item that you have edited (and you are the only non-bot editor) is considered empty and will be deleted in 72 hours if it doesn't improve. Your automated cleaner, Dexbot (talk) 10:46, 5 June 2023 (UTC)Reply

Automated report of empty item: Q118951139 edit

Hello, an item that you have edited (and you are the only non-bot editor) is considered empty and will be deleted in 72 hours if it doesn't improve. Your automated cleaner, Dexbot (talk) 11:22, 5 June 2023 (UTC)Reply

Automated report of empty item: Q118951144 edit

Hello, an item that you have edited (and you are the only non-bot editor) is considered empty and will be deleted in 72 hours if it doesn't improve. Your automated cleaner, Dexbot (talk) 11:26, 5 June 2023 (UTC)Reply

Automated report of empty item: Q118951149 edit

Hello, an item that you have edited (and you are the only non-bot editor) is considered empty and will be deleted in 72 hours if it doesn't improve. Your automated cleaner, Dexbot (talk) 11:40, 5 June 2023 (UTC)Reply

Automated report of empty item: Q118951170 edit

Hello, an item that you have edited (and you are the only non-bot editor) is considered empty and will be deleted in 72 hours if it doesn't improve. Your automated cleaner, Dexbot (talk) 12:13, 5 June 2023 (UTC)Reply