public class OwlApiJenaUtils extends Object
Constructor and Description |
---|
OwlApiJenaUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.jena.graph.Node |
asNode(org.semanticweb.owlapi.model.OWLEntity entity)
Convert an OWL API entity into a JENA API node.
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
asOWLAxioms(List<org.apache.jena.rdf.model.Statement> statements)
Convert statements from JENA API into OWL API axioms.
|
static <T extends org.semanticweb.owlapi.model.OWLEntity> |
asOWLEntity(org.apache.jena.graph.Node node,
org.semanticweb.owlapi.model.EntityType<T> entityType)
Convert a JENA Node into an OWL entity of the given type.
|
static Set<org.apache.jena.rdf.model.Statement> |
asStatements(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms)
Convert OWL axioms from OWL API into JENA API statements.
|
static org.apache.jena.graph.impl.LiteralLabel |
getLiteral(org.semanticweb.owlapi.model.OWLLiteral lit)
Converts an OWL API literal into a JENA API literal.
|
static org.apache.jena.rdf.model.Model |
getModel(org.semanticweb.owlapi.model.OWLOntology ontology)
Converts an OWL API ontology into a JENA API model.
|
static org.semanticweb.owlapi.model.OWLLiteral |
getOWLLiteral(org.apache.jena.rdf.model.Literal lit)
Converts a JENA API literal into an OWL API literal.
|
static org.semanticweb.owlapi.model.OWLLiteral |
getOWLLiteral(org.apache.jena.graph.impl.LiteralLabel lit)
Converts a JENA API literal into an OWL API literal.
|
static org.semanticweb.owlapi.model.OWLOntology |
getOWLOntology(org.apache.jena.rdf.model.Model model)
Converts a JENA API model into an OWL API ontology.
|
public OwlApiJenaUtils()
public static org.semanticweb.owlapi.model.OWLOntology getOWLOntology(org.apache.jena.rdf.model.Model model)
model
- the JENA API modelpublic static org.apache.jena.rdf.model.Model getModel(org.semanticweb.owlapi.model.OWLOntology ontology)
ontology
- the OWL API ontologypublic static Set<org.semanticweb.owlapi.model.OWLAxiom> asOWLAxioms(List<org.apache.jena.rdf.model.Statement> statements)
statements
- the JENA API statementspublic static org.semanticweb.owlapi.model.OWLLiteral getOWLLiteral(org.apache.jena.rdf.model.Literal lit)
lit
- the JENA API literalpublic static org.semanticweb.owlapi.model.OWLLiteral getOWLLiteral(org.apache.jena.graph.impl.LiteralLabel lit)
lit
- the JENA API literalpublic static org.apache.jena.graph.impl.LiteralLabel getLiteral(org.semanticweb.owlapi.model.OWLLiteral lit)
lit
- the OWL API literalpublic static Set<org.apache.jena.rdf.model.Statement> asStatements(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms)
axioms
- the OWL API axiomspublic static org.apache.jena.graph.Node asNode(org.semanticweb.owlapi.model.OWLEntity entity)
entity
- the OWL API entitypublic static <T extends org.semanticweb.owlapi.model.OWLEntity> T asOWLEntity(org.apache.jena.graph.Node node, org.semanticweb.owlapi.model.EntityType<T> entityType)
node
- the JENA nodeentityType
- the type of the OWL entity, e.g. class, property, etc. DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann