Package org.incenp.obofoundry.sssom.rdf
Class RDFReader
java.lang.Object
org.incenp.obofoundry.sssom.SSSOMReader
org.incenp.obofoundry.sssom.rdf.RDFReader
A parser to read a SSSOM mapping set from the RDF Turtle serialisation
format.
-
Field Summary
Fields inherited from class org.incenp.obofoundry.sssom.SSSOMReader
assumedVersion, extraPolicy, propagationPolicy
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance that will read data from the specified file.RDFReader
(InputStream stream) Creates a new instance that will read data from the specified stream.Creates a new instance that will read data from the specified reader.Creates a new instance that will read data from a file with the specified name. -
Method Summary
Methods inherited from class org.incenp.obofoundry.sssom.SSSOMReader
fillPrefixMap, setAssumedVersion, setExtraMetadataPolicy, setPropagationEnabled, setValidation, setValidationEnabled, validate
-
Constructor Details
-
RDFReader
Creates a new instance that will read data from the specified file.- Parameters:
file
- The file to read the mapping set from.- Throws:
FileNotFoundException
- If the file cannot be found.
-
RDFReader
Creates a new instance that will read data from the specified stream.- Parameters:
stream
- The stream to read the mapping set from.
-
RDFReader
Creates a new instance that will read data from the specified reader.- Parameters:
reader
- The reader to read the mapping set from.
-
RDFReader
Creates a new instance that will read data from a file with the specified name.- Parameters:
filename
- The name of the file to read the mapping set from.- Throws:
FileNotFoundException
- If the file cannot be found.
-
-
Method Details
-
read
Description copied from class:SSSOMReader
Reads a mapping set from the source file.- Specified by:
read
in classSSSOMReader
- Returns:
- A complete SSSOM mapping set.
- Throws:
SSSOMFormatException
- If encountering invalid SSSOM data.IOException
- If any kind of non-SSSOM-related I/O error occurs.
-