Package openllet.owlapi
Class OWLIncrementalFlatFileStorageManagerListener
- java.lang.Object
-
- openllet.owlapi.OWLIncrementalFlatFileStorageManagerListener
-
- All Implemented Interfaces:
org.semanticweb.owlapi.model.OWLOntologyChangeListener
public class OWLIncrementalFlatFileStorageManagerListener extends java.lang.Object implements org.semanticweb.owlapi.model.OWLOntologyChangeListenerA listner that enable incremental storage of ontologies.- Since:
- 2.5.1
-
-
Field Summary
Fields Modifier and Type Field Description static int_flushTimeInMinutestatic byte[]_lineSeparator
-
Constructor Summary
Constructors Constructor Description OWLIncrementalFlatFileStorageManagerListener(java.io.File directory, java.io.File log, OWLManagerGroup owlManagerGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Put an end to the storage manager.voidflush()Save the ontology with there current state, so the log can be empty at that moment.voidontologiesChanged(java.util.List<? extends org.semanticweb.owlapi.model.OWLOntologyChange> changes)java.lang.Stringontology2filename(org.semanticweb.owlapi.model.OWLOntology ontology)
-
-
-
Field Detail
-
_flushTimeInMinute
public static final int _flushTimeInMinute
- See Also:
- Constant Field Values
-
_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:
ontologiesChangedin interfaceorg.semanticweb.owlapi.model.OWLOntologyChangeListener
-
close
public void close()
Put an end to the storage manager.- Since:
- 2.5.1
-
-