python-wikibase
python-wikibase copied to clipboard
Support for more data types
Hi,
do you plan to implement these:
if data_type in ["monolingualtext", "string"]:
return py_wb.StringValue().unmarshal(data_value)
elif data_type == "commonsMedia":
raise NotImplementedError # TODO
elif data_type == "external-id":
return py_wb.ExternalId().unmarshal(data_value)
elif data_type == "geo-shape":
raise NotImplementedError # TODO
elif data_type == "globe-coordinate":
return py_wb.GeoLocation().unmarshal(data_value)
elif data_type == "math":
raise NotImplementedError # TODO
elif data_type == "quantity":
return py_wb.Quantity().unmarshal(data_value)
elif data_type == "tabular-data":
raise NotImplementedError # TODO
elif data_type == "time":
raise NotImplementedError # TODO
elif data_type == "url":
raise NotImplementedError # TODO
elif data_type == "wikibase-form":
raise NotImplementedError # TODO
elif data_type == "wikibase-lexeme":
raise NotImplementedError # TODO
elif data_type == "wikibase-sense":
raise NotImplementedError # TODO
Salut D063520
Hi @D063520,
I'm not working with Wikibase anymore and therefore not planning on adding features to this library myself. If anyone else wants to implement these data types, I'd be happy to have a look at PRs though :)
The relevant code can be found in data_type.py.
Hi,
thank you for the quick response .... I will see how much I needed it ...
Merci D063520