Skip to content

Added setObjectLiteral() in add statements payload with type detection

Mihail Radkov requested to merge bugfix/GDB-3529-adding-literals into master

The new method allows to set the object as literal with a data type and language. If the data type is not provided it will autodetect it:

  • integer -> xsd:integer
  • floats -> xsd:decimal
  • booleans -> xsd:boolean Everything else will be considered as xsd:string

Added types.js with data type constants from the XSD schema.

Related issue

Additional changes:

  • Updated add() to work with the payload object and its methods.
  • Simplified the logic for converting the payload to quads.

Merge request reports