Skip to content

Feature/owl2shacl#1

Draft
aplarge wants to merge 20 commits intomasterfrom
feature/owl2shacl
Draft

Feature/owl2shacl#1
aplarge wants to merge 20 commits intomasterfrom
feature/owl2shacl

Conversation

@aplarge
Copy link
Copy Markdown
Collaborator

@aplarge aplarge commented Jun 19, 2023

No description provided.

Copy link
Copy Markdown

@johnplacek johnplacek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First pass


ies:AccentShape a sh:NodeShape ;
sh:severity sh:Warning ;
sh:targetClass ies:Accent .
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in SHACL it's standard to use the targetClass as the NodeShape, like this:

ies:Accent a sh:NodeShape ;
    sh:severity sh:Warning .

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did it that way as that is how their present SHACL was done. It is an easy enough change to make if required. It would actually simplify the code or we could make it an option to add a suffix or not

Comment thread IES Specification Docs/ont.file.ttl Outdated
sh:targetSubjectsOf ies:cookieOriginSite .

ies:cookieOriginSiteRangeShape a sh:NodeShape ;
sh:class ies:Webpage ;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sh:class belongs on property shape only, not node shape. Please check

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sh:class does not have a domain specified in the shacl ontology only a range of rdfs:Class. These shapes could be changed to an sh.node property which points to the NodeShape of the class which in turn would validates that it is an rdfs:Class, but I don't think it is invalid as it is.

Comment thread IES Specification Docs/ont.file.ttl Outdated
Comment thread test/TestOntology.ttl
Comment thread test/test.py
Comment thread test/test.py Outdated

td:TestClassAShape
a sh:NodeShape ;
sh:property [ sh:class td:TestClassD ;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest property shapes get their own IRI. I've often needed to refer to them directly.

Comment thread src/owl2Shacl.py
Comment thread src/owl2Shacl.py
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

Successfully merging this pull request may close these issues.

2 participants