Package org.apache.any23.extractor.rdf
Class RDFHandlerAdapter
- java.lang.Object
-
- org.apache.any23.extractor.rdf.RDFHandlerAdapter
-
- All Implemented Interfaces:
org.eclipse.rdf4j.rio.RDFHandler
public class RDFHandlerAdapter extends Object implements org.eclipse.rdf4j.rio.RDFHandler
An RDFHandler that relays statements and prefix definitions to anExtractionResult
. Used to feed output from Sesame's RDF parsers into Any23.- Author:
- Richard Cyganiak (richard@cyganiak.de)
-
-
Constructor Summary
Constructors Constructor Description RDFHandlerAdapter(ExtractionResult target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endRDF()
void
handleComment(String comment)
void
handleNamespace(String prefix, String uri)
void
handleStatement(org.eclipse.rdf4j.model.Statement stmt)
void
startRDF()
-
-
-
Constructor Detail
-
RDFHandlerAdapter
public RDFHandlerAdapter(ExtractionResult target)
-
-
Method Detail
-
startRDF
public void startRDF() throws org.eclipse.rdf4j.rio.RDFHandlerException
- Specified by:
startRDF
in interfaceorg.eclipse.rdf4j.rio.RDFHandler
- Throws:
org.eclipse.rdf4j.rio.RDFHandlerException
-
handleNamespace
public void handleNamespace(String prefix, String uri)
- Specified by:
handleNamespace
in interfaceorg.eclipse.rdf4j.rio.RDFHandler
-
handleStatement
public void handleStatement(org.eclipse.rdf4j.model.Statement stmt)
- Specified by:
handleStatement
in interfaceorg.eclipse.rdf4j.rio.RDFHandler
-
handleComment
public void handleComment(String comment)
- Specified by:
handleComment
in interfaceorg.eclipse.rdf4j.rio.RDFHandler
-
endRDF
public void endRDF() throws org.eclipse.rdf4j.rio.RDFHandlerException
- Specified by:
endRDF
in interfaceorg.eclipse.rdf4j.rio.RDFHandler
- Throws:
org.eclipse.rdf4j.rio.RDFHandlerException
-
-