opencaesar / owl-adapter

The OML adapter for OWL
Apache License 2.0
0 stars 2 forks source link

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

Closed NicolasRouquette closed 6 months ago

NicolasRouquette commented 7 months ago

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:

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.

melaasar commented 6 months ago

As of OML to OWL 2.6.0. there are: