Skip to content
Permalink
Browse files
Merge branch 'patch-1' of https://github.com/den1s0v/jena-site into main
  • Loading branch information
afs committed Feb 9, 2021
2 parents 35092c9 + d6de3e0 commit 01516682f741c0a633c1925b2967c5643da46151
Showing 1 changed file with 3 additions and 3 deletions.
@@ -253,7 +253,7 @@ production of data to run ahead of your consumption of data which may result in
The only complication is that you need to ensure that the thread feeding the `PipedRDFStream` and the consumer of the iterator are on different threads
as otherwise you can run into a deadlock situation where one is waiting on data from the other which is never started.

See [RIOT example 6](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExRIOT_6.java)
See [RIOT example 6](https://github.com/apache/jena/blob/main/jena-arq/src-examples/arq/examples/riot/ExRIOT6_AddNewReader.java)
which shows an example usage including a simple way to push the parser onto a different thread to avoid the possible deadlock.

### Filter the output of parsing
@@ -262,10 +262,10 @@ When working with very large files, it can be useful to
process the stream of triples or quads produced
by the parser so as to work in a streaming fashion.

See [RIOT example 4](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExRIOT_4.java)
See [RIOT example 4](https://github.com/apache/jena/blob/main/jena-arq/src-examples/arq/examples/riot/ExRIOT4_StreamRDF_Filter.java)

### Add a new language

The set of languages is not fixed. A new language,
together with a parser, can be added to RIOT as shown in
[RIOT example 5](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExRIOT_5.java)
[RIOT example 5](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExRIOT5_StreamRDFCollect.java)

0 comments on commit 0151668

Please sign in to comment.