feat: store ODRL authorization policy and allow public read#92
Open
mirdono wants to merge 3 commits intodevelopmentfrom
Open
feat: store ODRL authorization policy and allow public read#92mirdono wants to merge 3 commits intodevelopmentfrom
mirdono wants to merge 3 commits intodevelopmentfrom
Conversation
We will store our ODRL authorization in the triplestore so that it can be consumed from their by others. This first extends the policy with the appropriate entities to allow public read access to the policy data that will be inserted.
Add a migration containing a copy of the ODRL authorization policy, thereby inserting this into the triplestore. This migration is just a copy of sparql-parser's `config.ttl`, with an unnecessary comment removed to avoid confusion.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Insert the app's authorization policy into the triplestore and the data publicly readable.
A migration inserts the data into a new graph,
http://mu.semte.ch/graphs/odrl-authorization-policy, to keep it separate from other data and to make any future updates easier.The sparql-parser configuration is extended with entities covering the different resources types in an ODRL authorization policy (i.e. itself). Note, there was already an asset defined for SHACL node shapes, so this was reused.
How to test
databaseservice to load the updated policymigrationsservice to execute the added migrationhttp://yasgui.localhost/mock-loginRelated tickets