edu.stanford.smi.protegex.owl.model.triplestore
Class TripleWriterUtil
java.lang.Object
edu.stanford.smi.protegex.owl.model.triplestore.TripleWriterUtil
- public class TripleWriterUtil
- extends Object
- Author:
- Holger Knublauch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TripleWriterUtil
public TripleWriterUtil()
writePrefixes
public static void writePrefixes(TripleWriter writer,
OWLModel owlModel)
throws Exception
- Writes all prefixes of a given OWLModel into a given TripleWriter.
This will iterate over the prefixes defined in the OWLModel's NamespaceManager
and then call the corresponding write method to the writer.
Note that this does not write the default namespace (which is typically required).
- Parameters:
writer
- the target writerowlModel
- the OWLModel to get the prefixes from
- Throws:
Exception
- if the writer failed- See Also:
TripleWriter.writePrefix(java.lang.String, java.lang.String)