public class GraphUtils extends Object
Constructor and Description |
---|
GraphUtils() |
Modifier and Type | Method and Description |
---|---|
static org.jgrapht.Graph<org.semanticweb.owlapi.model.OWLIndividual,org.jgrapht.graph.DefaultEdge> |
aboxToGraph(org.semanticweb.owlapi.model.OWLOntology ont)
Maps the ABox of an OWL ontology to a directed graph.
|
static org.jgrapht.Graph<org.semanticweb.owlapi.model.OWLIndividual,OWLPropertyEdge> |
aboxToLabeledGraph(org.semanticweb.owlapi.model.OWLOntology ont)
Maps the ABox of an OWL ontology to a labeled directed graph.
|
static org.jgrapht.Graph<TypedOWLIndividual,OWLPropertyEdge> |
aboxToLabeledGraphWithTypes(org.semanticweb.owlapi.model.OWLOntology ont)
Maps the ABox of an OWL ontology to a labeled directed graph.
|
static void |
main(String[] args) |
public GraphUtils()
public static org.jgrapht.Graph<org.semanticweb.owlapi.model.OWLIndividual,org.jgrapht.graph.DefaultEdge> aboxToGraph(org.semanticweb.owlapi.model.OWLOntology ont)
It just uses object property assertions to build the graph of the individuals. Edges are not labeled.
ont
- the ontologypublic static org.jgrapht.Graph<org.semanticweb.owlapi.model.OWLIndividual,OWLPropertyEdge> aboxToLabeledGraph(org.semanticweb.owlapi.model.OWLOntology ont)
It just uses object property assertions to build the graph of the individuals. Edges are labeled with the object property.
ont
- the ontologypublic static org.jgrapht.Graph<TypedOWLIndividual,OWLPropertyEdge> aboxToLabeledGraphWithTypes(org.semanticweb.owlapi.model.OWLOntology ont)
It just uses object property assertions to build the graph of the individuals. Edges are labeled with the object property. Vertices are annotated with the types of the individuals.
ont
- the ontology DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann