acdh-oeaw / arche-core

MIT License
0 stars 1 forks source link

Report RDF parsing errors related to data types correctly #20

Closed zozlak closed 3 years ago

zozlak commented 3 years ago

Currently if the RDF contains a literal value which doesn't agree it's type (e.g. "not a date"^^xsd:date), the API returns HTTP 500 instead of 400. This is because the EasyRdf tries to parse the value only when it's being read and not during the RDF parsing.

It should be handled by capturing errors emitted by the specialized Literal implementations of the EasyRdf (https://github.com/acdh-oeaw/easyrdf/tree/master/lib/Literal)

zozlak commented 3 years ago

Fixed with EasyRdf 0.15.0.