edu.stanford.smi.protegex.owl.model.triplestore
Class TripleWriterUtil

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.model.triplestore.TripleWriterUtil

public class TripleWriterUtil
extends Object

Author:
Holger Knublauch

Constructor Summary
TripleWriterUtil()
           
 
Method Summary
static void writePrefixes(TripleWriter writer, OWLModel owlModel)
          Writes all prefixes of a given OWLModel into a given TripleWriter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TripleWriterUtil

public TripleWriterUtil()
Method Detail

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 writer
owlModel - the OWLModel to get the prefixes from
Throws:
Exception - if the writer failed
See Also:
TripleWriter.writePrefix(java.lang.String, java.lang.String)