Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect JSON-LD datatype for hydra:totalItems #55

Open
rubensworks opened this issue Jun 11, 2019 · 0 comments
Open

Incorrect JSON-LD datatype for hydra:totalItems #55

rubensworks opened this issue Jun 11, 2019 · 0 comments
Labels

Comments

@rubensworks
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant