possible ways to version your RDF store in gitlab

238 views Asked by At

what are the possible ways to version your RDF store in gitlab?

1

There are 1 answers

0
white_gecko On

As @UninformedUser mentioned already, the QuitStore was developed with this motivation. It generates commits on Sparql Update requests and also implements mere operations on the data. To represent the data in the repository it maintains a canonical representation of the data. This representation allows to view the diffs of the data and also work quite good with the pack files of git to reduce space.

A good start to maintain a quite stable representation of your triples is to use the N-Triples serialization, sort the triples and make them unique. This can be seen in the update-job or the orkg-dump (update.sh). It boils down to:

LC_ALL=C rapper -i <your input serialization> -o n-triples <your file> | sort -u > dump.nt

Setting the locale with LC_ALL=C is important to maintain the same order across execution environments.