Class OWLIncrementalFlatFileStorageManagerListener

  • All Implemented Interfaces:
    org.semanticweb.owlapi.model.OWLOntologyChangeListener

    public class OWLIncrementalFlatFileStorageManagerListener
    extends java.lang.Object
    implements org.semanticweb.owlapi.model.OWLOntologyChangeListener
    A listner that enable incremental storage of ontologies.
    Since:
    2.5.1
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Put an end to the storage manager.
      void flush()
      Save the ontology with there current state, so the log can be empty at that moment.
      void ontologiesChanged​(java.util.List<? extends org.semanticweb.owlapi.model.OWLOntologyChange> changes)  
      java.lang.String ontology2filename​(org.semanticweb.owlapi.model.OWLOntology ontology)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _lineSeparator

        public static final byte[] _lineSeparator
    • Constructor Detail

      • OWLIncrementalFlatFileStorageManagerListener

        public OWLIncrementalFlatFileStorageManagerListener​(java.io.File directory,
                                                            java.io.File log,
                                                            OWLManagerGroup owlManagerGroup)
                                                     throws org.semanticweb.owlapi.model.OWLOntologyCreationException
        Throws:
        org.semanticweb.owlapi.model.OWLOntologyCreationException
    • Method Detail

      • ontology2filename

        public java.lang.String ontology2filename​(org.semanticweb.owlapi.model.OWLOntology ontology)
      • flush

        public void flush()
        Save the ontology with there current state, so the log can be empty at that moment.
        Throws:
        OWLOntologyStorageException - when something bad append when storing an ontology.
        java.io.IOException - when something bad append when storing an ontology.
        FileNotFoundException - when something bad append when storing an ontology.
      • ontologiesChanged

        public void ontologiesChanged​(java.util.List<? extends org.semanticweb.owlapi.model.OWLOntologyChange> changes)
        Specified by:
        ontologiesChanged in interface org.semanticweb.owlapi.model.OWLOntologyChangeListener
      • close

        public void close()
        Put an end to the storage manager.
        Since:
        2.5.1