diff --git a/scripts/migration/Classes/Query/Query_Builder.py b/scripts/migration/Classes/Query/Query_Builder.py index 4b350b3964..4a94147226 100644 --- a/scripts/migration/Classes/Query/Query_Builder.py +++ b/scripts/migration/Classes/Query/Query_Builder.py @@ -257,7 +257,11 @@ def generateQueries(self): ?permission webacl:accessTo ?resource ; webacl:mode webacl:Read ; webacl:agent ?accessRights . - }} . + }} . + OPTIONAL {{ ?permission_write webacl:accessTo ?resource ; + webacl:mode webacl:Write ; + webacl:agent ?accessRights . filter (not exists {{?permission_write webacl:accessTo ?resource ; + webacl:mode webacl:Read }})}} . OPTIONAL {{ ?resource acl:hasEmbargo ?embargo . OPTIONAL {{ ?embargo acl:embargoReleaseDate ?available }} .