| org.ontoware.rdf2go.model.ModelSetIO
ModelSetIO | public interface ModelSetIO (Code) | | Defines reading and writing to and from readers/writers and streams.
The default syntax for ModelSets is TRiX.
author: voelkel |
Method Summary | |
void | readFrom(Reader in) Read from Reader assuming to read a TRiX stream in UTF8 encoding. | void | readFrom(Reader in, Syntax syntax) Reads assuming the given syntax. | void | readFrom(Reader in, Syntax syntax, URL baseURI) Reads assuming the given syntax. | void | readFrom(InputStream in) Read from InputStream assuming to read an RDF/XML stream. | void | readFrom(InputStream reader, Syntax syntax) Reads assuming the given syntax. | void | readFrom(InputStream reader, Syntax syntax, URL baseURI) Reads assuming the given syntax. | String | serialize(Syntax syntax) Convenience method to export a ModelSet to a String in a given syntax. | void | writeTo(Writer out) Write to writer in UTF8 and TRiX. | void | writeTo(Writer out, Syntax syntax) Write the model to the passed writer, using the passed syntax. | void | writeTo(OutputStream out) | void | writeTo(OutputStream out, Syntax syntax) Write the model to the passed writer, using the passed syntax. |
readFrom | void readFrom(Reader in) throws IOException, ModelRuntimeException(Code) | | Read from Reader assuming to read a TRiX stream in UTF8 encoding.
All Models are created with the corresponding names as defined in the
TRiX stream as needed.
For more info on TRiX read:
http://www.hpl.hp.com/techreports/2003/HPL-2003-268.html
Parameters: in - the input to read throws: IOException - on IOErrors throws: ModelRuntimeException - on RDF serialization errors or model errors |
readFrom | void readFrom(InputStream in) throws IOException, ModelRuntimeException(Code) | | Read from InputStream assuming to read an RDF/XML stream.
All Models are created with the corresponding names as defined in the
TRiX stream as needed.
For more info on TRiX read:
http://www.hpl.hp.com/techreports/2003/HPL-2003-268.html
Parameters: in - the input to read throws: IOException - on IOErrors throws: ModelRuntimeException - on RDF serialisation errors or model errors |
|
|