pchampin / sophia_rs

Sophia: a Rust toolkit for RDF and Linked Data
Apache License 2.0
238 stars 25 forks source link

Update Abstraction #182

Open Jezza opened 5 days ago

Jezza commented 5 days ago

It looks like the RFC separates out Update from Query.

Is it possible to integrate that into sophia_api?

pchampin commented 4 days ago

By RFC, I assume that you mean W3C Recommendation. Also, Sophia covers quite of few of those, but the Update and Query keywords make me think that you are referring to SPARQL (i.e. https://www.w3.org/TR/sparql-query/ and https://www.w3.org/TR/sparql-update/), hence to the sophia_api.sparql module.

That module only covers sparql-query at the moment (via the SparqlDataset trait, which you can tell by the fact that the query method takes an immutable reference.

Arguably, a companion SparqlUpdateDataset trait should be defined, with an update method, following the same pattern as elsewhere in Sophia (Graph/MutableGraph for example). A PR would be welcome :-)