2.0.0: Jena Ontology API refactoring
Closed this issue · 0 comments
sszuev commented
For the upcoming release v2.0.0, the root domain name has been already changed,
so we can safely modify any other parts of the API.
This is the last chance, after the release, such an opportunity will no longer exist, so need to do it finally.
(note: this is a continuation of the issue https://github.com/avicomp/ont-api/issues/83)
So, there are following propositions:
1) changes in Ont[Graph]Model
components naming
OntSWRL
:OntSWRL.Atom.BuiltIn
->OntSWRL.Atom.WithBuiltin
OntSWRL.Atom.OntClass
->OntSWRL.Atom.WithClass
OntSWRL.Atom.DataRange
->OntSWRL.Atom.WithDataRange
OntSWRL.Atom.ObjectProperty
->OntSWRL.Atom.WithObjectProperty
OntSWRL.Atom.DataProperty
->OntSWRL.Atom.WithDataProperty
OntSWRL.Atom.DifferentIndividuals
->OntSWRL.Atom.WithDifferentIndividuals
OntSWRL.Atom.SameIndividuals
->OntSWRL.Atom.WithSameIndividuals
- Entities (
OntEntity
)OntClass
->OntClass.Named
OntDT
->OntDataRange.Named
OntNOP
->OntObjectProperty.Named
OntNAP
->OntAnnotationProperty
OntNDP
->OntDataProperty
- Class and Data Range expressions :
OntCE
->OntClass
OntDR
->OntDataRange
- Property expressions:
OntOPE
->OntObjectProperty
OntProperty
->OntNamedProperty
OntDOP
->OntRealProperty
OntPE
->OntProperty
- etc:
OntFR
->OntFacetRestriction
OntNPA.ObjectAssertion
->OntNegativeAssertion.WithObjectProperty
OntNPA.DataAssertion
->OntNegativeAssertion.WithDataProperty
2) changes in methods signatures
OntStatement#isAnnotation
->isAnnotationAssertion
OntStatement#isBulkAnnotation
->belongsToAnnotation
OntResource#getRoot
->getMainStatement
CreateRanges.*
-> uniformity withCreateClasses
createOneOfDataRange
->createDataOneOf
createComplementOfDataRange
->createDataComplementOf
createUnionOfDataRange
->createDataUnionOf
createIntersectionOfDataRange
->createDataIntersectionOf
createRestrictionDataRange
->
CreateClasses.*
-> uniformity withCreateRanges
createOneOf
->createObjectOneOf
createComplementOf
->createObjectComplementOf
createUnionOf
->createObjectUnionOf
createIntersectionOf
->createObjectIntersectionOf
- etc ?
3) remove methods
OntStatement#isRoot
OntStatement#isObject
OntStatement#isData