public class EcoMapperFactory extends Object
EcoMapper
and TraversingEcoMapper
.Modifier and Type | Class and Description |
---|---|
static class |
EcoMapperFactory.OntologyMapperPair<MAPPER extends EcoMapper> |
public static SimpleEcoMapper createSimple() throws IOException
SimpleEcoMapper
with from the mapping loaded from
the PURL.IOException
EcoMapper.ECO_MAPPING_PURL
public static SimpleEcoMapper createSimple(String source) throws IOException
SimpleEcoMapper
with from the mapping loaded from
the given source.source
- IOException
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(org.semanticweb.owlapi.model.OWLOntologyManager m) throws org.semanticweb.owlapi.model.OWLException, IOException
EcoMapper
. Uses a the manager to load ECO via the
PURL. Load mappings using the PURL.m
- 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 ECOIOException
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
Copyright © 2010–2015. All rights reserved.