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

Union in range of the role #41

Open
kaplan196883 opened this issue Feb 1, 2022 · 0 comments
Open

Union in range of the role #41

kaplan196883 opened this issue Feb 1, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@kaplan196883
Copy link
Contributor

BTW there's a similar issue with assertions on relations.

Both these work:

No first-name is pesel-num.
Every first-name connects-with nothing-but thing that is a pesel-num.
First-Name-6 is a first-name.
First-Name-7 is a first-name.
First-Name-6 connects-with First-Name-7.
Causes error.

No first-name is last-name.
Every first-name connects-with nothing-but thing that is a last-name.
First-Name-6 is a first-name.
First-Name-7 is a first-name.
First-Name-6 connects-with First-Name-7.
Causes error too.

But:

No first-name is last-name.
No first-name is pesel-num.
Every first-name connects-with nothing-but thing that is a last-name and-or pesel-num.
First-Name-6 is a first-name.
First-Name-7 is a first-name.
First-Name-6 connects-with First-Name-7.
Does not cause an error.

@apohllo

Author
apohllo commented 4 days ago
The RDF/OWL conversions are as follows, for the first type of assertion:

<rdfs:subClassOf>
  <owl:Restriction>
    <owl:onProperty rdf:resource="http://www.cognitum.eu/onto#connectsWith" />
    <owl:allValuesFrom rdf:resource="http://www.cognitum.eu/onto#lastName" />
  </owl:Restriction>
</rdfs:subClassOf>

and for the second type:

<rdfs:subClassOf>
  <owl:Restriction>
    <owl:onProperty rdf:resource="http://www.cognitum.eu/onto#connectsWith" />
    <owl:allValuesFrom>
      <owl:Class>
        <owl:unionOf rdf:parseType="Collection">
          <rdf:Description rdf:about="http://www.cognitum.eu/onto#lastName" />
          <rdf:Description rdf:about="http://www.cognitum.eu/onto#peselNum" />
        </owl:unionOf>
      </owl:Class>
    </owl:allValuesFrom>
  </owl:Restriction>
</rdfs:subClassOf>
@kaplan196883 kaplan196883 added the bug Something isn't working label Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant