Engine.Format
Constructor and Description |
---|
RdfEngine() |
Modifier and Type | Method and Description |
---|---|
protected com.hp.hpl.jena.rdf.model.Model |
createModelForInputStream(InputStream inputStream,
Engine.Format rdfFormat) |
protected com.hp.hpl.jena.rdf.model.Model |
createModelForText(String rdfText,
Engine.Format rdfFormat) |
List<String> |
getErrors() |
protected void |
onError(String message) |
protected void |
onError(String message,
Throwable throwable) |
CalaisModel |
process(InputStream inputStream,
Engine.Format rdfFormat)
receive RDF as input stream, process it and return a CalaisModel
|
CalaisModel |
process(String rdfText,
Engine.Format rdfFormat)
receive RDF as string, process it and return a CalaisModel
|
protected void onError(String message)
public CalaisModel process(InputStream inputStream, Engine.Format rdfFormat) throws IllegalArgumentException
Engine
process
in interface Engine
rdfFormat
- - the format is RDF or N3IllegalArgumentException
public CalaisModel process(String rdfText, Engine.Format rdfFormat) throws IllegalArgumentException
Engine
process
in interface Engine
rdfFormat
- - the format is RDF or N3IllegalArgumentException
protected com.hp.hpl.jena.rdf.model.Model createModelForInputStream(InputStream inputStream, Engine.Format rdfFormat)
protected com.hp.hpl.jena.rdf.model.Model createModelForText(String rdfText, Engine.Format rdfFormat) throws Exception
Exception
Copyright © 2015. All Rights Reserved.