Package org.obolibrary.robot
Class CatalogXmlIRIMapper
- java.lang.Object
-
- org.obolibrary.robot.CatalogXmlIRIMapper
-
- All Implemented Interfaces:
Serializable
,org.semanticweb.owlapi.model.OWLOntologyIRIMapper
public class CatalogXmlIRIMapper extends Object implements org.semanticweb.owlapi.model.OWLOntologyIRIMapper
OWLOntologyIRIMapper
using the mappings from a catalog.xml file.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CatalogXmlIRIMapper(File catalogFile)
Given a catalog File, create a CatalogXmlIRIMapper that interprets any relative paths as relative to the catalog file location.CatalogXmlIRIMapper(File catalogFile, File parentFolder)
Given a catalog File and a parent folder, create a CatalogXmlIRIMapper that interprets any relative paths as relative to the parent folder.CatalogXmlIRIMapper(String catalogFile)
Given a String path to a catalog file, create a CatalogXmlIRIMapper that interprets any relative paths as relative to the catalog file location.CatalogXmlIRIMapper(URL catalogURL)
Given an URL, create a CatalogXmlIRIMapper that interprets any relative paths as relative to the catalog file location.CatalogXmlIRIMapper(URL catalogURL, File parentFolder)
Given an URL and a parent folder, create a CatalogXmlIRIMapper that interprets any relative paths as relative to the parent folder.CatalogXmlIRIMapper(org.semanticweb.owlapi.model.IRI catalogIRI)
Given an IRI, create a CatalogXmlIRIMapper that interprets any relative paths as relative to the catalog file location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.semanticweb.owlapi.model.IRI
getDocumentIRI(org.semanticweb.owlapi.model.IRI ontologyIRI)
Given an IRI, return the mapped IRI.
-
-
-
Constructor Detail
-
CatalogXmlIRIMapper
public CatalogXmlIRIMapper(String catalogFile) throws IOException
Given a String path to a catalog file, create a CatalogXmlIRIMapper that interprets any relative paths as relative to the catalog file location.- Parameters:
catalogFile
- the String path to the catalog file- Throws:
IOException
- on any problem
-
CatalogXmlIRIMapper
public CatalogXmlIRIMapper(File catalogFile) throws IOException
Given a catalog File, create a CatalogXmlIRIMapper that interprets any relative paths as relative to the catalog file location.- Parameters:
catalogFile
- the catalog File- Throws:
IOException
- on any problem
-
CatalogXmlIRIMapper
public CatalogXmlIRIMapper(File catalogFile, File parentFolder) throws IOException
Given a catalog File and a parent folder, create a CatalogXmlIRIMapper that interprets any relative paths as relative to the parent folder.- Parameters:
catalogFile
- the catalog FileparentFolder
- the File for the parent folder- Throws:
IOException
- on any problem
-
CatalogXmlIRIMapper
public CatalogXmlIRIMapper(org.semanticweb.owlapi.model.IRI catalogIRI) throws IOException
Given an IRI, create a CatalogXmlIRIMapper that interprets any relative paths as relative to the catalog file location.- Parameters:
catalogIRI
- the IRI of the catalog file- Throws:
IOException
- on any problem
-
CatalogXmlIRIMapper
public CatalogXmlIRIMapper(URL catalogURL) throws IOException
Given an URL, create a CatalogXmlIRIMapper that interprets any relative paths as relative to the catalog file location.- Parameters:
catalogURL
- the URL of the catalog file- Throws:
IOException
- on any problem
-
CatalogXmlIRIMapper
public CatalogXmlIRIMapper(URL catalogURL, File parentFolder) throws IOException
Given an URL and a parent folder, create a CatalogXmlIRIMapper that interprets any relative paths as relative to the parent folder.- Parameters:
catalogURL
- the URL of the catalog fileparentFolder
- the File for the parent folder- Throws:
IOException
- on any problem
-
-
Method Detail
-
getDocumentIRI
public org.semanticweb.owlapi.model.IRI getDocumentIRI(@Nonnull org.semanticweb.owlapi.model.IRI ontologyIRI)
Given an IRI, return the mapped IRI.- Specified by:
getDocumentIRI
in interfaceorg.semanticweb.owlapi.model.OWLOntologyIRIMapper
- Parameters:
ontologyIRI
- the IRI that we want to look up- Returns:
- the mapped IRI, usually to a local file
-
-