LinkedDataFragments / Server.Java

A Triple Pattern Fragments server for Java
MIT License
27 stars 20 forks source link

Incorrect JSON-LD datatype for hydra:totalItems #55

Open rubensworks opened 5 years ago

rubensworks commented 5 years ago

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