Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Jena 4.5.0
-
None
-
Patch
Description
Description:
- SHACL implementation class DatatypeConstraint could return misleading message when datatype of the literal node does violates the shape. e.g:
- `Got datatype xs:int : Node \"strValue2\"`
- Current implementation does either quote expected datatype or actual datatype of the node. It all depends on prefix mapping!
- Shape/constraint: https://www.w3.org/TR/shacl/#DatatypeConstraintComponent
Possible solutions:
- Always use expected data type:
- Possible messages:
- `Expected datatype xs:int : Node \"strValue2\"`,
- `Expected datatype <http://......./....> : Node \"strValue2\"`
- Keeps possibility to use prefix
- Somewhat consistent with ClassConstraint
- Possible patch in attachments (not tested!).
- Possible messages:
- Alternatively message could be similar to SHEX equivalent.
Attachments
Attachments
Issue Links
- links to