Re: [poe] Ontology constraints/restrictions

fwiw, using SHACL to verify whether policies of type odrl:Agreement:

1. have at least one permission or prohibition
2. each referenced permission/prohibition as at least one assignee

```Turtle
ex:AgreementPolicyShape
 a sh:NodeShape ;
 sh:targetClass odrl:Agreement ;
 sh:or (
 [
  sh:path odrl:permission ;
  sh:minCount 1 ;
 ]  
 [
  sh:path odrl:prohibition ;
  sh:minCount 1 ;
 ] ) ;
 sh:property [
  sh:path odrl:permission ;
  sh:node ex:MinAssigneeShape ;
 ] ;
 sh:property [
  sh:path odrl:prohibition ;
  sh:node ex:MinAssigneeShape ;
 ] .
 
ex:MinAssigneeShape
 a sh:NodeShape ;
 sh:property [
  sh:path odrl:assignee ;
  sh:class odrl:Assignee ;
  sh:minCount 1 ;
 ] .
``` 

-- 
GitHub Notification of comment by simonstey
Please view or discuss this issue at https://github.com/w3c/poe/issues/26#issuecomment-288952631 using your GitHub account

Received on Friday, 24 March 2017 07:31:38 UTC