Comments (5)
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.
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.
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.
👍
I would also prefer to get something working first without getting distracted with peculiarities of blank nodes 😉
from levelgraph-jsonld.
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)
- Colliding keyword detection fails on "id" mapped to "@id" HOT 6
- JSON-LD without a top-level ID don't show up in filter results HOT 2
- Clarify blank nodes deletion HOT 2
- Handle named graphs HOT 9
- TypeError: acc[triple.subject][triple.predicate].push is not a function
- Graph "scrubbing" is too agressive HOT 7
- "Conflict" detection HOT 3
- Setting "@context" as a string timeout HOT 1
- del() empties entire storage HOT 1
- del() cannot accept strings, but put() can HOT 3
- Set preserve to true by default HOT 3
- Missing information after `db.jsonld.get()` HOT 3
- Manage @list HOT 10
- Creating JSON-LD from `db.search()` results HOT 2
- Whats the correct way to query HOT 2
- Document meaning of db.('webid') in the search example HOT 20
- @id validation
- Make `.get()` match LevelGraph and levelgraph-n3 APIs
- level is not a function
- the best way to add / update a property / predicate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from levelgraph-jsonld.