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

SHACL-SPARQL #33

Open
danca103 opened this issue Dec 14, 2020 · 2 comments
Open

SHACL-SPARQL #33

danca103 opened this issue Dec 14, 2020 · 2 comments

Comments

@danca103
Copy link

Hi guys, is it possible to express SPARQL-based constraints within SHACL4P?

@fekaputra
Copy link
Owner

Hi there, yes - as SHACL-SPARQL is part of the W3C recommendation (and implemented by the TopBraid engine that we used here in the plugin), it is possible to express it within SHACL4P

Sorry for the late reply :)

@danca103
Copy link
Author

danca103 commented Jan 10, 2021

Hey, thanks for your answer! I have another question regarding the property sh:inversePath. I tried to express sh:inversePath with a property from a local data base with the prefix "". It didn't work. Than I just changed the prefix to "ex" and suprisingly it worked. Is that a common bug or is there a reason for that behavior? Below is the code that didn't work.

@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sh:    <http://www.w3.org/ns/shacl#> .
@prefix :      <http://www.semanticweb.org#> .

:RoomShape a sh:NodeShape ;
    sh:targetNode :Room ; 
    sh:property [
        sh:path     [ sh:inversePath :consists_of ] ;
        sh:minCount 1 ;
    ] .

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