opencaesar/owl-adapter

[BUG] - Mapping of OML RelationEntity should add annotations to the forward/reverse properties

Closed this issue · 1 comments

Description

A clear and concise description of what the bug is.

The OWL representation of an OML RelationEntity lacks annotations linking the OWL class representing the relation entity to the OWL ObjectProperties corresponding to the OML forward/reverse properties.

Here is an example:

    <owl:ObjectProperty rdf:about="http://imce.jpl.nasa.gov/foundation/base/base#contains">
        <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#InverseFunctionalProperty"/>
        <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#AsymmetricProperty"/>
        <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#IrreflexiveProperty"/>
        <rdfs:domain rdf:resource="http://imce.jpl.nasa.gov/foundation/base/base#Container"/>
        <rdfs:range rdf:resource="http://imce.jpl.nasa.gov/foundation/base/base#ContainedElement"/>
        <dc:type rdf:resource="http://opencaesar.io/oml#forwardRelation"/>
        <rdfs:label>contains</rdfs:label>
    </owl:ObjectProperty>

    <owl:ObjectProperty rdf:about="http://imce.jpl.nasa.gov/foundation/base/base#isContainedIn">
        <owl:inverseOf rdf:resource="http://imce.jpl.nasa.gov/foundation/base/base#contains"/>
        <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty"/>
        <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#AsymmetricProperty"/>
        <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#IrreflexiveProperty"/>
        <rdfs:domain rdf:resource="http://imce.jpl.nasa.gov/foundation/base/base#ContainedElement"/>
        <rdfs:range rdf:resource="http://imce.jpl.nasa.gov/foundation/base/base#Container"/>
        <dc:type rdf:resource="http://opencaesar.io/oml#reverseRelation"/>
        <rdfs:label>is contained in</rdfs:label>
    </owl:ObjectProperty>

    <owl:Class rdf:about="http://imce.jpl.nasa.gov/foundation/base/base#Contains">
        <dc:type rdf:resource="http://opencaesar.io/oml#RelationEntity"/>
        <rdfs:label>Contains</rdfs:label>
    </owl:Class>

Steps to Reproduce

Steps to reproduce the behavior:

  • Step 1
  • Step 2
  • Step 3

Expected Behavior

A clear and concise description of what should be the expected behavior.

Additional Context

Enter any other details such as dependencies, environment, examples, etc.

Relevant screenshots

If applicable, add screenshots to help illustrate the issue.

As of OML to OWL 2.6.0. there are:

  • an annotation property owl:relationEntity placed on oml:ForwardRelation referencing a oml:RelationEntity
  • an annotation property owl:relationBase placed on oml:ReverseRelation referencing a RelationBase (which could be either a oml:RelationEntity or a oml:UnreifiedRelation)