Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save phochste/c83d3fd7679125444b71a1044919586e to your computer and use it in GitHub Desktop.
Save phochste/c83d3fd7679125444b71a1044919586e to your computer and use it in GitHub Desktop.
COAR Rule example
@prefix my: <http://lib.ugent.be/~phochste/examples/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix as: <https://www.w3.org/ns/activitystreams#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
as:Offer
a rdfs:Class , sh:NodeShape ;
rdfs:label "Keep Offers" ;
sh:property [
sh:path as:actor ;
sh:minCount 1;
sh:maxCount 1;
] ;
sh:property [
sh:path as:origin ;
sh:minCount 1;
sh:maxCount 1;
] ;
sh:property [
sh:path as:target ;
sh:minCount 1;
sh:maxCount 1;
] ;
sh:rule [
a sh:TripleRule ;
sh:subject sh:this ;
sh:predicate rdf:type ;
sh:object my:AddToEventLog ;
sh:condition as:Offer ;
] .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment