Created
May 3, 2021 11:59
-
-
Save phochste/c83d3fd7679125444b71a1044919586e to your computer and use it in GitHub Desktop.
COAR Rule example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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