Informatievlaanderen / VSDS-Linked-Data-Interactions

https://informatievlaanderen.github.io/VSDS-Linked-Data-Interactions/
European Union Public License 1.2
4 stars 6 forks source link

SPARQL Select: results are incorrectly typed #422

Closed sandervd closed 9 months ago

sandervd commented 9 months ago

Is your feature request related to a problem? Please describe. When running the SPARQL select processor, the output of the processor produces JSON. However, the values are always typed as string, even when the datatype of the result is for instance an integer:

Describe the solution you'd like The JSON file should reflect the data type of the SPARQL result as good as possible (data type of literal).

Additional context https://github.com/Informatievlaanderen/VSDS-Linked-Data-Interactions/blob/4f327da097f8c9238ea444124bd7a046cc9c5324/ldi-nifi/ldi-nifi-processors/sparql-interactions-processor/src/main/java/be/vlaanderen/informatievlaanderen/ldes/ldi/processors/repository/SparqlSelectService.java#L35C55-L35C63

sandervd commented 9 months ago

Fixed by https://github.com/Informatievlaanderen/VSDS-Linked-Data-Interactions/commit/9d785809d67f3fca8659f2ee73e1902277cfd1bd