public class OwlUtil extends Object
| Constructor and Description |
|---|
OwlUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Set<OWLClass> |
getAllSuperClasses(String concept,
OWLOntology onto)
Get all the super classes of a named concept in the ontology (not only the
direct super classes).
|
static OWLDataProperty |
getOntoDataProperty(OWLOntology onto,
String name)
Get the
OWLDataProperty object corresponding to a named data
property (i.e. attribute in OO) of the ontology. |
static OWLOntology |
getOntologyFromName(String name)
Open the OWL ontology (from the ontology resources of CartAGen) whose name
is passed as parameter.
|
static OWLClass |
getOntoNamedClass(OWLOntology onto,
String name)
Get the
OWLClass object corresponding to a named concept of the
ontology. |
static OWLObjectProperty |
getOntoObjectProperty(OWLOntology onto,
String name)
Get the
OWLObjectProperty object corresponding to a named object
property (i.e. relation in OO) of the ontology. |
static boolean |
isA(OWLOntology ontology,
String childConcept,
String parentConcept)
Determines if, in the given ontology, the childConcept "is a"
parentConcept.
|
public static OWLOntology getOntologyFromName(String name) throws OWLOntologyCreationException
name - OWLOntologyCreationExceptionpublic static OWLClass getOntoNamedClass(OWLOntology onto,
String name)
OWLClass object corresponding to a named concept of the
ontology.onto - name - public static OWLDataProperty getOntoDataProperty(OWLOntology onto,
String name)
OWLDataProperty object corresponding to a named data
property (i.e. attribute in OO) of the ontology.onto - name - public static OWLObjectProperty getOntoObjectProperty(OWLOntology onto,
String name)
OWLObjectProperty object corresponding to a named object
property (i.e. relation in OO) of the ontology.onto - name - public static Set<OWLClass> getAllSuperClasses(String concept, OWLOntology onto)
concept - onto - public static boolean isA(OWLOntology ontology,
String childConcept,
String parentConcept)
ontology - childConcept - parentConcept - Copyright © 2016 Laboratoire COGIT, IGN. All rights reserved.