Skip to content

Consider if literal-to-object conversion should assign simple types #22

Description

@webb

Literal-to-object conversion turns something like:

{
  "nc:PersonFullName" : "Sherlock Holmes"
}

Into

{
  "nc:PersonFullName" : { "rdf:value": "Sherlock Holmes" }
}

Should it go a step farther, by assigning type information where appropriate? Like properly handling dates? For example, turn this:

{
  "nc:Date": "1970-01-01"
}

…into this:

{
  "nc:Date": {
    "rdf:value": {
      "@value": "1970-01-01",
      "@type": "xs:date"
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    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