-
Notifications
You must be signed in to change notification settings - Fork 65
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
Monolithic file generates report, split .ttl files do not. #46
Comments
I believe I understand part of what is going on, but not the reasons behind it. When one splits into three separate parts, the shacl_graph does not contain the ont_graph information and cannot be processed correctly. A simple hack that fixes the problem is one line of code in the Validator shacl_graph = mix_datasets( shacl_graph, self.ont_graph )
basically, I add the ont_graph to the shacl_graph and it works as expected. Obviously, there are some more checks that need to go in here for a complete solution and there may be other issues I have not yet considered. |
Yes, your assessment is correct, in pySHACL the The If a SHACL Shapes Graph requires any ontological definitions in order to work correctly then it makes sense that the author should include those definitions either directly in the SHACL Shapes source file, or via an I hope that has helped. |
It does. Thank you. |
I have a gist with all of the relevant files at: https://gist.github.com/James-Hudson3010/2588d9b17dd33e15922122b8b5cf1bd7
If I execute:
I get the following, correct validation report...
However, if I split employees.ttl into three files containing the schema, shape, and instance data and run:
the result is:
I assume I am calling pyshacl correctly.
The text was updated successfully, but these errors were encountered: