Package org.openprovenance.prov.rdf
Class Utility
- java.lang.Object
-
- org.openprovenance.prov.rdf.Utility
-
public class Utility extends Object
-
-
Constructor Summary
Constructors Constructor Description Utility(ProvFactory pFactory)Utility(ProvFactory pFactory, Ontology onto)
-
Method Summary
Modifier and Type Method Description voiddumpRDF(Document document, Formats.ProvFormat format, OutputStream os)voiddumpRDF(Document document, Formats.ProvFormat format, String filename)voiddumpRDF(Document document, org.openrdf.rio.RDFFormat format, String filename)org.openrdf.rio.RDFFormatgetRdfFormat(Formats.ProvFormat format)DocumentparseRDF(InputStream inputStream, Formats.ProvFormat format, String baseuri)DocumentparseRDF(InputStream inputStream, org.openrdf.rio.RDFFormat rioFormat, String baseuri)DocumentparseRDF(InputStream inputStream, org.openrdf.rio.RDFParser rdfParser, String baseuri)DocumentparseRDF(String filename)
-
-
-
Constructor Detail
-
Utility
public Utility(ProvFactory pFactory, Ontology onto)
-
Utility
public Utility(ProvFactory pFactory)
-
-
Method Detail
-
parseRDF
public Document parseRDF(InputStream inputStream, Formats.ProvFormat format, String baseuri) throws org.openrdf.rio.RDFParseException, org.openrdf.rio.RDFHandlerException, IOException
- Throws:
org.openrdf.rio.RDFParseExceptionorg.openrdf.rio.RDFHandlerExceptionIOException
-
parseRDF
public Document parseRDF(InputStream inputStream, org.openrdf.rio.RDFFormat rioFormat, String baseuri) throws IOException
- Throws:
IOException
-
getRdfFormat
public org.openrdf.rio.RDFFormat getRdfFormat(Formats.ProvFormat format)
-
parseRDF
public Document parseRDF(InputStream inputStream, org.openrdf.rio.RDFParser rdfParser, String baseuri) throws IOException, org.openrdf.rio.RDFParseException, org.openrdf.rio.RDFHandlerException
- Throws:
IOExceptionorg.openrdf.rio.RDFParseExceptionorg.openrdf.rio.RDFHandlerException
-
dumpRDF
public void dumpRDF(Document document, Formats.ProvFormat format, String filename)
-
dumpRDF
public void dumpRDF(Document document, Formats.ProvFormat format, OutputStream os)
-
-