java.lang.Object
org.apache.jena.riot.system.StreamRDFWrapper
org.apache.jena.riot.system.StreamTriplesOnly
- All Implemented Interfaces:
StreamRDF
StreamRDF
that expects triples not quads.
Runs an action the first time a quad is seen.
Quads that are the default graph or no graph are redirected to StreamRDF.triple(org.apache.jena.graph.Triple)
.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StreamRDF
addActionIfQuads
(StreamRDF stream, Function<Quad, StreamTriplesOnly.QuadPolicy> action) Add a new policy layer for quadsstatic StreamRDF
exceptionOnQuads
(StreamRDF stream) Throw aRiotException
if a non-default graph quad is seen.void
Quad emittedstatic StreamRDF
setActionIfQuads
(StreamRDF stream, Function<Quad, StreamTriplesOnly.QuadPolicy> action) Replace an existing wrapper with a new policy for quads
-
Method Details
-
setActionIfQuads
public static StreamRDF setActionIfQuads(StreamRDF stream, Function<Quad, StreamTriplesOnly.QuadPolicy> action) Replace an existing wrapper with a new policy for quads -
addActionIfQuads
public static StreamRDF addActionIfQuads(StreamRDF stream, Function<Quad, StreamTriplesOnly.QuadPolicy> action) Add a new policy layer for quads -
exceptionOnQuads
Throw aRiotException
if a non-default graph quad is seen. -
quad
Description copied from interface:StreamRDF
Quad emitted- Specified by:
quad
in interfaceStreamRDF
- Overrides:
quad
in classStreamRDFWrapper
-