Package com.inrupt.client.rdf4j
Class RDF4JService
java.lang.Object
com.inrupt.client.rdf4j.RDF4JService
- All Implemented Interfaces:
 RdfService
An 
RdfService that uses the RDF4J library.- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidfromDataset(org.apache.commons.rdf.api.Dataset dataset, org.apache.commons.rdf.api.RDFSyntax syntax, OutputStream output) Serialize a dataset to an output stream.voidfromGraph(org.apache.commons.rdf.api.Graph graph, org.apache.commons.rdf.api.RDFSyntax syntax, OutputStream output) Serialize a graph to an output stream.org.apache.commons.rdf.api.DatasettoDataset(org.apache.commons.rdf.api.RDFSyntax syntax, InputStream input, String baseUri) Parse an input stream into a Dataset.org.apache.commons.rdf.api.GraphtoGraph(org.apache.commons.rdf.api.RDFSyntax syntax, InputStream input, String baseUri) Parse an input stream into a Graph. 
- 
Constructor Details
- 
RDF4JService
public RDF4JService() 
 - 
 - 
Method Details
- 
fromDataset
public void fromDataset(org.apache.commons.rdf.api.Dataset dataset, org.apache.commons.rdf.api.RDFSyntax syntax, OutputStream output) throws IOException Description copied from interface:RdfServiceSerialize a dataset to an output stream.- Specified by:
 fromDatasetin interfaceRdfService- Parameters:
 dataset- the datasetsyntax- the concrete RDF syntaxoutput- the output stream- Throws:
 IOException- when there is an error serializing the dataset
 - 
fromGraph
public void fromGraph(org.apache.commons.rdf.api.Graph graph, org.apache.commons.rdf.api.RDFSyntax syntax, OutputStream output) throws IOException Description copied from interface:RdfServiceSerialize a graph to an output stream.- Specified by:
 fromGraphin interfaceRdfService- Parameters:
 graph- the graphsyntax- the concrete RDF syntaxoutput- the output stream- Throws:
 IOException- when there is an error serializing the graph
 - 
toDataset
public org.apache.commons.rdf.api.Dataset toDataset(org.apache.commons.rdf.api.RDFSyntax syntax, InputStream input, String baseUri) throws IOException Description copied from interface:RdfServiceParse an input stream into a Dataset.- Specified by:
 toDatasetin interfaceRdfService- Parameters:
 syntax- the concrete RDF syntaxinput- the input streambaseUri- the base URI to use in case of relative URIs, may benull- Returns:
 - a dataset
 - Throws:
 IOException- when there is an error parsing the dataset
 - 
toGraph
public org.apache.commons.rdf.api.Graph toGraph(org.apache.commons.rdf.api.RDFSyntax syntax, InputStream input, String baseUri) throws IOException Description copied from interface:RdfServiceParse an input stream into a Graph.- Specified by:
 toGraphin interfaceRdfService- Parameters:
 syntax- the concrete RDF syntaxinput- the input streambaseUri- the base URI to use in case of relative URIs, may benull- Returns:
 - a graph
 - Throws:
 IOException- when there is an error parsing the graph
 
 -