diff --git a/compose/validation.yml b/compose/validation.yml index 908935f..5839330 100644 --- a/compose/validation.yml +++ b/compose/validation.yml @@ -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 diff --git a/config/authorization/config.ttl b/config/authorization/config.ttl index 19f322f..1155013 100644 --- a/config/authorization/config.ttl +++ b/config/authorization/config.ttl @@ -55,6 +55,7 @@ ext:decideAuthorizationPolicy a odrl:Set ; ext:allowReadForAiSlice , ext:allowReadOsloOrgsForHumanValidation , ext:allowReadForHumanValidation , + ext:allowQuestionAnsweringReadForHumanValidation, ext:allowWriteForHumanValidation , ext:allowReadForQuestionAnswering , ext:allowWriteForQuestionAnswering , @@ -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 ; @@ -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 . diff --git a/config/resources/annotation.lisp b/config/resources/annotation.lisp index 5d2afa5..995b5a6 100644 --- a/config/resources/annotation.lisp +++ b/config/resources/annotation.lisp @@ -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"))) @@ -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")