Class MirrorOperation


  • public class MirrorOperation
    extends Object
    Mirrors ontologies on filesystem.
    Author:
    cjm
    • Constructor Detail

      • MirrorOperation

        public MirrorOperation()
    • Method Detail

      • mirror

        public static void mirror​(org.semanticweb.owlapi.model.OWLOntology rootOntology,
                                  File baseFolder,
                                  File catalogFile)
                           throws IOException,
                                  org.semanticweb.owlapi.model.OWLOntologyStorageException
        Mirrors ontologies on local filesystem.
        Parameters:
        rootOntology - The ontology to mirror.
        baseFolder - The folder.
        catalogFile - The catalog file to write to.
        Throws:
        IOException - on most problems.
        org.semanticweb.owlapi.model.OWLOntologyStorageException - if the ontology cannot be saved.
      • writeCatalog

        public static void writeCatalog​(File catalogFile,
                                        Map<org.semanticweb.owlapi.model.IRI,​String> iriMap)
                                 throws IOException
        Writes a catalog-v001.xml file.
        Parameters:
        catalogFile - The catalog File to write to.
        iriMap - The IRIs to write.
        Throws:
        IOException - on any problem.