|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectowltools.gaf.eco.EcoMapperFactory
public class EcoMapperFactory
Factory to create instances of EcoMapper
and TraversingEcoMapper
.
Nested Class Summary | |
---|---|
static class |
EcoMapperFactory.OntologyMapperPair<MAPPER extends EcoMapper>
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EcoMapperFactory.OntologyMapperPair<EcoMapper> createEcoMapper() throws org.semanticweb.owlapi.model.OWLException, IOException
EcoMapper
. Uses a separate parser. Load
the ECO and mappings using their PURLs.
org.semanticweb.owlapi.model.OWLException
IOException
EcoMapper.ECO_PURL
,
EcoMapper.ECO_MAPPING_PURL
public static EcoMapperFactory.OntologyMapperPair<EcoMapper> createEcoMapper(ParserWrapper p) throws org.semanticweb.owlapi.model.OWLException, IOException
EcoMapper
. Uses the given
ParserWrapper
to load the ontology. Retrieves ECO and the
mappings using their PURLs.
p
-
org.semanticweb.owlapi.model.OWLException
IOException
EcoMapper.ECO_PURL
,
EcoMapper.ECO_MAPPING_PURL
public static EcoMapperFactory.OntologyMapperPair<EcoMapper> createEcoMapper(ParserWrapper p, String location) throws org.semanticweb.owlapi.model.OWLException, IOException
EcoMapper
. Uses the given
ParserWrapper
to load the ontology. Retrieves ECO from the given location and the
mapping from the PURL.
p
- location
-
org.semanticweb.owlapi.model.OWLException
IOException
EcoMapper.ECO_MAPPING_PURL
public static EcoMapper createEcoMapper(OWLGraphWrapper graph) throws IOException
EcoMapper
. Retrieves the mappings using
the PURL.
graph
- graph containing ECO
IOException
EcoMapper.ECO_MAPPING_PURL
public static EcoMapperFactory.OntologyMapperPair<TraversingEcoMapper> createTraversingEcoMapper() throws org.semanticweb.owlapi.model.OWLException, IOException
TraversingEcoMapper
instance using a new
ParserWrapper
to load ECO. ECO and the mappings are retrieved
using their PURLs.
Creates an ELK reasoner to be used in the traversal methods. Use
TraversingEcoMapper.dispose()
to ensure proper cleanup of the ELK
worker thread pool.
org.semanticweb.owlapi.model.OWLException
IOException
EcoMapper.ECO_PURL
,
EcoMapper.ECO_MAPPING_PURL
public static EcoMapperFactory.OntologyMapperPair<TraversingEcoMapper> createTraversingEcoMapper(ParserWrapper p) throws org.semanticweb.owlapi.model.OWLException, IOException
TraversingEcoMapper
instance using the given
ParserWrapper
to load ECO. ECO and the mappings are retrieved
using their PURLs.
Creates an ELK reasoner to be used in the traversal methods. Use
TraversingEcoMapper.dispose()
to ensure proper cleanup of the ELK
worker thread pool.
p
-
org.semanticweb.owlapi.model.OWLException
IOException
EcoMapper.ECO_PURL
,
EcoMapper.ECO_MAPPING_PURL
public static EcoMapperFactory.OntologyMapperPair<TraversingEcoMapper> createTraversingEcoMapper(ParserWrapper p, String location) throws org.semanticweb.owlapi.model.OWLException, IOException
TraversingEcoMapper
instance using the given
ParserWrapper
to load ECO from the given location. The mappings
are retrieved using the PURL.
Creates an ELK reasoner to be used in the traversal methods. Use
TraversingEcoMapper.dispose()
to ensure proper cleanup of the ELK
worker thread pool.
p
- location
-
org.semanticweb.owlapi.model.OWLException
IOException
EcoMapper.ECO_MAPPING_PURL
public static TraversingEcoMapper createTraversingEcoMapper(OWLGraphWrapper all, org.semanticweb.owlapi.reasoner.OWLReasoner reasoner, boolean disposeReasoner) throws IOException, org.semanticweb.owlapi.model.OWLException
TraversingEcoMapper
instance using the given
OWLGraphWrapper
. It is assumed that ECO can be retrieved from the
graph using its default IRI. The mappings are retrieved using the PURL.
Uses the given reasoner in the traversal methods. If disposeReasoner is
set to true, dispose also the reasoner, while calling
TraversingEcoMapper.dispose()
.
all
- graph containing all ontologies, including ECOreasoner
- reasoner capable of traversing ECOdisposeReasoner
- set to true if the reasoner should be disposed, when calling
TraversingEcoMapper.dispose()
IOException
org.semanticweb.owlapi.model.OWLException
IllegalArgumentException
- throw when the reasoner is null, or the
OWLGraphWrapper
does not contain ECO.EcoMapper.ECO_PURL_IRI
,
EcoMapper.ECO_MAPPING_PURL
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |