Coder Social home page Coder Social logo

Comments (5)

mcollina avatar mcollina commented on September 28, 2024

If we have the full resource loaded, we can apply one of the json diff
algorithms out there and apply only the changes. I'm on the go with no
references but I've seen many on npm (then there is the issue of picking
one :P).

from levelgraph-jsonld.

elf-pavlik avatar elf-pavlik commented on September 28, 2024

interesting note by David I. Lehn in email on Web Payments list: http://lists.w3.org/Archives/Public/public-webpayments/2014Jan/0048.html

There are issues to consider when comparing SPARQL, Changeset vocab,
JSON Patch, or other systems for triple editing. SPARQL and the
Changeset vocab will be able to edit linked data at a lower triples
level. JSON Patch may require that data be framed into a strict
JSON-LD format so that the patch paths make sense. That could require
finishing the framing spec. If you can read and write the full
resource data then just HTTP verbs and a read-modify-write process
could work for edits. I imagine editing data with blank nodes is full
of issues too. And the ease of any approach probably depends on
implementation details of the client and server. It could be a
challenge to come up with a good general solution.

Here we go again with #8

[...] I imagine editing data with blank nodes is full
of issues too. [...]

from levelgraph-jsonld.

mcollina avatar mcollina commented on September 28, 2024

Agreed that is a big issue.

I prefer working code against long specs, so let's try to sketch something more efficient than the current implementation. JSON patch can work, as we are already forcing our representation to a strict JSON-LD format (either compact or expanded). If it works, we can share it with the world and ask for feedbacks!

from levelgraph-jsonld.

elf-pavlik avatar elf-pavlik commented on September 28, 2024

👍
I would also prefer to get something working first without getting distracted with peculiarities of blank nodes 😉

from levelgraph-jsonld.

mcollina avatar mcollina commented on September 28, 2024

As for inner nodes, let's consider they always have an @id.
If they are blank, they automatically got a UUID-generated one (or any other strategy we might want to use!)

from levelgraph-jsonld.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.