Skip to content

Datetimes are not converted into KE binding sets with corresponding datatypes while floats are. #54

Description

@bnouwt

I notice that Literal[datetime] look like the following in the JSON:

{
      "result": "<https://tno.nl/energy/data/hedgeiot/measurement/871687110003209825/bb356c53-4b7d-4054-a13b-6c11f85bbb31/10180/1784053800/result>",
      "val": "\"1.746\"^^<http://www.w3.org/2001/XMLSchema#double>",
      "prop": "<http://qudt.org/vocab/quantitykind/Energy>",
      "em": "<https://tno.nl/energy/data/hedgeiot/meter/871687110003209825/bb356c53-4b7d-4054-a13b-6c11f85bbb31>",
      "o": "<https://tno.nl/energy/data/hedgeiot/measurement/871687110003209825/bb356c53-4b7d-4054-a13b-6c11f85bbb31/10180/1784053800>",
      "timestamp": "\"2026-07-14T20:30:00+0200\""
    }

while Literal[float] gets a datatype, the datetime does not.

I would expect the value of timestamp to look like this: "\"2026-07-14T20:30:00+0200\"^^<http://www.w3.org/2001/XMLSchema#dateTime>".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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