Dear all,
thank you, Dragan for the answer, yet this is nothing I can explain to "normal users". They use the Query Service with the recommended input help and they do get inexplicable January 1st dates (which, if the are not suspicious, they will accept as the new knowledge).
What would speak against a a Query helper that gives data pretty much as we have entered them?
Best, Olaf
Dragan Espenschied dragan.espenschied@rhizome.org hat am 23.06.2021 19:53 geschrieben:
Hello Olaf,
The trick is to query for the property value node instead of the proterty direct value.
Example in ArtBase:
https://tinyurl.com/yft9u5kg On Wikidata, you can replace "rt:" --> "wdt:" "rp:" --> "p:" "rpsv:" --> "psv:"
With the "property direct" ("rt") you query for just the value of the property.
With "property" ("rp") you query for the node that holds the value, and more meta-information about the value.
The node contains the "node value" ("rpsv"), and that value has a precision value ("wikibase:timePrecision"). 9 is year level, 10 is month level, 11 is day level.
Hope that helps! :)
select ?artwork ?inception ?date_precision WHERE { ?artwork rt:P3 r:Q5 . ?artwork rt:P26 ?inception .
?artwork rp:P26 ?inception_node . ?inception_node rpsv:P26 ?inception_value . ?inception_value wikibase:timePrecision ?date_precision . } LIMIT 100
-- Dragan Espenschied Preservation Director Rhizome at the New Museum
On Mi, Jun 23 2021 at 11:50:12 +0200, Olaf Simons olaf.simons@pierre-marteau.com wrote:
Dear All,
I wonder whether there is a simple way to retrieve dates with the precision in they have been put into a wikibase.
Using SPARQL I get all years such as "1749" as "1 January 1749" statements, no matter whether the person is born that day or not. Should I run different searches?
Best, Olaf
Dr. Olaf Simons Forschungszentrum Gotha der Universität Erfurt Am Schlossberg 2 99867 Gotha Büro: +49-361-737-1722 Mobil: +49-179-5196880 Privat: Hauptmarkt 17b/ 99867 Gotha _______________________________________________ Wikibaseug mailing list -- wikibaseug@lists.wikimedia.org To unsubscribe send an email to wikibaseug-leave@lists.wikimedia.org
Wikibaseug mailing list -- wikibaseug@lists.wikimedia.org To unsubscribe send an email to wikibaseug-leave@lists.wikimedia.org
Dr. Olaf Simons Forschungszentrum Gotha der Universität Erfurt Am Schlossberg 2 99867 Gotha Büro: +49-361-737-1722 Mobil: +49-179-5196880 Privat: Hauptmarkt 17b/ 99867 Gotha
Hi Olaf,
I think the Help page for Dates https://www.wikidata.org/wiki/Help:Dates (if you scroll through completely) has some decent examples for you and lots of good information. But perhaps that page is still missing better documentation to help you form your queries? I think that might be the case.
Take a look and let us know what you think. Then the community can add some better examples, or you can!
Thad https://www.linkedin.com/in/thadguidry/ https://calendly.com/thadguidry/
On Thu, Jun 24, 2021 at 4:34 AM Olaf Simons olaf.simons@pierre-marteau.com wrote:
Dear all,
thank you, Dragan for the answer, yet this is nothing I can explain to "normal users". They use the Query Service with the recommended input help and they do get inexplicable January 1st dates (which, if the are not suspicious, they will accept as the new knowledge).
What would speak against a a Query helper that gives data pretty much as we have entered them?
Best, Olaf
Dragan Espenschied dragan.espenschied@rhizome.org hat am 23.06.2021
19:53 geschrieben:
Hello Olaf,
The trick is to query for the property value node instead of the proterty direct value.
Example in ArtBase:
https://tinyurl.com/yft9u5kg On Wikidata, you can replace "rt:" --> "wdt:" "rp:" --> "p:" "rpsv:" --> "psv:"
With the "property direct" ("rt") you query for just the value of the property.
With "property" ("rp") you query for the node that holds the value, and more meta-information about the value.
The node contains the "node value" ("rpsv"), and that value has a precision value ("wikibase:timePrecision"). 9 is year level, 10 is month level, 11 is day level.
Hope that helps! :)
select ?artwork ?inception ?date_precision WHERE { ?artwork rt:P3 r:Q5 . ?artwork rt:P26 ?inception .
?artwork rp:P26 ?inception_node . ?inception_node rpsv:P26 ?inception_value . ?inception_value wikibase:timePrecision ?date_precision . } LIMIT 100
-- Dragan Espenschied Preservation Director Rhizome at the New Museum
On Mi, Jun 23 2021 at 11:50:12 +0200, Olaf Simons olaf.simons@pierre-marteau.com wrote:
Dear All,
I wonder whether there is a simple way to retrieve dates with the precision in they have been put into a wikibase.
Using SPARQL I get all years such as "1749" as "1 January 1749" statements, no matter whether the person is born that day or not. Should I run different searches?
Best, Olaf
Dr. Olaf Simons Forschungszentrum Gotha der Universität Erfurt Am Schlossberg 2 99867 Gotha Büro: +49-361-737-1722 Mobil: +49-179-5196880 Privat: Hauptmarkt 17b/ 99867 Gotha _______________________________________________ Wikibaseug mailing list -- wikibaseug@lists.wikimedia.org To unsubscribe send an email to wikibaseug-leave@lists.wikimedia.org
Wikibaseug mailing list -- wikibaseug@lists.wikimedia.org To unsubscribe send an email to wikibaseug-leave@lists.wikimedia.org
Dr. Olaf Simons Forschungszentrum Gotha der Universität Erfurt Am Schlossberg 2 99867 Gotha Büro: +49-361-737-1722 Mobil: +49-179-5196880 Privat: Hauptmarkt 17b/ 99867 Gotha _______________________________________________ Wikidata mailing list -- wikidata@lists.wikimedia.org To unsubscribe send an email to wikidata-leave@lists.wikimedia.org
By the way, I also agree with you that a query helper that can use a user's locale information for helping format dates with querying could certainly help more users. I think work on a better query helper was already on the teams' roadmap? Can't find the Epic or Issue on phabricator however (too much there)
Thad https://www.linkedin.com/in/thadguidry/ https://calendly.com/thadguidry/