quadstorejs / quadstore

A LevelDB-backed graph database for JS runtimes (Node.js, Deno, browsers, ...) supporting SPARQL queries and the RDF/JS interface.
https://github.com/quadstorejs/quadstore
MIT License
203 stars 14 forks source link

JSON-LD support #61

Closed Frando closed 6 years ago

Frando commented 6 years ago

Does node-quadstore support direct loading of JSON-LD (including context handling)? If not, is it a planned feature? Same would be nice for output (so returning query results as JSON-LD).

Basically, does something like levelgraph-jsonld exist for node-quadstore?

akuckartz commented 6 years ago

:+1:

jacoscaz commented 6 years ago

Hello @Frando. Thank you for checking out quadstore! At the moment we're not thinking of implementing direct JSON-LD loading as we'd like to stick to the RDF/JS Interface Specification and leave such a thing to dedicated modules.

I am unsure as to whether the jsonld module currently supports the RDF/JS Interface but we will need to use JSON-LD quite soon and will therefore necessarily look into this matter within the month. I haven't had the time to research this but my gut feeling suggests a transform stream to pipe RdfStore.prototype.match() streams into.

Edited: grammar

elf-pavlik commented 6 years ago

I am unsure as to whether the jsonld module currently supports the RDF/JS Interface

jacoscaz commented 6 years ago

Deleted as @elf-pavlik posted faster :)

Frando commented 6 years ago

Hi, thanks all for the quick replies :-) This looks quite good actually, I will try things out.

jacoscaz commented 6 years ago

@Frando have you had any luck with this? Any feedback on quadstore itself or the overall process?

Frando commented 6 years ago

@jacoscaz not yet, this was for the time being more of an evaluation question. I'll report back once I get around to try things out actually.

jacoscaz commented 6 years ago

Closing this as it's been inactive for a while. @Frando I'll reopen if needed.