lblod / jsonld-delta-service

Kalliope API
MIT License
1 stars 0 forks source link

refactor: Migrate Java service to Javascript mu-semtech #23

Closed aliokan closed 1 month ago

aliokan commented 2 months ago

Related to OP-3172

The goal of this PR is to port the existing Kalliope API to the mu-semtech service.

List of features:

A quick benchmark is accessible here

Difference in the response

  1. The order of values in array

    @@ -176010,8 +176010,8 @@
     {
       "@id": "http://data.lblod.info/id/besturenVanDeEredienst/0053710a21095585bee1bb9c7ab91ad1",
       "@type": [
    -        "http://data.vlaanderen.be/ns/besluit#Bestuurseenheid",
    -        "http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst"
    +        "http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst",
    +        "http://data.vlaanderen.be/ns/besluit#Bestuurseenheid"
       ],
  2. Date format, more digit in Java

    @@ -2426438,5 +2427365,5 @@
     }
    ],
    "@id": "http://mu.semte.ch/graphs/kalliope/consolidated",
    -  "date": "2024-06-20T08:42:47.115668256Z"
    +  "date": "2024-06-20T14:46:46.214Z"
    }

Method use to compare

jq -S . consolidated-original.json > formatted-original.json
jq -S . consolidated-new.json > formatted-new.json
diff -u formatted-original.json formatted-new.json > consolidated.diff