Skip to content

Incorrect JSON-LD datatype for hydra:totalItems #55

Description

@rubensworks

When fragments are retrieved in JSON-LD, it looks like the hydra:totalItems values are being returned as strings, instead of a number such as xsd:integer.
This does work properly when serialized as Turtle though.

I assume this is because the total item count is typically very large (larger than max int), which makes something internal inside the JSON-LD serialized not accept xsd:integer.

A solution may be to use the datatype xsd:long instead.

Example: curl -H'Accept: application/ld+json' https://query.wikidata.org/bigdata/ldf

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions