pchampin / sophia_rs

Sophia: a Rust toolkit for RDF and Linked Data
Other
210 stars 23 forks source link

Add back query support #146

Closed damooo closed 7 months ago

damooo commented 7 months ago

Previous versions has a basic query implementation. Which is highly useful. But is removed in current version.

Manas used it to implement n3-solid-insert-delete-patch support. Currently it copied query code from previous version into the same rdf_utils package, and uses that. If sophia provides it natively, it would be great.

pchampin commented 7 months ago

that's a good point. When I started the v0.8 refactoring, I first removed all the non-essential crates, adding them back gradually. I'll consider adding this one sooner rather than later.

pchampin commented 7 months ago

@damooo question for you: would you be happy with a very partial implementation of SPARQL instead (i.e. one which would only support SELECT and basic graph patterns)?

In other words: rather than building the graph pattern as a (generalized) RDF graph, you would have to parse it from a SPARQL query.

I have some very preliminary code for a generic SPARQL implementation working on top of any Sophia dataset. It would probably make more sense to add this to Sophia 0.8 rather than reinstate the old query crate... WDYT?

damooo commented 7 months ago

Sorry for messing with issue.

Indeed that would also be great.

To be frank, it will also enable sparql-update support. https://github.com/manomayam/manas/issues/36

pchampin commented 7 months ago

there it is: https://crates.io/crates/sophia_sparql enjoy :)

NB: for sparql-update, we are not there yet 😅