-
Notifications
You must be signed in to change notification settings - Fork 0
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
Develop a Javascript RDF Patch library #7
Comments
Chris' Email Hi Raphael, Élie asked that I give you some information about where some code is and get you oriented with an initial task: produce a patch from two different versions of a model The code base you should start w/ is the blmp-prototype-flow repo - which you may have already cloned. Please consult with Nicolas as needed to understand the structure of the repo and libraries and such specific to RDF linked data and so on that will likely be new to you. There are RDF javascript libraries that will be of use. There is java code for the basic patch format located in rdf-patch sub-module of rdf-delta so that you can begin to create an rdf-patch.js library. Within the rdf-patch sub-module, the java/org/seaborne/patch contains classes to read RDFPatches and RDFChangesWriter that may be useful entry points. Marc is working in this code and may have additional suggestions about other classes that will be useful in building a basic rdf-patch.js. Just to help get you started with working with RDF in this sort of situation, consider computing a patch for the difference between two models, let’s suppose the two models are currentM and newM. Assuming operations similar to jena in the rdf js libs. then
to get the unchanged triples. Then
will be the triples added in newM, and
are the triples deleted from currentM in the newM. The the patch consists of a sequence of D subj prop obj graph for each triple in goneM and a sequence of A subj prop obj graph for each triple in addedM. The order of the A’s and D’s in this case is immaterial. |
Email with Ruben Verborgh, one of the main contributors of rdf.js Raphael: Ruben: rdflib.js supports other kind of patches though; I have written some code with it. |
Chat with Elie
The text was updated successfully, but these errors were encountered: