-
Notifications
You must be signed in to change notification settings - Fork 17
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
sh:class not working as expected. #118
Comments
@neormx you mentioned to me on Slack that using shaclex directly worked well but only from the HEAD. Could you please post the Java/Scala code to see how did you invoke shaclex directly? BTW, I just tried the shacl.js based validator and it seems to work, but I made the following changes Data graph:
Shape graph:
|
@berezovskyi I just tried with your graphs and no luck, hope not being missing something. To run directly with shaclex, I saved the graph posted on my original comment on a file, e.g. dynamic.ttl, then execute from console at the project's home directory:
|
You can also try the rdfshape tool. I tried @berezovskyi's example and it works as you can see here. I also tried the original one and it also seems to work, see here. I also run the example using the command line tool with the arguments you provided and it returns valid. Are you using the latest "Shaclex" version? At this moment: 0.1.02 ? |
@labra I actually managed to reproduce @neormx's example. But I believe it might be a bug in our lyo.validation library and not in shaclex. The following works:
and the following does too:
But this fails:
The dependencies used in a test:
P.S. Code was provided @neormx |
If I try next model I always got
<http://localhost/vocabulary/Me> doesn't belong to class <http://localhost/vocabulary/Person>
which is not true:The complete and exact 0.1.02 response (through https://github.com/eclipse/lyo.validation) is:
The text was updated successfully, but these errors were encountered: