public abstract class RDFWriterTripleHandler extends Object implements FormatWriter, TripleHandler
TripleHandler
that writes
triples to a Sesame RDFWriter
,
eg for serialization using one of Sesame's writers.Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeContext(ExtractionContext context) |
void |
endDocument(org.openrdf.model.URI documentURI) |
boolean |
isAnnotated()
If
true then the produced RDF is annotated with
the extractors used to generate the specific statements. |
void |
openContext(ExtractionContext context) |
void |
receiveNamespace(String prefix,
String uri,
ExtractionContext context) |
void |
receiveTriple(org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o,
org.openrdf.model.URI g,
ExtractionContext context) |
void |
setAnnotated(boolean f)
Sets the annotation flag.
|
void |
setContentLength(long contentLength) |
void |
startDocument(org.openrdf.model.URI documentURI) |
public boolean isAnnotated()
true
then the produced RDF is annotated with
the extractors used to generate the specific statements.isAnnotated
in interface FormatWriter
public void setAnnotated(boolean f)
setAnnotated
in interface FormatWriter
f
- If true
then the produced RDF is annotated with
the extractors used to generate the specific statements.public void startDocument(org.openrdf.model.URI documentURI) throws TripleHandlerException
startDocument
in interface TripleHandler
TripleHandlerException
public void openContext(ExtractionContext context) throws TripleHandlerException
openContext
in interface TripleHandler
TripleHandlerException
public void receiveTriple(org.openrdf.model.Resource s, org.openrdf.model.URI p, org.openrdf.model.Value o, org.openrdf.model.URI g, ExtractionContext context) throws TripleHandlerException
receiveTriple
in interface TripleHandler
TripleHandlerException
public void receiveNamespace(String prefix, String uri, ExtractionContext context) throws TripleHandlerException
receiveNamespace
in interface TripleHandler
TripleHandlerException
public void closeContext(ExtractionContext context) throws TripleHandlerException
closeContext
in interface TripleHandler
TripleHandlerException
public void close() throws TripleHandlerException
close
in interface TripleHandler
TripleHandlerException
public void endDocument(org.openrdf.model.URI documentURI) throws TripleHandlerException
endDocument
in interface TripleHandler
TripleHandlerException
public void setContentLength(long contentLength)
setContentLength
in interface TripleHandler
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.