RDFLib / rdflib

RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
https://rdflib.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.17k stars 556 forks source link

Streaming parsers #283

Closed gromgull closed 2 years ago

gromgull commented 11 years ago

Currently all parsers write into a graph. For cases where you want to stream-process RDF, it would be nice if triples could be handled as they come in.

Two fold:

1 Most of our parsers have a Triple Sink object:

Define this interface centrally and unify

2 Make sure we read the input stream as a stream, and do not read the whole thing into a string :)

uholzer commented 11 years ago

The same would be useful for serializers. This would one allow to easily impelement convertors between different serializations. Of course, this would not easily work for serializers that want to have the triples in a certain order.

rlk-ama commented 10 years ago

Hi, have you done anything in that direction yet ?