Skip to content

Commit

Permalink
added mapping for OWL2DatatypeImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
alkidbaci committed Nov 20, 2024
1 parent d35def5 commit 4073bea
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions owlapy/owlapi_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,18 @@
startJVM()
from org.semanticweb.owlapi.model import IRI as owlapi_IRI, OWLOntologyID as owlapi_OWLOntologyID
from org.semanticweb.owlapi.vocab import OWLFacet as owlapi_OWLFacet
from java.util import HashSet, ArrayList, List, Set, LinkedHashSet, Optional
from java.util import ArrayList, List, Set, LinkedHashSet, Optional
from java.util.stream import Stream
from uk.ac.manchester.cs.owl.owlapi import (OWLAnonymousClassExpressionImpl, OWLCardinalityRestrictionImpl,
OWLClassExpressionImpl, OWLClassImpl, OWLDataAllValuesFromImpl,
OWLDataCardinalityRestrictionImpl, OWLDataExactCardinalityImpl,
OWLDataHasValueImpl, OWLDataMaxCardinalityImpl, OWLDataUnionOfImpl,
from uk.ac.manchester.cs.owl.owlapi import (OWLClassImpl, OWLDataAllValuesFromImpl, OWL2DatatypeImpl,
OWLDataExactCardinalityImpl,OWLDataHasValueImpl,
OWLDataMaxCardinalityImpl, OWLDataUnionOfImpl,
OWLDataMinCardinalityImpl, OWLDataSomeValuesFromImpl,
OWLNaryBooleanClassExpressionImpl, OWLObjectAllValuesFromImpl,
OWLObjectCardinalityRestrictionImpl, OWLObjectComplementOfImpl,
OWLObjectAllValuesFromImpl, OWLObjectComplementOfImpl,
OWLObjectExactCardinalityImpl, OWLObjectHasSelfImpl,
OWLObjectHasValueImpl, OWLObjectIntersectionOfImpl,
OWLObjectMaxCardinalityImpl, OWLObjectMinCardinalityImpl,
OWLObjectOneOfImpl, OWLObjectSomeValuesFromImpl, OWLNaryDataRangeImpl,
OWLObjectUnionOfImpl, OWLQuantifiedDataRestrictionImpl,
OWLQuantifiedObjectRestrictionImpl, OWLQuantifiedRestrictionImpl,
OWLValueRestrictionImpl, OWLLiteralImplBoolean, OWLLiteralImplString,
OWLObjectUnionOfImpl,OWLLiteralImplBoolean, OWLLiteralImplString,
OWLLiteralImplDouble, OWLLiteralImplFloat, OWLLiteralImplInteger,
OWLDisjointClassesAxiomImpl, OWLDeclarationAxiomImpl, OWLAnnotationImpl,
OWLAnnotationPropertyImpl, OWLClassAssertionAxiomImpl,
Expand Down Expand Up @@ -133,6 +129,10 @@ def _(self, e):
def _(self, e):
return init(e)(self.map_(e.getIRI()))

@map_.register(OWL2DatatypeImpl)
def _(self, e):
return OWLDatatype(self.map_(e.getIRI()))

@map_.register
def _(self, e: OWLObjectComplementOf):
return init(e)(self.map_(e.get_operand()))
Expand Down

0 comments on commit 4073bea

Please sign in to comment.