public class BridgeExtractor extends Object
Here the notion of belonging is determined by IRI - e.g. GO_nnnnn belongs to go.
This procedure enforces a naming convention whereby the bridge ontology is called
<srcOntId>-bridge-to-<xOnt>
If an axiom bridges two or more ontologies, then specialized ontologies of the form
<srcOntId>-bridge-to-<xOnt1>-and...-and-<xOntN>
are created
In addition, an importer ontology is created
Modifier and Type | Class and Description |
---|---|
class |
BridgeExtractor.Combo
Maps a set of ontologies (e.g.
|
Constructor and Description |
---|
BridgeExtractor(org.semanticweb.owlapi.model.OWLOntology ontology) |
Modifier and Type | Method and Description |
---|---|
void |
addCombo(String tgtOntId,
Set<String> srcOntIds) |
org.semanticweb.owlapi.model.OWLOntology |
extractBridgeOntologies(String srcOntId,
boolean isRemoveBridgeAxiomsFromSource)
given a source ontology O:
|
void |
save(String fn,
org.semanticweb.owlapi.model.OWLOntologyFormat format,
org.semanticweb.owlapi.model.OWLOntology xo) |
void |
saveBridgeOntologies(String dir) |
void |
saveBridgeOntologies(String dir,
org.semanticweb.owlapi.model.OWLOntologyFormat format) |
public String subDir
public BridgeExtractor(org.semanticweb.owlapi.model.OWLOntology ontology)
public org.semanticweb.owlapi.model.OWLOntology extractBridgeOntologies(String srcOntId, boolean isRemoveBridgeAxiomsFromSource) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
For each axiom A in O :
srcOntId
- isRemoveBridgeAxiomsFromSource
- org.semanticweb.owlapi.model.OWLOntologyCreationException
public void saveBridgeOntologies(String dir) throws FileNotFoundException, org.semanticweb.owlapi.model.OWLOntologyStorageException
FileNotFoundException
org.semanticweb.owlapi.model.OWLOntologyStorageException
public void saveBridgeOntologies(String dir, org.semanticweb.owlapi.model.OWLOntologyFormat format) throws FileNotFoundException, org.semanticweb.owlapi.model.OWLOntologyStorageException
FileNotFoundException
org.semanticweb.owlapi.model.OWLOntologyStorageException
public void save(String fn, org.semanticweb.owlapi.model.OWLOntologyFormat format, org.semanticweb.owlapi.model.OWLOntology xo) throws FileNotFoundException, org.semanticweb.owlapi.model.OWLOntologyStorageException
FileNotFoundException
org.semanticweb.owlapi.model.OWLOntologyStorageException
Copyright © 2010–2015. All rights reserved.