Class OWLWriter
java.lang.Object
org.incenp.obofoundry.sssom.SSSOMWriter
org.incenp.obofoundry.sssom.owl.OWLWriter
A writer to serialise a SSSOM mapping set into a OWL format.
-
Field Summary
Fields inherited from class SSSOMWriter
condensationPolicy, extensionManager, extraPolicy, prefixManager, targetVersion -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance that will write data to the specified file.Creates a new instance that will write data to the specified file in the specified format.OWLWriter(OutputStream stream) Creates a new instance that will write data to the specified stream.OWLWriter(OutputStream stream, org.semanticweb.owlapi.model.OWLDocumentFormat format) Creates a new instance that will write data to the specified stream in the specified format.Creates a new instance that will write data to a file with the specified filename.Creates a new instance that will write data to a file with the specified filename in the specified format. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoWrite(MappingSet mappingSet) Actually serialises a mapping set.Methods inherited from class SSSOMWriter
condenseSet, getUsedPrefixes, getUsedPrefixes, setCondensationEnabled, setCurieMap, setExtraMetadataPolicy, setSortingEnabled, setTargetVersion, write
-
Constructor Details
-
OWLWriter
Creates a new instance that will write data to the specified stream.- Parameters:
stream- The stream to write the mapping set to.
-
OWLWriter
Creates a new instance that will write data to the specified stream in the specified format.- Parameters:
stream- The stream to write the mapping set to.format- The OWL format to write into. The default is OWL Functional Syntax.
-
OWLWriter
Creates a new instance that will write data to the specified file.- Parameters:
file- The file to write the mapping set to.- Throws:
FileNotFoundException- If the file exists but cannot be written to for some reason.
-
OWLWriter
public OWLWriter(File file, org.semanticweb.owlapi.model.OWLDocumentFormat format) throws FileNotFoundException Creates a new instance that will write data to the specified file in the specified format.- Parameters:
file- The file to write the mapping set to.format- The OWL format to write into. The default is OWL Functional Syntax.- Throws:
FileNotFoundException- If the file exists but cannot be written to for some reason.
-
OWLWriter
Creates a new instance that will write data to a file with the specified filename.- Parameters:
filename- The name of the file to write the mapping set to.- Throws:
FileNotFoundException- If the file exists but cannot be written to for some reason.
-
OWLWriter
public OWLWriter(String filename, org.semanticweb.owlapi.model.OWLDocumentFormat format) throws FileNotFoundException Creates a new instance that will write data to a file with the specified filename in the specified format.- Parameters:
filename- The name of the file to write the mapping set to.format- The OWL format to write into. The default is OWL Functional Syntax.- Throws:
FileNotFoundException- If the file exists but cannot be written to for some reason.
-
-
Method Details
-
doWrite
Description copied from class:SSSOMWriterActually serialises a mapping set. This method should be overridden by derived classes to implement the serialisation in a specific format.- Specified by:
doWritein classSSSOMWriter- Parameters:
mappingSet- The mapping set to serialise.- Throws:
IOException- If an I/O error occurs.
-