Skip to content

Section 6.6.1 Automatically deriving datatypes is underspecified #91

@chrdebru

Description

@chrdebru

Section "6.6.1 Automatically deriving datatypes" is underspecified. The test cases assume that all values are string literals. The spec does mention automatically deriving datatypes for SQL with no "conversion tables" as specified in R2RML.

Proposal 1:

  • all values are string literals when they are returned.
  • only allow data type derivation when using rml-io.
  • do we return values as they appear or return a string representation of normalized values (JSON allows 3.4e-5 and 3.4e-5, for example)?

Proposal 2:

  • "copy/paste" R2RML's SQL derivations
  • plain CSV --> all strings
  • JSON --> string, integer, double (because of exponents)
  • XML --> based on XSD if available
  • And the rest defined in rml-io?

Proposal 2 would then allow 6.6.1 be rewritten as

"rml-core does not support the automatic derivation of data types and mappings should explicitly include data type mappings if one wishes to generate literals other than xsd:string. The generation of derived data types is supported and specified by the rml-io specification."

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions