owltools.io
Class CatalogXmlIRIMapper

java.lang.Object
  extended by owltools.io.CatalogXmlIRIMapper
All Implemented Interfaces:
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.


Constructor Summary
CatalogXmlIRIMapper(File catalogFile)
          Create an CatalogXmlIRIMapper from the given catalog.xml file.
CatalogXmlIRIMapper(File catalogFile, File parentFolder)
          Create an CatalogXmlIRIMapper from the given catalog.xml file.
CatalogXmlIRIMapper(String catalogFile)
          Create an CatalogXmlIRIMapper from the given catalog.xml file.
CatalogXmlIRIMapper(URL catalogURL)
          Create an CatalogXmlIRIMapper from the given catalog URL.
CatalogXmlIRIMapper(URL catalogURL, File parentFolder)
          Create an CatalogXmlIRIMapper from the given catalog URL.
 
Method Summary
 org.semanticweb.owlapi.model.IRI getDocumentIRI(org.semanticweb.owlapi.model.IRI ontologyIRI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogXmlIRIMapper

public CatalogXmlIRIMapper(String catalogFile)
                    throws IOException
Create an CatalogXmlIRIMapper from the given catalog.xml file. Assume, that relative paths are relative to the catalog file location.

Parameters:
catalogFile -
Throws:
IOException

CatalogXmlIRIMapper

public CatalogXmlIRIMapper(File catalogFile)
                    throws IOException
Create an CatalogXmlIRIMapper from the given catalog.xml file. Assume, that relative paths are relative to the catalog file location.

Parameters:
catalogFile -
Throws:
IOException

CatalogXmlIRIMapper

public CatalogXmlIRIMapper(File catalogFile,
                           File parentFolder)
                    throws IOException
Create an CatalogXmlIRIMapper from the given catalog.xml file. Use the parentFolder to resolve relative paths from the catalog file.

Parameters:
catalogFile -
parentFolder -
Throws:
IOException

CatalogXmlIRIMapper

public CatalogXmlIRIMapper(URL catalogURL)
                    throws IOException
Create an CatalogXmlIRIMapper from the given catalog URL. Assume, there are no relative paths in the catalog file.

Parameters:
catalogURL -
Throws:
IOException

CatalogXmlIRIMapper

public CatalogXmlIRIMapper(URL catalogURL,
                           File parentFolder)
                    throws IOException
Create an CatalogXmlIRIMapper from the given catalog URL. Use the parentFolder to resolve relative paths from the catalog file.

Parameters:
catalogURL -
parentFolder -
Throws:
IOException
Method Detail

getDocumentIRI

public org.semanticweb.owlapi.model.IRI getDocumentIRI(org.semanticweb.owlapi.model.IRI ontologyIRI)
Specified by:
getDocumentIRI in interface org.semanticweb.owlapi.model.OWLOntologyIRIMapper


Copyright © 2010-2012. All Rights Reserved.