public class ExtractOperation extends Object
Constructor and Description |
---|
ExtractOperation() |
Modifier and Type | Method and Description |
---|---|
static org.semanticweb.owlapi.model.OWLOntology |
extract(org.semanticweb.owlapi.model.OWLOntology inputOntology,
Set<org.semanticweb.owlapi.model.IRI> terms,
org.semanticweb.owlapi.model.IRI outputIRI,
uk.ac.manchester.cs.owlapi.modularity.ModuleType moduleType)
Extract a set of terms from an ontology using the OWLAPI's SyntacticLocalityModuleExtractor
(SLME) with default options.
|
static org.semanticweb.owlapi.model.OWLOntology |
extract(org.semanticweb.owlapi.model.OWLOntology inputOntology,
Set<org.semanticweb.owlapi.model.IRI> terms,
org.semanticweb.owlapi.model.IRI outputIRI,
uk.ac.manchester.cs.owlapi.modularity.ModuleType moduleType,
Map<String,String> options) |
static org.semanticweb.owlapi.model.OWLOntology |
extract(org.semanticweb.owlapi.model.OWLOntology inputOntology,
Set<org.semanticweb.owlapi.model.IRI> terms,
org.semanticweb.owlapi.model.IRI outputIRI,
uk.ac.manchester.cs.owlapi.modularity.ModuleType moduleType,
Map<String,String> options,
Map<org.semanticweb.owlapi.model.IRI,org.semanticweb.owlapi.model.IRI> sourceMap)
Extract a set of terms from an ontology using the OWLAPI's SyntacticLocalityModuleExtractor
(SLME).
|
static Map<String,String> |
getDefaultOptions()
Return a map from option name to default option value.
|
protected static org.semanticweb.owlapi.model.OWLAnnotationAxiom |
getIsDefinedBy(org.semanticweb.owlapi.model.OWLEntity entity,
Map<org.semanticweb.owlapi.model.IRI,org.semanticweb.owlapi.model.IRI> sourceMap)
Given an OWLEntity, return an OWLAnnotationAssertionAxiom indicating the source ontology with
rdfs:isDefinedBy.
|
public static Map<String,String> getDefaultOptions()
public static org.semanticweb.owlapi.model.OWLOntology extract(org.semanticweb.owlapi.model.OWLOntology inputOntology, Set<org.semanticweb.owlapi.model.IRI> terms, org.semanticweb.owlapi.model.IRI outputIRI, uk.ac.manchester.cs.owlapi.modularity.ModuleType moduleType) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
inputOntology
- the ontology to extract fromterms
- a set of IRIs for terms to extractoutputIRI
- the OntologyIRI of the new ontologymoduleType
- determines the type of extraction; defaults to STARorg.semanticweb.owlapi.model.OWLOntologyCreationException
- on any OWLAPI problempublic static org.semanticweb.owlapi.model.OWLOntology extract(org.semanticweb.owlapi.model.OWLOntology inputOntology, Set<org.semanticweb.owlapi.model.IRI> terms, org.semanticweb.owlapi.model.IRI outputIRI, uk.ac.manchester.cs.owlapi.modularity.ModuleType moduleType, Map<String,String> options) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public static org.semanticweb.owlapi.model.OWLOntology extract(org.semanticweb.owlapi.model.OWLOntology inputOntology, Set<org.semanticweb.owlapi.model.IRI> terms, org.semanticweb.owlapi.model.IRI outputIRI, uk.ac.manchester.cs.owlapi.modularity.ModuleType moduleType, Map<String,String> options, Map<org.semanticweb.owlapi.model.IRI,org.semanticweb.owlapi.model.IRI> sourceMap) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
inputOntology
- the ontology to extract fromterms
- a set of IRIs for terms to extractoutputIRI
- the OntologyIRI of the new ontologymoduleType
- determines the type of extraction; defaults to STARoptions
- map of extract optionssourceMap
- map of term IRI to source IRI, or null (only used with annotate-with-source)org.semanticweb.owlapi.model.OWLOntologyCreationException
- on any OWLAPI problemprotected static org.semanticweb.owlapi.model.OWLAnnotationAxiom getIsDefinedBy(org.semanticweb.owlapi.model.OWLEntity entity, Map<org.semanticweb.owlapi.model.IRI,org.semanticweb.owlapi.model.IRI> sourceMap)
entity
- entity to get source ofsourceMap
- map of term IRI to source IRI, or nullCopyright © 2015–2020. All rights reserved.