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

User-defined data type translation to OWL #791

Closed
crapo opened this issue Sep 15, 2021 Discussed in #789 · 2 comments
Closed

User-defined data type translation to OWL #791

crapo opened this issue Sep 15, 2021 Discussed in #789 · 2 comments
Assignees

Comments

@crapo
Copy link
Collaborator

crapo commented Sep 15, 2021

Discussed in #789

Originally posted by AbhaMoitra September 15, 2021
@glguy brought this to my attention.

I am using a user-defined data type in SADL as follows
Range is a type of float [0,1].
The OWL that is generated is as follows

<rdfs:Datatype rdf:ID="Range">
owl:equivalentClass
rdfs:Datatype
<owl:withRestrictions rdf:parseType="Collection">
rdf:Description
<xsd:maxInclusive rdf:datatype="http://www.w3.org/2001/XMLSchema#float"
>1</xsd:maxInclusive>
<xsd:minInclusive rdf:datatype="http://www.w3.org/2001/XMLSchema#float"
>0</xsd:minInclusive>
</rdf:Description>
</owl:withRestrictions>
<owl:onDatatype rdf:resource="http://www.w3.org/2001/XMLSchema#float"/>
</rdfs:Datatype>
</owl:equivalentClass>
</rdfs:Datatype>

However the following is what works in Protege; notice the extra "</rdf:Description> rdf:Description"

<rdfs:Datatype rdf:ID="Range">
owl:equivalentClass
rdfs:Datatype
<owl:withRestrictions rdf:parseType="Collection">
rdf:Description
<xsd:maxInclusive rdf:datatype="http://www.w3.org/2001/XMLSchema#float"
>1</xsd:maxInclusive>
</rdf:Description>
rdf:Description
<xsd:minInclusive rdf:datatype="http://www.w3.org/2001/XMLSchema#float"
>0</xsd:minInclusive>
</rdf:Description>
</owl:withRestrictions>
<owl:onDatatype rdf:resource="http://www.w3.org/2001/XMLSchema#float"/>
</rdfs:Datatype>
</owl:equivalentClass>
</rdfs:Datatype>

Should SADL be generating OWL differently or should Protege be ok with what SADL is generating?

@crapo
Copy link
Collaborator Author

crapo commented Sep 16, 2021

@AbhaMoitra , @glguy, this is fixed in PR #792 .

@crapo crapo closed this as completed Sep 16, 2021
@AbhaMoitra
Copy link
Collaborator

@crapo : thank you very much!

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