public class SyntacticLocalityModuleExtractor extends Object implements OntologySegmenter
| Constructor and Description |
|---|
SyntacticLocalityModuleExtractor(org.semanticweb.owlapi.model.OWLOntologyManager man,
org.semanticweb.owlapi.model.OWLOntology ont,
ModuleType moduleType)
Creates a new module extractor for a given ontology, its manager, and a
specified type of locality.
|
SyntacticLocalityModuleExtractor(org.semanticweb.owlapi.model.OWLOntologyManager man,
org.semanticweb.owlapi.model.OWLOntology ont,
Set<org.semanticweb.owlapi.model.OWLAxiom> axs,
ModuleType moduleType)
Creates a new module extractor for a subset of a given ontology, its
manager, and a specified type of locality.
|
| Modifier and Type | Method and Description |
|---|---|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
extract(Set<org.semanticweb.owlapi.model.OWLEntity> sig)
Returns a set of axioms that is a segment of the ontology associated with this segmenter.
|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
extract(Set<org.semanticweb.owlapi.model.OWLEntity> sig,
int superClassLevel,
int subClassLevel,
org.semanticweb.owlapi.reasoner.OWLReasoner reasoner)
Returns a set of axioms that is a segment of the ontology associated with this segmenter.
|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
extract(Set<org.semanticweb.owlapi.model.OWLEntity> sig,
int superClassLevel,
int subClassLevel,
org.semanticweb.owlapi.reasoner.OWLReasoner reasoner,
boolean verbose)
Extracts a module from the associated ontology for a given signature and
the associated module type, and returns the module as a set of axioms.
|
org.semanticweb.owlapi.model.OWLOntology |
extractAsOntology(Set<org.semanticweb.owlapi.model.OWLEntity> signature,
org.semanticweb.owlapi.model.IRI iri)
Returns an ontology that is a segment of the ontology associated with this segmenter.
|
org.semanticweb.owlapi.model.OWLOntology |
extractAsOntology(Set<org.semanticweb.owlapi.model.OWLEntity> signature,
org.semanticweb.owlapi.model.IRI iri,
int superClassLevel,
int subClassLevel,
org.semanticweb.owlapi.reasoner.OWLReasoner reasoner)
Returns an ontology that is a segment of the ontology associated with this segmenter.
|
ModuleType |
getModuleType()
Returns the module type for this extractor.
|
void |
setModuleType(ModuleType moduleType)
Changes the module type for this extractor without deleting the stored
referenced entities.
|
public SyntacticLocalityModuleExtractor(org.semanticweb.owlapi.model.OWLOntologyManager man,
org.semanticweb.owlapi.model.OWLOntology ont,
Set<org.semanticweb.owlapi.model.OWLAxiom> axs,
ModuleType moduleType)
man - the manager for the associated ontologyont - the associated ontologyaxs - the subset of the ontology as a set of axiomsmoduleType - the type of module this extractor will constructpublic SyntacticLocalityModuleExtractor(org.semanticweb.owlapi.model.OWLOntologyManager man,
org.semanticweb.owlapi.model.OWLOntology ont,
ModuleType moduleType)
man - the manager for the associated ontologyont - the associated ontologymoduleType - the type of module this extractor will constructpublic void setModuleType(ModuleType moduleType)
moduleType - the new type of modulepublic ModuleType getModuleType()
public Set<org.semanticweb.owlapi.model.OWLAxiom> extract(Set<org.semanticweb.owlapi.model.OWLEntity> sig)
OntologySegmenterextract in interface OntologySegmentersig - the seed signaturepublic Set<org.semanticweb.owlapi.model.OWLAxiom> extract(Set<org.semanticweb.owlapi.model.OWLEntity> sig, int superClassLevel, int subClassLevel, org.semanticweb.owlapi.reasoner.OWLReasoner reasoner)
OntologySegmenterextract in interface OntologySegmentersig - the seed signaturesuperClassLevel - determines whether superclasses are added to the signature before segment extraction, see below for admissible valuessubClassLevel - determines whether subclasses are added to the signature before segment extraction, see below for admissible valuesreasoner - the reasoner to determine super-/subclassespublic Set<org.semanticweb.owlapi.model.OWLAxiom> extract(Set<org.semanticweb.owlapi.model.OWLEntity> sig, int superClassLevel, int subClassLevel, org.semanticweb.owlapi.reasoner.OWLReasoner reasoner, boolean verbose)
sig - the seed signature (set of entities) for the modulesuperClassLevel - determines whether superclasses are added to the signature
before segment extraction, see below for admissible valuessubClassLevel - determines whether subclasses are added to the signature
before segment extractionreasoner - the reasoner to determine super-/subclasses. This can be an
arbitrary reasoner, including a ToldClassHierarchyReasoner. It
must have loaded the ontology.verbose - true if verbose output is requiredpublic org.semanticweb.owlapi.model.OWLOntology extractAsOntology(Set<org.semanticweb.owlapi.model.OWLEntity> signature, org.semanticweb.owlapi.model.IRI iri) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
OntologySegmenterextractAsOntology in interface OntologySegmentersignature - the seed signature (set of entities) for the moduleiri - the URI for the moduleorg.semanticweb.owlapi.model.OWLOntologyCreationException - if the module cannot be createdpublic org.semanticweb.owlapi.model.OWLOntology extractAsOntology(Set<org.semanticweb.owlapi.model.OWLEntity> signature, org.semanticweb.owlapi.model.IRI iri, int superClassLevel, int subClassLevel, org.semanticweb.owlapi.reasoner.OWLReasoner reasoner) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
OntologySegmenterextractAsOntology in interface OntologySegmentersignature - the seed signatureiri - the URI for the modulesuperClassLevel - determines whether superclasses are added to the signature before segment extraction, see below for admissible valuessubClassLevel - determines whether subclasses are added to the signature before segment extraction, see below for admissible valuesreasoner - the reasoner to determine super-/subclassesorg.semanticweb.owlapi.model.OWLOntologyCreationException - if the module cannot be created
Meaning of the value of superClassLevel, subClassLevel:Copyright © 2013 The University of Manchester. All Rights Reserved.