public class CalaisModelCreator extends Object
This class supplies convenience methods, for CalaisModel initialization. It is intended use is as a base class from which CalaisModel can be derived.
Modifier and Type | Method and Description |
---|---|
static CalaisModel |
readFile(String fileName,
Engine.Format inputFormat)
receive the path of file contains RDF text, process it and return a CalaisModel
|
static CalaisModel |
readInputStream(InputStream inputStream,
Engine.Format inputFormat)
receive RDF as input stream, process it and return a CalaisModel
|
static CalaisModel |
readText(String rdfText,
Engine.Format inputFormat)
receive RDF as string, process it and return a CalaisModel
|
public static CalaisModel readFile(String fileName, Engine.Format inputFormat) throws IllegalArgumentException
fileName
- - the path name of the file in the file systeminputFormat
- - the format is RDF or N3IllegalArgumentException
public static CalaisModel readText(String rdfText, Engine.Format inputFormat) throws IllegalArgumentException
rdfText
- inputFormat
- - the format is RDF or N3IllegalArgumentException
public static CalaisModel readInputStream(InputStream inputStream, Engine.Format inputFormat) throws IllegalArgumentException
inputStream
- inputFormat
- - the format is RDF or N3IllegalArgumentException
Copyright © 2015. All Rights Reserved.