OpenEnergyPlatform / ontology

Repository for the Open Energy Ontology (OEO)
Creative Commons Zero v1.0 Universal
106 stars 23 forks source link

`B7` and `E10` are not inferred as subclasses of `blended liquid fuel` #1764

Closed l-emele closed 10 months ago

l-emele commented 10 months ago

Description of the issue

In issue #1504 / PR #1723 we introduced:

Axioms:

Class: 'blended liquid fuel'
    EquivalentTo:
        'liquid combustion fuel'
         and ('has part' some 'liquid fossil fuel')
         and ('has part' some 
           ('liquid biofuel' or 'liquid renewable fuel'))

Class: B7
    SubClassOf:
        'diesel fuel'
        ('has part' some biodiesel)
         and ('has part' some 'fossil diesel fuel')

Class: E10
    SubClassOf:
        'gasoline fuel'
        ('has part' some gasoline)
         and ('has part' some bioethanol)

It was intended that B10 and E10 will be (inferred) as subclasses blended liquid fuel. This currently does not work.

Ideas of solution

I see two options to solve this:

Option 1

Class: B7
    SubClassOf:
        'diesel fuel'
        ('has part' some biodiesel)
         and ('has part' some 'fossil diesel fuel')
        'has normal state of matter' value liquid

Class: E10
    SubClassOf:
        'gasoline fuel'
        ('has part' some gasoline)
         and ('has part' some bioethanol)
        'has normal state of matter' value liquid

Option 2

Class: B7
    SubClassOf:
        'blended liquid fuel'
        ('has part' some biodiesel)
 and ('has part' some 'fossil diesel fuel')
        'has role' some 'diesel fuel role'

Class: E10
    SubClassOf:
        'blended liquid fuel'
        ('has part' some gasoline)
         and ('has part' some bioethanol)
        'has role' some 'gasoline fuel role'

Pros and cons

The definitions and asserted axioms in option 1 focus on the fact that B7 and E10 are diesel resp. gasoline fuels while option 2 focus a bit more on the fact that B7 and E10 are blended liquid fuels.

Workflow checklist

I am aware that

stap-m commented 10 months ago

I like option 1.

l-emele commented 10 months ago

Okay, then I'll implement option 1.