Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

owl class ComponentProperty is a subclass of rdf:Property #4

Open
renespeck opened this issue Feb 3, 2024 · 3 comments
Open

owl class ComponentProperty is a subclass of rdf:Property #4

renespeck opened this issue Feb 3, 2024 · 3 comments

Comments

@renespeck
Copy link

renespeck commented Feb 3, 2024

Hi, in https://github.com/UKGovLD/publishing-statistical-data/blob/ede5e32affb236e4939b09fc63a27cdfc5d2a833/specs/src/main/vocab/cube.rdf is the following in line 110:

<rdfs:Class rdf:about="http://purl.org/linked-data/cube#ComponentProperty">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
    <rdfs:label xml:lang="en">Component property (abstract)</rdfs:label>
    <rdfs:subClassOf rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
    <rdfs:comment xml:lang="en">Abstract super-property of all properties representing dimensions, attributes or measures</rdfs:comment>
    <rdfs:isDefinedBy rdf:resource="http://purl.org/linked-data/cube"/>
  </rdfs:Class>

This line suggests that the owl class ComponentProperty is a subclass of rdf:Property, which is not allowed because classes and properties are distinct concepts.

When I load the file with owlready2, this rises the error:

TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

@der
Copy link
Contributor

der commented Feb 3, 2024

This is OWL full. The disjointness of classes and properties is a property of OWL DL.

@renespeck
Copy link
Author

Ahh, okay. Thanks for your help and the quick reply.

@der
Copy link
Contributor

der commented Feb 3, 2024

No problem. Likely that you could drop that axiom in a local copy in order to work with owlready2 without that causing any major headaches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants