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

Generate error if mandatory shape is not present #6

Open
philbarker opened this issue Feb 23, 2022 · 1 comment
Open

Generate error if mandatory shape is not present #6

philbarker opened this issue Feb 23, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@philbarker
Copy link
Owner

If shapes csv has True for Madatory element, generate code to check whether any data matches shape.

@philbarker philbarker added the enhancement New feature or request label Feb 23, 2022
@philbarker
Copy link
Owner Author

Example of how to do when target is a class:

<#nodePresent> a sh:NodeShape ;
  rdfs:label "Existence check"@en ;
  rdfs:comment "Shape to check there is a Competency instance"@en ;
  sh:targetNode ceasn:Competency ;
  sh:property [
    sh:path [ sh:inversePath rdf:type ] ;
    sh:minCount 1 ; # this checks that there is a node with specified rdf:type
  ] ;
  sh:message "There must be at least one Competency node"@en
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant