org.semanticweb.elk.owlapi.wrapper.OwlConverter Maven / Gradle / Ivy
/*
* #%L
* ELK OWL API Binding
*
* $Id$
* $HeadURL$
* %%
* Copyright (C) 2011 Department of Computer Science, University of Oxford
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package org.semanticweb.elk.owlapi.wrapper;
import org.semanticweb.elk.owl.interfaces.ElkAnnotationAxiom;
import org.semanticweb.elk.owl.interfaces.ElkAnnotationProperty;
import org.semanticweb.elk.owl.interfaces.ElkAnnotationSubject;
import org.semanticweb.elk.owl.interfaces.ElkAnnotationValue;
import org.semanticweb.elk.owl.interfaces.ElkAnonymousIndividual;
import org.semanticweb.elk.owl.interfaces.ElkAssertionAxiom;
import org.semanticweb.elk.owl.interfaces.ElkAsymmetricObjectPropertyAxiom;
import org.semanticweb.elk.owl.interfaces.ElkAxiom;
import org.semanticweb.elk.owl.interfaces.ElkClass;
import org.semanticweb.elk.owl.interfaces.ElkClassAssertionAxiom;
import org.semanticweb.elk.owl.interfaces.ElkClassAxiom;
import org.semanticweb.elk.owl.interfaces.ElkClassExpression;
import org.semanticweb.elk.owl.interfaces.ElkDataAllValuesFrom;
import org.semanticweb.elk.owl.interfaces.ElkDataComplementOf;
import org.semanticweb.elk.owl.interfaces.ElkDataExactCardinality;
import org.semanticweb.elk.owl.interfaces.ElkDataHasValue;
import org.semanticweb.elk.owl.interfaces.ElkDataIntersectionOf;
import org.semanticweb.elk.owl.interfaces.ElkDataMaxCardinality;
import org.semanticweb.elk.owl.interfaces.ElkDataMinCardinality;
import org.semanticweb.elk.owl.interfaces.ElkDataOneOf;
import org.semanticweb.elk.owl.interfaces.ElkDataProperty;
import org.semanticweb.elk.owl.interfaces.ElkDataPropertyAssertionAxiom;
import org.semanticweb.elk.owl.interfaces.ElkDataPropertyAxiom;
import org.semanticweb.elk.owl.interfaces.ElkDataPropertyDomainAxiom;
import org.semanticweb.elk.owl.interfaces.ElkDataPropertyExpression;
import org.semanticweb.elk.owl.interfaces.ElkDataPropertyRangeAxiom;
import org.semanticweb.elk.owl.interfaces.ElkDataRange;
import org.semanticweb.elk.owl.interfaces.ElkDataSomeValuesFrom;
import org.semanticweb.elk.owl.interfaces.ElkDataUnionOf;
import org.semanticweb.elk.owl.interfaces.ElkDatatype;
import org.semanticweb.elk.owl.interfaces.ElkDatatypeDefinitionAxiom;
import org.semanticweb.elk.owl.interfaces.ElkDatatypeRestriction;
import org.semanticweb.elk.owl.interfaces.ElkDeclarationAxiom;
import org.semanticweb.elk.owl.interfaces.ElkDifferentIndividualsAxiom;
import org.semanticweb.elk.owl.interfaces.ElkDisjointClassesAxiom;
import org.semanticweb.elk.owl.interfaces.ElkDisjointDataPropertiesAxiom;
import org.semanticweb.elk.owl.interfaces.ElkDisjointObjectPropertiesAxiom;
import org.semanticweb.elk.owl.interfaces.ElkDisjointUnionAxiom;
import org.semanticweb.elk.owl.interfaces.ElkEntity;
import org.semanticweb.elk.owl.interfaces.ElkEquivalentClassesAxiom;
import org.semanticweb.elk.owl.interfaces.ElkEquivalentDataPropertiesAxiom;
import org.semanticweb.elk.owl.interfaces.ElkEquivalentObjectPropertiesAxiom;
import org.semanticweb.elk.owl.interfaces.ElkFacetRestriction;
import org.semanticweb.elk.owl.interfaces.ElkFunctionalDataPropertyAxiom;
import org.semanticweb.elk.owl.interfaces.ElkFunctionalObjectPropertyAxiom;
import org.semanticweb.elk.owl.interfaces.ElkHasKeyAxiom;
import org.semanticweb.elk.owl.interfaces.ElkIndividual;
import org.semanticweb.elk.owl.interfaces.ElkInverseFunctionalObjectPropertyAxiom;
import org.semanticweb.elk.owl.interfaces.ElkInverseObjectPropertiesAxiom;
import org.semanticweb.elk.owl.interfaces.ElkIrreflexiveObjectPropertyAxiom;
import org.semanticweb.elk.owl.interfaces.ElkLiteral;
import org.semanticweb.elk.owl.interfaces.ElkNamedIndividual;
import org.semanticweb.elk.owl.interfaces.ElkNegativeDataPropertyAssertionAxiom;
import org.semanticweb.elk.owl.interfaces.ElkNegativeObjectPropertyAssertionAxiom;
import org.semanticweb.elk.owl.interfaces.ElkObjectAllValuesFrom;
import org.semanticweb.elk.owl.interfaces.ElkObjectComplementOf;
import org.semanticweb.elk.owl.interfaces.ElkObjectExactCardinality;
import org.semanticweb.elk.owl.interfaces.ElkObjectHasSelf;
import org.semanticweb.elk.owl.interfaces.ElkObjectHasValue;
import org.semanticweb.elk.owl.interfaces.ElkObjectIntersectionOf;
import org.semanticweb.elk.owl.interfaces.ElkObjectMaxCardinality;
import org.semanticweb.elk.owl.interfaces.ElkObjectMinCardinality;
import org.semanticweb.elk.owl.interfaces.ElkObjectOneOf;
import org.semanticweb.elk.owl.interfaces.ElkObjectProperty;
import org.semanticweb.elk.owl.interfaces.ElkObjectPropertyAssertionAxiom;
import org.semanticweb.elk.owl.interfaces.ElkObjectPropertyAxiom;
import org.semanticweb.elk.owl.interfaces.ElkObjectPropertyChain;
import org.semanticweb.elk.owl.interfaces.ElkObjectPropertyDomainAxiom;
import org.semanticweb.elk.owl.interfaces.ElkObjectPropertyExpression;
import org.semanticweb.elk.owl.interfaces.ElkObjectPropertyRangeAxiom;
import org.semanticweb.elk.owl.interfaces.ElkObjectSomeValuesFrom;
import org.semanticweb.elk.owl.interfaces.ElkObjectUnionOf;
import org.semanticweb.elk.owl.interfaces.ElkReflexiveObjectPropertyAxiom;
import org.semanticweb.elk.owl.interfaces.ElkSameIndividualAxiom;
import org.semanticweb.elk.owl.interfaces.ElkSubClassOfAxiom;
import org.semanticweb.elk.owl.interfaces.ElkSubDataPropertyOfAxiom;
import org.semanticweb.elk.owl.interfaces.ElkSubObjectPropertyOfAxiom;
import org.semanticweb.elk.owl.interfaces.ElkSymmetricObjectPropertyAxiom;
import org.semanticweb.elk.owl.interfaces.ElkTransitiveObjectPropertyAxiom;
import org.semanticweb.elk.owl.iris.ElkFullIri;
import org.semanticweb.elk.owl.iris.ElkIri;
import org.semanticweb.owlapi.model.AxiomType;
import org.semanticweb.owlapi.model.IRI;
import org.semanticweb.owlapi.model.OWLAnnotationAxiom;
import org.semanticweb.owlapi.model.OWLAnnotationProperty;
import org.semanticweb.owlapi.model.OWLAnnotationSubject;
import org.semanticweb.owlapi.model.OWLAnnotationValue;
import org.semanticweb.owlapi.model.OWLAnonymousIndividual;
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom;
import org.semanticweb.owlapi.model.OWLAxiom;
import org.semanticweb.owlapi.model.OWLClass;
import org.semanticweb.owlapi.model.OWLClassAssertionAxiom;
import org.semanticweb.owlapi.model.OWLClassAxiom;
import org.semanticweb.owlapi.model.OWLClassExpression;
import org.semanticweb.owlapi.model.OWLDataAllValuesFrom;
import org.semanticweb.owlapi.model.OWLDataComplementOf;
import org.semanticweb.owlapi.model.OWLDataExactCardinality;
import org.semanticweb.owlapi.model.OWLDataHasValue;
import org.semanticweb.owlapi.model.OWLDataIntersectionOf;
import org.semanticweb.owlapi.model.OWLDataMaxCardinality;
import org.semanticweb.owlapi.model.OWLDataMinCardinality;
import org.semanticweb.owlapi.model.OWLDataOneOf;
import org.semanticweb.owlapi.model.OWLDataProperty;
import org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom;
import org.semanticweb.owlapi.model.OWLDataPropertyAxiom;
import org.semanticweb.owlapi.model.OWLDataPropertyDomainAxiom;
import org.semanticweb.owlapi.model.OWLDataPropertyExpression;
import org.semanticweb.owlapi.model.OWLDataPropertyRangeAxiom;
import org.semanticweb.owlapi.model.OWLDataRange;
import org.semanticweb.owlapi.model.OWLDataSomeValuesFrom;
import org.semanticweb.owlapi.model.OWLDataUnionOf;
import org.semanticweb.owlapi.model.OWLDatatype;
import org.semanticweb.owlapi.model.OWLDatatypeDefinitionAxiom;
import org.semanticweb.owlapi.model.OWLDatatypeRestriction;
import org.semanticweb.owlapi.model.OWLDeclarationAxiom;
import org.semanticweb.owlapi.model.OWLDifferentIndividualsAxiom;
import org.semanticweb.owlapi.model.OWLDisjointClassesAxiom;
import org.semanticweb.owlapi.model.OWLDisjointDataPropertiesAxiom;
import org.semanticweb.owlapi.model.OWLDisjointObjectPropertiesAxiom;
import org.semanticweb.owlapi.model.OWLDisjointUnionAxiom;
import org.semanticweb.owlapi.model.OWLEntity;
import org.semanticweb.owlapi.model.OWLEquivalentClassesAxiom;
import org.semanticweb.owlapi.model.OWLEquivalentDataPropertiesAxiom;
import org.semanticweb.owlapi.model.OWLEquivalentObjectPropertiesAxiom;
import org.semanticweb.owlapi.model.OWLFacetRestriction;
import org.semanticweb.owlapi.model.OWLFunctionalDataPropertyAxiom;
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom;
import org.semanticweb.owlapi.model.OWLHasKeyAxiom;
import org.semanticweb.owlapi.model.OWLIndividual;
import org.semanticweb.owlapi.model.OWLIndividualAxiom;
import org.semanticweb.owlapi.model.OWLInverseFunctionalObjectPropertyAxiom;
import org.semanticweb.owlapi.model.OWLInverseObjectPropertiesAxiom;
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom;
import org.semanticweb.owlapi.model.OWLLiteral;
import org.semanticweb.owlapi.model.OWLNamedIndividual;
import org.semanticweb.owlapi.model.OWLNegativeDataPropertyAssertionAxiom;
import org.semanticweb.owlapi.model.OWLNegativeObjectPropertyAssertionAxiom;
import org.semanticweb.owlapi.model.OWLObjectAllValuesFrom;
import org.semanticweb.owlapi.model.OWLObjectComplementOf;
import org.semanticweb.owlapi.model.OWLObjectExactCardinality;
import org.semanticweb.owlapi.model.OWLObjectHasSelf;
import org.semanticweb.owlapi.model.OWLObjectHasValue;
import org.semanticweb.owlapi.model.OWLObjectIntersectionOf;
import org.semanticweb.owlapi.model.OWLObjectMaxCardinality;
import org.semanticweb.owlapi.model.OWLObjectMinCardinality;
import org.semanticweb.owlapi.model.OWLObjectOneOf;
import org.semanticweb.owlapi.model.OWLObjectProperty;
import org.semanticweb.owlapi.model.OWLObjectPropertyAssertionAxiom;
import org.semanticweb.owlapi.model.OWLObjectPropertyAxiom;
import org.semanticweb.owlapi.model.OWLObjectPropertyDomainAxiom;
import org.semanticweb.owlapi.model.OWLObjectPropertyExpression;
import org.semanticweb.owlapi.model.OWLObjectPropertyRangeAxiom;
import org.semanticweb.owlapi.model.OWLObjectSomeValuesFrom;
import org.semanticweb.owlapi.model.OWLObjectUnionOf;
import org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom;
import org.semanticweb.owlapi.model.OWLSameIndividualAxiom;
import org.semanticweb.owlapi.model.OWLSubClassOfAxiom;
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom;
import org.semanticweb.owlapi.model.OWLSubObjectPropertyOfAxiom;
import org.semanticweb.owlapi.model.OWLSubPropertyChainOfAxiom;
import org.semanticweb.owlapi.model.OWLSymmetricObjectPropertyAxiom;
import org.semanticweb.owlapi.model.OWLTransitiveObjectPropertyAxiom;
public class OwlConverter {
private static OwlConverter INSTANCE_ = new OwlConverter();
private OwlConverter() {
}
public static OwlConverter getInstance() {
return INSTANCE_;
}
protected static OwlCorrespondingObjectConverterVisitor CONVERTER = OwlCorrespondingObjectConverterVisitor
.getInstance();
protected static OwlAxiomConverterVisitor OWL_AXIOM_CONVERTER = OwlAxiomConverterVisitor
.getInstance();
protected static OwlAnnotationAxiomConverterVisitor OWL_ANNOTATION_AXIOM_CONVERTER = OwlAnnotationAxiomConverterVisitor
.getInstance();
protected static OwlClassAxiomConverterVisitor OWL_CLASS_AXIOM_CONVERTER = OwlClassAxiomConverterVisitor
.getInstance();
protected static OwlObjectPropertyAxiomConverterVisitor OWL_OBJECT_PROPERTY_AXIOM_CONVERTER = OwlObjectPropertyAxiomConverterVisitor
.getInstance();
protected static OwlDataPropertyAxiomConverterVisitor OWL_DATA_PROPERTY_AXIOM_CONVERTER = OwlDataPropertyAxiomConverterVisitor
.getInstance();
protected static OwlIndividualAxiomConverterVisitor OWL_INDIVIDUAL_AXIOM_CONVERTER = OwlIndividualAxiomConverterVisitor
.getInstance();
protected static OwlObjectPropertyExpressionConverterVisitor OWL_OBJECT_PROPERTY_EXPRESSION_CONVERTER = OwlObjectPropertyExpressionConverterVisitor
.getInstance();
protected static OwlAnnotationSubjectValueVisitor OWL_ANNOTATION_CONVERTER = OwlAnnotationSubjectValueVisitor
.getInstance();
@SuppressWarnings("static-method")
public ElkAnnotationProperty convert(
OWLAnnotationProperty owlAnnotationProperty) {
return new ElkAnnotationPropertyWrap(
owlAnnotationProperty);
}
@SuppressWarnings("static-method")
public ElkAnonymousIndividual convert(
OWLAnonymousIndividual owlAnonymousIndividual) {
return new ElkAnonymousIndividualWrap(
owlAnonymousIndividual);
}
@SuppressWarnings("static-method")
public ElkAnnotationAxiom convert(OWLAnnotationAxiom owlAnnotationAxiom) {
return owlAnnotationAxiom.accept(OWL_ANNOTATION_AXIOM_CONVERTER);
}
@SuppressWarnings("static-method")
public ElkAssertionAxiom convert(OWLIndividualAxiom owlIndividualAxiom) {
return owlIndividualAxiom.accept(OWL_INDIVIDUAL_AXIOM_CONVERTER);
}
@SuppressWarnings("static-method")
public ElkAsymmetricObjectPropertyAxiom convert(
OWLAsymmetricObjectPropertyAxiom owlAsymmetricObjectPropertyAxiom) {
return new ElkAsymmetricObjectPropertyAxiomWrap(
owlAsymmetricObjectPropertyAxiom);
}
@SuppressWarnings("static-method")
public ElkAxiom convert(OWLAxiom owlAxiom) {
return owlAxiom.accept(OWL_AXIOM_CONVERTER);
}
@SuppressWarnings("static-method")
public ElkClassAssertionAxiom convert(
OWLClassAssertionAxiom owlClassAssertionAxiom) {
return new ElkClassAssertionAxiomWrap(
owlClassAssertionAxiom);
}
@SuppressWarnings("static-method")
public ElkClassAxiom convert(OWLClassAxiom owlClassAxiom) {
return owlClassAxiom.accept(OWL_CLASS_AXIOM_CONVERTER);
}
@SuppressWarnings("static-method")
public ElkClassExpression convert(OWLClassExpression owlClassExpression) {
return owlClassExpression.accept(CONVERTER);
}
@SuppressWarnings("static-method")
public ElkClass convert(OWLClass owlClass) {
return new ElkClassWrap(owlClass);
}
@SuppressWarnings("static-method")
public ElkDataAllValuesFrom convert(
OWLDataAllValuesFrom owlDataAllValuesFrom) {
return new ElkDataAllValuesFromWrap(
owlDataAllValuesFrom);
}
@SuppressWarnings("static-method")
public ElkDataComplementOf convert(OWLDataComplementOf owlDataComplementOf) {
return new ElkDataComplementOfWrap(
owlDataComplementOf);
}
@SuppressWarnings("static-method")
public ElkDataExactCardinality convert(
OWLDataExactCardinality owlDataExactCardinality) {
if (owlDataExactCardinality.isQualified())
return new ElkDataExactCardinalityQualifiedWrap(
owlDataExactCardinality);
else
return new ElkDataExactCardinalityWrap(
owlDataExactCardinality);
}
@SuppressWarnings("static-method")
public ElkDataHasValue convert(OWLDataHasValue owlDataHasValue) {
return new ElkDataHasValueWrap(owlDataHasValue);
}
@SuppressWarnings("static-method")
public ElkDataIntersectionOf convert(
OWLDataIntersectionOf owlDataIntersectionOf) {
return new ElkDataIntersectionOfWrap(
owlDataIntersectionOf);
}
@SuppressWarnings("static-method")
public ElkDataMaxCardinality convert(
OWLDataMaxCardinality owlDataMaxCardinality) {
if (owlDataMaxCardinality.isQualified())
return new ElkDataMaxCardinalityQualifiedWrap(
owlDataMaxCardinality);
else
return new ElkDataMaxCardinalityWrap(
owlDataMaxCardinality);
}
@SuppressWarnings("static-method")
public ElkDataMinCardinality convert(
OWLDataMinCardinality owlDataMinCardinality) {
if (owlDataMinCardinality.isQualified())
return new ElkDataMinCardinalityQualifiedWrap(
owlDataMinCardinality);
else
return new ElkDataMinCardinalityWrap(
owlDataMinCardinality);
}
@SuppressWarnings("static-method")
public ElkDataOneOf convert(OWLDataOneOf owlDataOneOf) {
return new ElkDataOneOfWrap(owlDataOneOf);
}
@SuppressWarnings("static-method")
public ElkDataPropertyAssertionAxiom convert(
OWLDataPropertyAssertionAxiom owlDataPropertyAssertionAxiom) {
return new ElkDataPropertyAssertionAxiomWrap(
owlDataPropertyAssertionAxiom);
}
@SuppressWarnings("static-method")
public ElkDataPropertyAxiom convert(
OWLDataPropertyAxiom owlDataPropertyAxiom) {
return owlDataPropertyAxiom.accept(OWL_DATA_PROPERTY_AXIOM_CONVERTER);
}
@SuppressWarnings("static-method")
public ElkDataPropertyDomainAxiom convert(
OWLDataPropertyDomainAxiom owlDataPropertyDomainAxiom) {
return new ElkDataPropertyDomainAxiomWrap(
owlDataPropertyDomainAxiom);
}
public ElkDataPropertyExpression convert(
OWLDataPropertyExpression owlDataPropertyExpression) {
return this.convert(owlDataPropertyExpression.asOWLDataProperty());
}
@SuppressWarnings("static-method")
public ElkDataPropertyRangeAxiom convert(
OWLDataPropertyRangeAxiom owlDataPropertyRangeAxiom) {
return new ElkDataPropertyRangeAxiomWrap(
owlDataPropertyRangeAxiom);
}
@SuppressWarnings("static-method")
public ElkDataProperty convert(OWLDataProperty owlDataProperty) {
return new ElkDataPropertyWrap(owlDataProperty);
}
@SuppressWarnings("static-method")
public ElkDataRange convert(OWLDataRange owlDataRange) {
return owlDataRange.accept(CONVERTER);
}
@SuppressWarnings("static-method")
public ElkDataSomeValuesFrom convert(
OWLDataSomeValuesFrom owlDataSomeValuesFrom) {
return new ElkDataSomeValuesFromWrap(
owlDataSomeValuesFrom);
}
@SuppressWarnings("static-method")
public ElkDatatypeRestriction convert(
OWLDatatypeRestriction owlDatatypeRestriction) {
return new ElkDatatypeRestrictionWrap(
owlDatatypeRestriction);
}
@SuppressWarnings("static-method")
public ElkDatatypeDefinitionAxiom convert(
OWLDatatypeDefinitionAxiom owlDatatypeDefinition) {
return new ElkDatatypeDefinitionAxiomWrap(
owlDatatypeDefinition);
}
@SuppressWarnings("static-method")
public ElkDatatype convert(OWLDatatype owlDatatype) {
return new ElkDatatypeWrap(owlDatatype);
}
@SuppressWarnings("static-method")
public ElkDataUnionOf convert(OWLDataUnionOf owlDataUnionOf) {
return new ElkDataUnionOfWrap(owlDataUnionOf);
}
@SuppressWarnings("static-method")
public ElkDeclarationAxiom convert(OWLDeclarationAxiom owlDeclarationAxiom) {
return new ElkDeclarationAxiomWrap(
owlDeclarationAxiom);
}
@SuppressWarnings("static-method")
public ElkDifferentIndividualsAxiom convert(
OWLDifferentIndividualsAxiom owlDifferentIndividualsAxiom) {
return new ElkDifferentIndividualsAxiomWrap(
owlDifferentIndividualsAxiom);
}
@SuppressWarnings("static-method")
public ElkDisjointClassesAxiom convert(
OWLDisjointClassesAxiom owlDisjointClassesAxiom) {
return new ElkDisjointClassesAxiomWrap(
owlDisjointClassesAxiom);
}
@SuppressWarnings("static-method")
public ElkDisjointDataPropertiesAxiom convert(
OWLDisjointDataPropertiesAxiom owlDisjointDataPropertiesAxiom) {
return new ElkDisjointDataPropertiesAxiomWrap(
owlDisjointDataPropertiesAxiom);
}
@SuppressWarnings("static-method")
public ElkDisjointObjectPropertiesAxiom convert(
OWLDisjointObjectPropertiesAxiom owlDisjointObjectPropertiesAxiom) {
return new ElkDisjointObjectPropertiesAxiomWrap(
owlDisjointObjectPropertiesAxiom);
}
@SuppressWarnings("static-method")
public ElkDisjointUnionAxiom convert(
OWLDisjointUnionAxiom owlDisjointUnionAxiom) {
return new ElkDisjointUnionAxiomWrap(
owlDisjointUnionAxiom);
}
@SuppressWarnings("static-method")
public ElkEntity convert(OWLEntity owlEntity) {
return owlEntity.accept(CONVERTER);
}
@SuppressWarnings("static-method")
public ElkEquivalentClassesAxiom convert(
OWLEquivalentClassesAxiom owlEquivalentClassesAxiom) {
return new ElkEquivalentClassesAxiomWrap(
owlEquivalentClassesAxiom);
}
@SuppressWarnings("static-method")
public ElkEquivalentDataPropertiesAxiom convert(
OWLEquivalentDataPropertiesAxiom owlEquivalentDataPropertiesAxiom) {
return new ElkEquivalentDataPropertiesAxiomWrap(
owlEquivalentDataPropertiesAxiom);
}
@SuppressWarnings("static-method")
public ElkEquivalentObjectPropertiesAxiom convert(
OWLEquivalentObjectPropertiesAxiom owlEquivalentObjectPropertiesAxiom) {
return new ElkEquivalentObjectPropertiesAxiomWrap(
owlEquivalentObjectPropertiesAxiom);
}
@SuppressWarnings("static-method")
public ElkFacetRestriction convert(OWLFacetRestriction owlFacetRestriction) {
return new ElkFacetRestrictionWrap(
owlFacetRestriction);
}
@SuppressWarnings("static-method")
public ElkFunctionalDataPropertyAxiom convert(
OWLFunctionalDataPropertyAxiom owlFunctionalDataPropertyAxiom) {
return new ElkFunctionalDataPropertyAxiomWrap(
owlFunctionalDataPropertyAxiom);
}
@SuppressWarnings("static-method")
public ElkFunctionalObjectPropertyAxiom convert(
OWLFunctionalObjectPropertyAxiom owlFunctionalObjectPropertyAxiom) {
return new ElkFunctionalObjectPropertyAxiomWrap(
owlFunctionalObjectPropertyAxiom);
}
@SuppressWarnings("static-method")
public ElkIndividual convert(OWLIndividual owlIndividual) {
return owlIndividual.accept(CONVERTER);
}
@SuppressWarnings("static-method")
public ElkInverseFunctionalObjectPropertyAxiom convert(
OWLInverseFunctionalObjectPropertyAxiom owlInverseFunctionalObjectPropertyAxiom) {
return new ElkInverseFunctionalObjectPropertyAxiomWrap(
owlInverseFunctionalObjectPropertyAxiom);
}
@SuppressWarnings("static-method")
public ElkInverseObjectPropertiesAxiom convert(
OWLInverseObjectPropertiesAxiom owlInverseObjectPropertiesAxiom) {
return new ElkInverseObjectPropertiesAxiomWrap(
owlInverseObjectPropertiesAxiom);
}
@SuppressWarnings("static-method")
public ElkIrreflexiveObjectPropertyAxiom convert(
OWLIrreflexiveObjectPropertyAxiom owlIrreflexiveObjectPropertyAxiom) {
return new ElkIrreflexiveObjectPropertyAxiomWrap(
owlIrreflexiveObjectPropertyAxiom);
}
@SuppressWarnings("static-method")
public ElkLiteral convert(OWLLiteral owlLiteral) {
return new ElkLiteralWrap(owlLiteral);
}
@SuppressWarnings("static-method")
public ElkNamedIndividual convert(OWLNamedIndividual owlNamedIndividual) {
return new ElkNamedIndividualWrap(
owlNamedIndividual);
}
@SuppressWarnings("static-method")
public ElkNegativeDataPropertyAssertionAxiom convert(
OWLNegativeDataPropertyAssertionAxiom owlNegativeDataPropertyAssertionAxiom) {
return new ElkNegativeDataPropertyAssertionAxiomWrap(
owlNegativeDataPropertyAssertionAxiom);
}
@SuppressWarnings("static-method")
public ElkNegativeObjectPropertyAssertionAxiom convert(
OWLNegativeObjectPropertyAssertionAxiom owlNegativeObjectPropertyAssertionAxiom) {
return new ElkNegativeObjectPropertyAssertionAxiomWrap(
owlNegativeObjectPropertyAssertionAxiom);
}
@SuppressWarnings("static-method")
public ElkObjectAllValuesFrom convert(
OWLObjectAllValuesFrom owlObjectAllValuesFrom) {
return new ElkObjectAllValuesFromWrap(
owlObjectAllValuesFrom);
}
@SuppressWarnings("static-method")
public ElkObjectComplementOf convert(
OWLObjectComplementOf owlObjectComplementOf) {
return new ElkObjectComplementOfWrap(
owlObjectComplementOf);
}
@SuppressWarnings("static-method")
public ElkObjectExactCardinality convert(
OWLObjectExactCardinality owlObjectExactCardinality) {
if (owlObjectExactCardinality.isQualified())
return new ElkObjectExactCardinalityQualifiedWrap(
owlObjectExactCardinality);
else
return new ElkObjectExactCardinalityWrap(
owlObjectExactCardinality);
}
@SuppressWarnings("static-method")
public ElkObjectHasSelf convert(OWLObjectHasSelf owlObjectHasSelf) {
return new ElkObjectHasSelfWrap(owlObjectHasSelf);
}
@SuppressWarnings("static-method")
public ElkObjectHasValue convert(OWLObjectHasValue owlObjectHasValue) {
return new ElkObjectHasValueWrap(owlObjectHasValue);
}
@SuppressWarnings("static-method")
public ElkObjectIntersectionOf convert(
OWLObjectIntersectionOf owlObjectIntersectionOf) {
return new ElkObjectIntersectionOfWrap(
owlObjectIntersectionOf);
}
@SuppressWarnings("static-method")
public ElkObjectMaxCardinality convert(
OWLObjectMaxCardinality owlObjectMaxCardinality) {
if (owlObjectMaxCardinality.isQualified())
return new ElkObjectMaxCardinalityQualifiedWrap(
owlObjectMaxCardinality);
else
return new ElkObjectMaxCardinalityWrap(
owlObjectMaxCardinality);
}
@SuppressWarnings("static-method")
public ElkObjectMinCardinality convert(
OWLObjectMinCardinality owlObjectMaxCardinality) {
if (owlObjectMaxCardinality.isQualified())
return new ElkObjectMinCardinalityQualifiedWrap(
owlObjectMaxCardinality);
else
return new ElkObjectMinCardinalityWrap(
owlObjectMaxCardinality);
}
@SuppressWarnings("static-method")
public ElkObjectOneOf convert(OWLObjectOneOf owlObjectOneOf) {
return new ElkObjectOneOfWrap(owlObjectOneOf);
}
@SuppressWarnings("static-method")
public ElkObjectPropertyAssertionAxiom convert(
OWLObjectPropertyAssertionAxiom owlObjectPropertyAssertionAxiom) {
return new ElkObjectPropertyAssertionAxiomWrap(
owlObjectPropertyAssertionAxiom);
}
@SuppressWarnings("static-method")
public ElkObjectPropertyAxiom convert(
OWLObjectPropertyAxiom owlObjectPropertyAxiom) {
return owlObjectPropertyAxiom
.accept(OWL_OBJECT_PROPERTY_AXIOM_CONVERTER);
}
@SuppressWarnings("static-method")
public ElkObjectPropertyChain convert(
OWLSubPropertyChainOfAxiom owlSubPropertyChainOfAxiom) {
return new ElkObjectPropertyChainWrap(
owlSubPropertyChainOfAxiom);
}
@SuppressWarnings("static-method")
public ElkObjectPropertyDomainAxiom convert(
OWLObjectPropertyDomainAxiom owlObjectPropertyDomainAxiom) {
return new ElkObjectPropertyDomainAxiomWrap(
owlObjectPropertyDomainAxiom);
}
@SuppressWarnings("static-method")
public ElkObjectPropertyExpression convert(
OWLObjectPropertyExpression objectPropertyExpression) {
return objectPropertyExpression
.accept(OWL_OBJECT_PROPERTY_EXPRESSION_CONVERTER);
}
@SuppressWarnings("static-method")
public ElkObjectPropertyRangeAxiom convert(
OWLObjectPropertyRangeAxiom owlObjectPropertyRangeAxiom) {
return new ElkObjectPropertyRangeAxiomWrap(
owlObjectPropertyRangeAxiom);
}
@SuppressWarnings("static-method")
public ElkObjectProperty convert(OWLObjectProperty owlObjectProperty) {
return new ElkObjectPropertyWrap(owlObjectProperty);
}
@SuppressWarnings("static-method")
public ElkObjectSomeValuesFrom convert(
OWLObjectSomeValuesFrom owlObjectSomeValuesFrom) {
return new ElkObjectSomeValuesFromWrap(
owlObjectSomeValuesFrom);
}
@SuppressWarnings("static-method")
public ElkObjectUnionOf convert(OWLObjectUnionOf owlObjectUnionOf) {
return new ElkObjectUnionOfWrap(owlObjectUnionOf);
}
@SuppressWarnings("static-method")
public ElkReflexiveObjectPropertyAxiom convert(
OWLReflexiveObjectPropertyAxiom owlReflexiveObjectPropertyAxiom) {
return new ElkReflexiveObjectPropertyAxiomWrap(
owlReflexiveObjectPropertyAxiom);
}
@SuppressWarnings("static-method")
public ElkSameIndividualAxiom convert(
OWLSameIndividualAxiom owlSameIndividualAxiom) {
return new ElkSameIndividualAxiomWrap(
owlSameIndividualAxiom);
}
@SuppressWarnings("static-method")
public ElkSubClassOfAxiom convert(OWLSubClassOfAxiom owlSubClassOfAxiom) {
return new ElkSubClassOfAxiomWrap(
owlSubClassOfAxiom);
}
@SuppressWarnings("static-method")
public ElkSubDataPropertyOfAxiom convert(
OWLSubDataPropertyOfAxiom owlSubDataPropertyOfAxiom) {
return new ElkSubDataPropertyOfAxiomWrap(
owlSubDataPropertyOfAxiom);
}
@SuppressWarnings("static-method")
public ElkSubObjectPropertyOfAxiom convert(
OWLSubObjectPropertyOfAxiom owlSubObjectPropertyOfAxiom) {
return new ElkSubObjectPropertyOfAxiomWrap(
owlSubObjectPropertyOfAxiom);
}
@SuppressWarnings("static-method")
public ElkSymmetricObjectPropertyAxiom convert(
OWLSymmetricObjectPropertyAxiom owlSymmetricObjectPropertyAxiom) {
return new ElkSymmetricObjectPropertyAxiomWrap(
owlSymmetricObjectPropertyAxiom);
}
@SuppressWarnings("static-method")
public ElkTransitiveObjectPropertyAxiom convert(
OWLTransitiveObjectPropertyAxiom owlTransitiveObjectPropertyAxiom) {
return new ElkTransitiveObjectPropertyAxiomWrap(
owlTransitiveObjectPropertyAxiom);
}
@SuppressWarnings("static-method")
public ElkHasKeyAxiom convert(OWLHasKeyAxiom owlHasKey) {
return new ElkHasKeyAxiomWrap(owlHasKey);
}
@SuppressWarnings("static-method")
public ElkAnnotationSubject convert(OWLAnnotationSubject subject) {
return OWL_ANNOTATION_CONVERTER.visit(subject);
}
@SuppressWarnings("static-method")
public ElkAnnotationValue convert(OWLAnnotationValue value) {
return OWL_ANNOTATION_CONVERTER.visit(value);
}
@SuppressWarnings("static-method")
public ElkIri convert(IRI iri) {
return new ElkFullIri(iri.toString());
}
/**
* @param axiom
* the owl axiom to test
* @return {@code true} if the owl axiom can be converted to ELK axiom
*/
@SuppressWarnings("static-method")
public boolean isRelevantAxiom(OWLAxiom axiom) {
return axiom.isLogicalAxiom() || axiom.isOfType(AxiomType.DECLARATION);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy