public class OntologyUtils extends Object
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
OntologyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom,
Set<org.semanticweb.owlapi.model.OWLOntology> ontologies,
org.semanticweb.owlapi.model.OWLOntologyManager manager)
Add the axiom to all the given ontologies.
|
static void |
addAxioms(org.semanticweb.owlapi.model.OWLOntology ontology,
Collection<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms)
Deprecated.
|
static void |
addAxioms(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLAxiom... axioms)
Deprecated.
|
static void |
addAxioms(org.semanticweb.owlapi.model.OWLOntology ontology,
Stream<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms)
Deprecated.
|
static void |
clearOWLOntologyManager()
Deprecated.
|
static boolean |
containsClass(Set<Set<org.semanticweb.owlapi.model.OWLClass>> classes,
org.semanticweb.owlapi.model.OWLClass cls)
Deprecated.
|
static boolean |
containsUnreferencedEntity(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLClassExpression desc)
Determines if a class description contains any unreferenced entities with respect to the ontology that contains the entailments which are being
explained.
|
static org.semanticweb.owlapi.model.OWLEntity |
findEntity(String name,
org.semanticweb.owlapi.model.OWLOntology ontology)
Finds an entity (class, _individual, object or _data property) in the given ontology that has the given local name or URI.
|
static org.semanticweb.owlapi.model.OWLEntity |
findEntity(String name,
Set<org.semanticweb.owlapi.model.OWLOntology> ontologies)
Deprecated.
|
static org.semanticweb.owlapi.model.OWLEntity |
findEntity(String name,
Stream<org.semanticweb.owlapi.model.OWLOntology> ontologies)
Finds an entity (class, _individual, object or _data property) in the given set of ontologies that has the given local name or URI.
|
static org.semanticweb.owlapi.model.OWLOntologyManager |
getOWLOntologyManager()
Deprecated.
|
static Set<org.semanticweb.owlapi.model.OWLEntity> |
getSignature(org.semanticweb.owlapi.model.OWLAxiom axiom)
Deprecated.
2.5.1 use the stream version
|
static org.semanticweb.owlapi.model.OWLOntology |
loadOntology(InputStream inputStream)
Deprecated.
|
static org.semanticweb.owlapi.model.OWLOntology |
loadOntology(InputStream inputStream,
boolean withAnnotations)
Deprecated.
|
static org.semanticweb.owlapi.model.OWLOntology |
loadOntology(org.semanticweb.owlapi.model.OWLOntologyManager manager,
InputStream inputStream) |
static org.semanticweb.owlapi.model.OWLOntology |
loadOntology(org.semanticweb.owlapi.model.OWLOntologyManager manager,
InputStream inputStream,
boolean withAnnotations) |
static org.semanticweb.owlapi.model.OWLOntology |
loadOntology(org.semanticweb.owlapi.model.OWLOntologyManager manager,
String uri) |
static org.semanticweb.owlapi.model.OWLOntology |
loadOntology(org.semanticweb.owlapi.model.OWLOntologyManager manager,
String uri,
boolean withAnnotations) |
static org.semanticweb.owlapi.model.OWLOntology |
loadOntology(String uri)
Deprecated.
|
static org.semanticweb.owlapi.model.OWLOntology |
loadOntology(String uri,
boolean withAnnotations)
Deprecated.
|
static void |
printAxioms(Collection<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms)
Deprecated.
|
static void |
printOntology(org.semanticweb.owlapi.model.OWLOntology ont)
Deprecated.
|
static void |
removeAllAnnotations(org.semanticweb.owlapi.model.OWLOntology ontology)
Removes all annotations (non-logical axioms) from the ontology causing the ontology to be changed in an unreversible way.
|
static Set<org.semanticweb.owlapi.model.OWLOntology> |
removeAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom,
Set<org.semanticweb.owlapi.model.OWLOntology> ontologies,
org.semanticweb.owlapi.model.OWLOntologyManager manager)
Removes an axiom from all the given ontologies that contains the axiom and returns those ontologies.
|
static void |
removeAxioms(org.semanticweb.owlapi.model.OWLOntology ontology,
Collection<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms) |
static void |
removeAxioms(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLAxiom... axioms)
Deprecated.
|
static void |
save(org.semanticweb.owlapi.model.OWLOntology ont,
String path)
Deprecated.
|
static Stream<org.semanticweb.owlapi.model.OWLEntity> |
signature(org.semanticweb.owlapi.model.OWLAxiom axiom)
Deprecated.
|
static void |
updateOntology(org.semanticweb.owlapi.model.OWLOntology ontology,
Collection<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms,
boolean add) |
static void |
updateOntology(org.semanticweb.owlapi.model.OWLOntology ontology,
Stream<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms,
boolean add)
Update the ontology by adding or removing the given set of axioms
|
@Deprecated public static void addAxioms(org.semanticweb.owlapi.model.OWLOntology ontology, Collection<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms)
@Deprecated public static void addAxioms(org.semanticweb.owlapi.model.OWLOntology ontology, Stream<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms)
@Deprecated public static void addAxioms(org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLAxiom... axioms)
@Deprecated public static boolean containsClass(Set<Set<org.semanticweb.owlapi.model.OWLClass>> classes, org.semanticweb.owlapi.model.OWLClass cls)
@Deprecated public static Set<org.semanticweb.owlapi.model.OWLEntity> getSignature(org.semanticweb.owlapi.model.OWLAxiom axiom)
@Deprecated public static Stream<org.semanticweb.owlapi.model.OWLEntity> signature(org.semanticweb.owlapi.model.OWLAxiom axiom)
@Deprecated public static org.semanticweb.owlapi.model.OWLOntologyManager getOWLOntologyManager()
@Deprecated public static void clearOWLOntologyManager()
@Deprecated public static org.semanticweb.owlapi.model.OWLOntology loadOntology(String uri)
uri - the ontology uripublic static org.semanticweb.owlapi.model.OWLOntology loadOntology(org.semanticweb.owlapi.model.OWLOntologyManager manager,
String uri)
@Deprecated public static org.semanticweb.owlapi.model.OWLOntology loadOntology(InputStream inputStream)
inputStream - input ontologypublic static org.semanticweb.owlapi.model.OWLOntology loadOntology(org.semanticweb.owlapi.model.OWLOntologyManager manager,
InputStream inputStream)
@Deprecated public static org.semanticweb.owlapi.model.OWLOntology loadOntology(String uri, boolean withAnnotations)
uri - the ontology uriwithAnnotations - if false removes all annotation axioms from the ontology, otherwise leaves the ontology intact#removeAllAnnotations(OWLOntology, OWLOntologyManager)public static org.semanticweb.owlapi.model.OWLOntology loadOntology(org.semanticweb.owlapi.model.OWLOntologyManager manager,
String uri,
boolean withAnnotations)
@Deprecated public static org.semanticweb.owlapi.model.OWLOntology loadOntology(InputStream inputStream, boolean withAnnotations)
inputStream - input streamwithAnnotations - if false removes all annotation axioms from the ontology, otherwise leaves the ontology intact#removeAllAnnotations(OWLOntology, OWLOntologyManager)public static org.semanticweb.owlapi.model.OWLOntology loadOntology(org.semanticweb.owlapi.model.OWLOntologyManager manager,
InputStream inputStream,
boolean withAnnotations)
@Deprecated public static void printAxioms(Collection<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms)
@Deprecated public static void printOntology(org.semanticweb.owlapi.model.OWLOntology ont)
public static void removeAxioms(org.semanticweb.owlapi.model.OWLOntology ontology,
Collection<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms)
@Deprecated public static void removeAxioms(org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLAxiom... axioms)
@Deprecated public static void save(org.semanticweb.owlapi.model.OWLOntology ont, String path) throws org.semanticweb.owlapi.model.OWLOntologyStorageException
org.semanticweb.owlapi.model.OWLOntologyStorageExceptionpublic static void updateOntology(org.semanticweb.owlapi.model.OWLOntology ontology,
Stream<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms,
boolean add)
ontology - target ontologyaxioms - the axiom to add/removeadd - true - add; false - deletepublic static void updateOntology(org.semanticweb.owlapi.model.OWLOntology ontology,
Collection<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms,
boolean add)
public static boolean containsUnreferencedEntity(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLClassExpression desc)
desc - The description to be searchedtrue if the description references entities that the ontology that contains entailments which are being explained, otherwise
falsepublic static Set<org.semanticweb.owlapi.model.OWLOntology> removeAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom, Set<org.semanticweb.owlapi.model.OWLOntology> ontologies, org.semanticweb.owlapi.model.OWLOntologyManager manager)
axiom - axiom being removedontologies - ontologies from which axiom is being removed_manager - _manager to apply the actual changepublic static void addAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom,
Set<org.semanticweb.owlapi.model.OWLOntology> ontologies,
org.semanticweb.owlapi.model.OWLOntologyManager manager)
axiom - ontologies - _manager - public static void removeAllAnnotations(org.semanticweb.owlapi.model.OWLOntology ontology)
ontology - the ontology being changedpublic static org.semanticweb.owlapi.model.OWLEntity findEntity(String name, Stream<org.semanticweb.owlapi.model.OWLOntology> ontologies)
name - URI or local name for an entityontologies - ontologies we are searchingfindEntity(String, OWLOntology)@Deprecated public static org.semanticweb.owlapi.model.OWLEntity findEntity(String name, Set<org.semanticweb.owlapi.model.OWLOntology> ontologies)
public static org.semanticweb.owlapi.model.OWLEntity findEntity(String name, org.semanticweb.owlapi.model.OWLOntology ontology)
name - URI or local name for an entityontology - ontology we are searchingCopyright © 2018. All rights reserved.