SWI-Prolog / packages-semweb

The SWI-Prolog RDF store
28 stars 14 forks source link

Fix to accept strings in save_attribute_value/3 #89

Closed likelion closed 5 years ago

likelion commented 5 years ago

When serializing xsd:dateTime property to RDF/XML an exception is thrown:

Reason = exception(error(save_attribute_value(2019-08-27T17:23:02.728438-02:00),_9104))
ERROR: Unknown error term: save_attribute_value("2019-08-27T17:23:02.728438-02:00")
...

This is due to the fact that save_attribute_value/3 accepts only atom as a string value type. However, rdf_db:rdf returns such literals as type(xsd:dateTime, "value") where "value" is a string.

JanWielemaker commented 5 years ago

Thanks. Merged after white space fix and adjustment of commit message. Commit messages starting "[A_Z]+:" appear in the release notes.