connorshea / wikidatum

Interact with the Wikidata/Wikibase REST API from Ruby.
https://connorshea.github.io/wikidatum/
MIT License
12 stars 2 forks source link

Handle different possible types for SomeValue/NoValue items when creating statements? #5

Closed connorshea closed 1 year ago

connorshea commented 2 years ago

I hardcoded datatype to string for novalue and somevalue statements, but I think datatype may actually need to be chosen based on the property's type. I need to figure out if there's a way to derive that ahead of time, and if not then... idk, there's not really much I can do without a list of all properties or something.

connorshea commented 1 year ago

The datatype is no longer an attribute sent in the request for statement creation, so we can just close this issue.