From eea4d4144f1e4dc56652dee82e5f3a39a70bb68c Mon Sep 17 00:00:00 2001 From: Daniil Palagin Date: Fri, 13 Sep 2024 17:41:34 +0200 Subject: [PATCH] [kbss-cvut/record-manager-ui#202] Implement Role group configuration by model.ttl --- src/main/resources/model.ttl | 134 +++++++++++++++++++++++++---------- 1 file changed, 97 insertions(+), 37 deletions(-) diff --git a/src/main/resources/model.ttl b/src/main/resources/model.ttl index 770cf23e..6ded31c5 100644 --- a/src/main/resources/model.ttl +++ b/src/main/resources/model.ttl @@ -70,7 +70,6 @@ rm:is-member-of rdf:type owl:ObjectProperty ; rm:role-group rdf:type owl:ObjectProperty ; rdfs:subPropertyOf rm:relates-to . - ### http://onto.fel.cvut.cz/ontologies/record-manager/relates-to rm:relates-to rdf:type owl:ObjectProperty . @@ -84,6 +83,16 @@ rm:has-phase rdf:type owl:ObjectProperty ; rdfs:subPropertyOf rdf:type ; rdfs:label "has phase"@en . +### http://onto.fel.cvut.cz/ontologies/record-manager/has-role-group +rm:has-role-group rdf:type owl:ObjectProperty ; + rdfs:subPropertyOf rm:relates-to; + rdfs:label "has role group"@en. + +### http://onto.fel.cvut.cz/ontologies/record-manager/has-role +rm:has-role rdf:type owl:ObjectProperty ; + rdfs:subPropertyOf rm:relates-to; + rdfs:label "has role"@en. + ################################################################# # Data properties @@ -135,7 +144,6 @@ rm:token rdf:type owl:DatatypeProperty . ### http://xmlns.com/foaf/0.1/mbox rdf:type owl:DatatypeProperty . - ################################################################# # Classes ################################################################# @@ -203,55 +211,107 @@ rm:rejected-record-phase rdf:type owl:Class ; rdfs:subClassOf rm:record-phase ; rdfs:label "rejected record phase"@en . -### Generated by the OWL API (version 4.2.8.20170104-2310) https://github.com/owlcs/owlapi +### http://onto.fel.cvut.cz/ontologies/record-manager/role +rm:role rdf:type owl:Class; + rdfs:label "user role"@en . + +### http://onto.fel.cvut.cz/ontologies/record-manager/role-group +rm:role-group rdf:type owl:Class; + rdfs:label "user role group" . + ################################################################# -# New Roles +# Groups ################################################################# +### http://onto.fel.cvut.cz/ontologies/record-manager/operator-role-group +rm:operator-role-group rdf:type owl:NamedIndividual, rm:role-group; + rm:has-role rm:complete-records-role; + rdfs:label "operator role group"@en . + +### http://onto.fel.cvut.cz/ontologies/record-manager/operator-admin-role-group +rm:operator-admin-role-group rdf:type owl:NamedIndividual, rm:role-group ; + rm:has-role rm:complete-records-role , + rm:delete-organization-records-role , + rm:edit-organization-records-role , + rm:view-organization-records-role , + rm:edit-users-role , + rm:import-codelists-role , + rm:publish-records-role , + rm:reject-records-role ; + rdfs:label "operator-admin role group"@en . + +### http://onto.fel.cvut.cz/ontologies/record-manager/supplier-role-group +rm:supplier-role-group rdf:type owl:NamedIndividual, rm:role-group ; + rm:has-role rm:complete-records-role ; + rdfs:label "supplier role group"@en . + +### http://onto.fel.cvut.cz/ontologies/record-manager/operator-admin-role-group +rm:supplier-admin-role-group rdf:type owl:NamedIndividual, rm:role-group; + rm:has-role rm:complete-records-role , + rm:delete-organization-records-role , + rm:edit-organization-records-role , + rm:view-organization-records-role , + rm:edit-users-role , + rm:import-codelists-role , + rm:reject-records-role , + rm:delete-all-records-role , + rm:edit-all-records-role , + rm:view-all-records-role ; + rdfs:label "supplier-admin role group"@en . + +### http://onto.fel.cvut.cz/ontologies/record-manager/external-user-role-group +rm:external-user-role-group rdf:type owl:NamedIndividual, rm:role-group; + rm:has-role rm:complete-records-role; + rdfs:label "external user role group"@en . + -### http://onto.fel.cvut.cz/ontologies/record-manager/complete-records -rm:complete-records rdf:type owl:Class ; - rdfs:label "Complete Records"@en . +################################################################# +# Roles +################################################################# -### http://onto.fel.cvut.cz/ontologies/record-manager/delete-all-records -rm:delete-all-records rdf:type owl:Class ; - rdfs:label "Delete All Records"@en . +### http://onto.fel.cvut.cz/ontologies/record-manager/complete-records-role +rm:complete-records-role rdf:type owl:NamedIndividual, rm:role ; + rdfs:label "complete records role"@en . -### http://onto.fel.cvut.cz/ontologies/record-manager/edit-all-records -rm:edit-all-records rdf:type owl:Class ; - rdfs:label "Edit All Records"@en . +### http://onto.fel.cvut.cz/ontologies/record-manager/delete-all-records-role +rm:delete-all-records-role rdf:type owl:NamedIndividual, rm:role ; + rdfs:label "delete all records role"@en . -### http://onto.fel.cvut.cz/ontologies/record-manager/view-all-records -rm:view-all-records rdf:type owl:Class ; - rdfs:label "View All Records"@en . +### http://onto.fel.cvut.cz/ontologies/record-manager/edit-all-records-role +rm:edit-all-records-role rdf:type owl:NamedIndividual, rm:role ; + rdfs:label "edit all records role"@en . -### http://onto.fel.cvut.cz/ontologies/record-manager/delete-organization-records -rm:delete-organization-records rdf:type owl:Class ; - rdfs:label "Delete Organization Records"@en . +### http://onto.fel.cvut.cz/ontologies/record-manager/view-all-records-role +rm:view-all-records-role rdf:type owl:NamedIndividual, rm:role ; + rdfs:label "view all records role"@en . -### http://onto.fel.cvut.cz/ontologies/record-manager/edit-organization-records -rm:edit-organization-records rdf:type owl:Class ; - rdfs:label "Edit Organization Records"@en . +### http://onto.fel.cvut.cz/ontologies/record-manager/delete-organization-records-role +rm:delete-organization-records-role rdf:type owl:NamedIndividual, rm:role ; + rdfs:label "delete organization records role"@en . -### http://onto.fel.cvut.cz/ontologies/record-manager/view-organization-records -rm:view-organization-records rdf:type owl:Class ; - rdfs:label "View Organization Records"@en . +### http://onto.fel.cvut.cz/ontologies/record-manager/edit-organization-records-role +rm:edit-organization-records-role rdf:type owl:NamedIndividual, rm:role; + rdfs:label "edit organization records role"@en . -### http://onto.fel.cvut.cz/ontologies/record-manager/edit-users -rm:edit-users rdf:type owl:Class ; - rdfs:label "Edit Users"@en . +### http://onto.fel.cvut.cz/ontologies/record-manager/view-organization-records-role +rm:view-organization-records-role rdf:type owl:NamedIndividual, rm:role; + rdfs:label "view organization records role"@en . -### http://onto.fel.cvut.cz/ontologies/record-manager/import-codelists -rm:import-codelists rdf:type owl:Class ; - rdfs:label "Import Codelists"@en . +### http://onto.fel.cvut.cz/ontologies/record-manager/edit-users-role +rm:edit-users-role rdf:type owl:NamedIndividual, rm:role; + rdfs:label "edit users role"@en . -### http://onto.fel.cvut.cz/ontologies/record-manager/publish-records -rm:publish-records rdf:type owl:Class ; - rdfs:label "Publish Records"@en . +### http://onto.fel.cvut.cz/ontologies/record-manager/import-codelists-role +rm:import-codelists-role rdf:type owl:NamedIndividual, rm:role; + rdfs:label "import codelists role"@en . -### http://onto.fel.cvut.cz/ontologies/record-manager/reject-records -rm:reject-records rdf:type owl:Class ; - rdfs:label "Reject Records"@en . +### http://onto.fel.cvut.cz/ontologies/record-manager/publish-records-role +rm:publish-records-role rdf:type owl:NamedIndividual, rm:role; + rdfs:label "publish records role"@en . +### http://onto.fel.cvut.cz/ontologies/record-manager/reject-records-role +rm:reject-records-role rdf:type owl:NamedIndividual, rm:role; + rdfs:label "reject records role"@en . +### Generated by the OWL API (version 4.2.8.20170104-2310) https://github.com/owlcs/owlapi \ No newline at end of file