i40-Tools / I40KG

Contains the development for the Industry 4.0 standards knowledge graph (I40KG). Its current collaborative development is driven by VoCol - http://vocol.iais.fraunhofer.de/sto/
64 stars 24 forks source link

sto:hasDomain usage as DataProperty #58

Closed SpyrosKou closed 4 years ago

SpyrosKou commented 5 years ago

Hello,

I would like to share the following finding: While the sto:hasDomain is declared as an ObjectProperty: https://github.com/i40-Tools/StandardOntology/blob/e89369452d28773dba413b3aed5834636d0b4787/sto.ttl#L346

There are 4 occurrences where it is used as a DataProperty and hence, making a dataProperty-ObjectProperty punning.

https://github.com/i40-Tools/StandardOntology/blob/e89369452d28773dba413b3aed5834636d0b4787/sto.ttl#L3728

https://github.com/i40-Tools/StandardOntology/blob/e89369452d28773dba413b3aed5834636d0b4787/sto.ttl#L5529

https://github.com/i40-Tools/StandardOntology/blob/e89369452d28773dba413b3aed5834636d0b4787/sto.ttl#L6007

https://github.com/i40-Tools/StandardOntology/blob/e89369452d28773dba413b3aed5834636d0b4787/sto.ttl#L6561

Thank you

igrangel commented 5 years ago

Thanks again for pointing out this error. A solution for this would be to convert the literals into instances of the sto:Domain class.

igrangel commented 4 years ago

Solved in this commit.