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

JS impl: message not useful for sh:in list #20

Closed
VladimirAlexiev opened this issue Aug 3, 2017 · 2 comments
Closed

JS impl: message not useful for sh:in list #20

VladimirAlexiev opened this issue Aug 3, 2017 · 2 comments

Comments

@VladimirAlexiev
Copy link

Go to http://shacl.org/playground/, select "example in Turtle" and add

schema:gender "hermaphrodite"

This constraint:

    sh:property [
        sh:path schema:gender ;
        sh:in ( "female" "male" ) ;
    ] ;

Causes this result:

[
	a sh:ValidationResult ;
	sh:resultSeverity sh:Violation ;
	sh:sourceConstraintComponent sh:InConstraintComponent ;
	sh:sourceShape _:n3 ;
	sh:focusNode <http://example.org/ns#Bob> ;
	sh:value "hermaphrodite" ;
	sh:resultPath schema:gender ;
	sh:resultMessage "Value is not in Blank node _:n11" ;
] .

"Blank node _:n11" in sh:resultMessage is not very useful.

@VladimirAlexiev
Copy link
Author

I guess this issue should be against https://github.com/TopQuadrant/shacl-js? Sorry about that, saw taht repo after posting

@HolgerKnublauch
Copy link
Collaborator

Yes please clone this issue into shacl-js (which we recently separated from this shacl project). The error message does render better in the Java API.

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