Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions compose/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
logging: *default-logging
environment:
DEFAULT_MU_AUTH_SCOPE: 'http://services.semantic.works/annotation-review-service'
ANNOTATION_TARGET_TYPES: 'http://www.w3.org/ns/oa#Annotation,http://mu.semte.ch/vocabularies/ext/AnnotationTarget'
TZ: Europe/Brussels
volumes:
- ../config/annotation-review:/config
Expand Down
12 changes: 12 additions & 0 deletions config/authorization/config.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ ext:decideAuthorizationPolicy a odrl:Set ;
ext:allowReadForAiSlice ,
ext:allowReadOsloOrgsForHumanValidation ,
ext:allowReadForHumanValidation ,
ext:allowQuestionAnsweringReadForHumanValidation,
ext:allowWriteForHumanValidation ,
ext:allowReadForQuestionAnswering ,
ext:allowWriteForQuestionAnswering ,
Expand Down Expand Up @@ -282,6 +283,13 @@ ext:allowReadForHumanValidation a odrl:Permission ;
odrl:assignee ext:publicParty ;
ext:scope "http://services.semantic.works/annotation-review-service" .

ext:allowQuestionAnsweringReadForHumanValidation a odrl:Permission ;
odrl:action odrl:read ;
odrl:target ext:decideQuestionAnsweringSlice ;
odrl:assigner ext:decideSystem ;
odrl:assignee ext:publicParty ;
ext:scope "http://services.semantic.works/annotation-review-service" .

ext:allowWriteForHumanValidation a odrl:Permission ;
odrl:action odrl:modify ;
odrl:target ext:decideHumanValidationSlice ;
Expand Down Expand Up @@ -620,6 +628,10 @@ ext:ExtReviewAnnotationAsset a odrl:Asset, sh:NodeShape ;
odrl:partOf ext:decideHumanValidationSlice ;
sh:targetClass ext:ReviewAnnotation .

ext:ExtAnnotationTargetAsset a odrl:Asset, sh:NodeShape ;
odrl:partOf ext:decideHumanValidationSlice ;
sh:targetClass ext:AnnotationTarget .

ext:ExtCorrectionAnnotationAsset a odrl:Asset, sh:NodeShape ;
odrl:partOf ext:decideHumanValidationSlice ;
sh:targetClass ext:CorrectionAnnotation .
Expand Down
18 changes: 9 additions & 9 deletions config/resources/annotation.lisp
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
(in-package :mu-cl-resources)

(define-resource annotation ()
(define-resource annotation-target () ;; generic resource class to serve as a target for annotations, to be extended with specific classes
:class (s-prefix "ext:AnnotationTarget")
:has-many `((annotation :via ,(s-prefix "oa:hasTarget")
:as "annotations"
:inverse t))
:resource-base (s-url "http://data.lblod.info/id/annotation-targets/")
:on-path "annotation-targets")

(define-resource annotation (annotation-target)
:class (s-prefix "oa:Annotation")
:properties `((:confidence :number ,(s-prefix "nif:confidence"))
(:motivated-by :url ,(s-prefix "oa:motivatedBy")))
Expand All @@ -12,14 +20,6 @@
:resource-base (s-url "http://data.lblod.info/id/annotations/")
:on-path "annotations")

(define-resource annotation-target () ;; generic resource class to serve as a target for annotations, to be extended with specific classes
:class (s-prefix "ext:AnnotationTarget")
:has-many `((annotation :via ,(s-prefix "oa:hasTarget")
:as "annotations"
:inverse t))
:resource-base (s-url "http://data.lblod.info/id/annotation-targets/")
:on-path "annotation-targets")

(define-resource annotation-body () ;; generic resource class to serve as a body for annotations, to be extended with specific classes
:class (s-prefix "ext:AnnotationBody")
:has-one `((annotation :via ,(s-prefix "oa:hasBody")
Expand Down