Package org.obolibrary.robot
Class MirrorOperation
- java.lang.Object
-
- org.obolibrary.robot.MirrorOperation
-
public class MirrorOperation extends Object
Mirrors ontologies on filesystem.- Author:
- cjm
-
-
Constructor Summary
Constructors Constructor Description MirrorOperation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
mirror(org.semanticweb.owlapi.model.OWLOntology rootOntology, File baseFolder, File catalogFile)
Mirrors ontologies on local filesystem.static void
writeCatalog(File catalogFile, Map<org.semanticweb.owlapi.model.IRI,String> iriMap)
Writes a catalog-v001.xml file.
-
-
-
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.
-
-