Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

2.0.0: Jena Ontology API refactoring #8

Closed
sszuev opened this issue Dec 11, 2019 · 0 comments
Closed

2.0.0: Jena Ontology API refactoring #8

sszuev opened this issue Dec 11, 2019 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@sszuev
Copy link
Contributor

sszuev commented Dec 11, 2019

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 with CreateClasses
    • createOneOfDataRange -> createDataOneOf
    • createComplementOfDataRange -> createDataComplementOf
    • createUnionOfDataRange -> createDataUnionOf
    • createIntersectionOfDataRange -> createDataIntersectionOf
    • createRestrictionDataRange ->
  • CreateClasses.* -> uniformity with CreateRanges
    • createOneOf -> createObjectOneOf
    • createComplementOf -> createObjectComplementOf
    • createUnionOf -> createObjectUnionOf
    • createIntersectionOf -> createObjectIntersectionOf
  • etc ?

3) remove methods

  • OntStatement#isRoot
  • OntStatement#isObject
  • OntStatement#isData
@sszuev sszuev added enhancement New feature or request question Further information is requested labels Dec 11, 2019
@sszuev sszuev changed the title 2.0.0: Major Jena Ontology API (RDF Model) refactoring: change component/method names 2.0.0: Major Jena Ontology API refactoring: change component/method names Dec 11, 2019
@sszuev sszuev changed the title 2.0.0: Major Jena Ontology API refactoring: change component/method names 2.0.0: Jena Ontology API refactoring: change component/method names Dec 11, 2019
@sszuev sszuev changed the title 2.0.0: Jena Ontology API refactoring: change component/method names 2.0.0: Jena Ontology API refactoring Dec 12, 2019
sszuev added a commit that referenced this issue Dec 14, 2019
…onents (CreateClasses, CreateRanges, OntStatement, OntObject/OntResource) (issue #8)
sszuev added a commit to sszuev/ontapi-osgidistribution that referenced this issue Dec 15, 2019
@sszuev sszuev closed this as completed Dec 16, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant