{"id":28387404,"url":"https://github.com/nitmws/odrl-wprofile-evaltest1","last_synced_at":"2025-07-31T08:04:25.355Z","repository":{"id":78426568,"uuid":"103443252","full_name":"nitmws/odrl-wprofile-evaltest1","owner":"nitmws","description":"ODRL - with Profile - evaluator for test purposes","archived":false,"fork":false,"pushed_at":"2018-06-25T12:55:46.000Z","size":119,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T20:44:20.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nitmws.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-09-13T19:43:55.000Z","updated_at":"2024-03-22T12:26:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"68473603-a85f-41d1-8b69-86481d1d06b8","html_url":"https://github.com/nitmws/odrl-wprofile-evaltest1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nitmws/odrl-wprofile-evaltest1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitmws%2Fodrl-wprofile-evaltest1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitmws%2Fodrl-wprofile-evaltest1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitmws%2Fodrl-wprofile-evaltest1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitmws%2Fodrl-wprofile-evaltest1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitmws","download_url":"https://codeload.github.com/nitmws/odrl-wprofile-evaltest1/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitmws%2Fodrl-wprofile-evaltest1/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268009699,"owners_count":24180458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-30T17:40:34.889Z","updated_at":"2025-07-31T08:04:25.341Z","avatar_url":"https://github.com/nitmws.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ODRL with Profile - Evaluator Testground 1\n\n[ODRL](https://www.w3.org/2016/poe/charter) - Open Digital Rights Language - has an Information Model and this model defines how to retrieve relevant rights information from a Rule:\n* Is the user allowed to exercise a Permission with a specific asset\n* Does the user's use of an asset align with a Prohibition or violate it\n* Does a user fulfill an Obligation related to an asset\n\nTo get such final results some components of a Rule need to be evaluated and their results combined by an ODRL processor - this feature is called **ODRL Evaluator** by this project.\n\nThis project implements all required evaluation steps:\n* are constraints of a Rule Satisfied (or not)\n* are refinements of the action of a Rule Satisfied (or not)\n* has the action of a Duty been exercised (or not), including have its refinements been Satisfied\n* has the action of a Prohibition been exercised (or not), including have its refinements been Satisfied\n* have required consequences of a Duty been Fulfilled (or Not Fulfilled)\n* have required remedies of a Prohibition been Fulfilled (or Not Fulfilled)\n\nAll these evaluations are defined in detail by the ODRL Information Model document.\n\nA goal of this project is to support all example policies of the ODRL Information Model document's [Candidate Recommendation (CR)](https://www.w3.org/TR/odrl-model/) version. \n\nAs the evaluation of some components require a context (= what action on what asset should be taken by whom ...) and as this project's testground has no context driven be a production environment this implementation supports presetting values relevant for the evaluation by a configuration file including:\n* the filename of the JSON-LD providing the ODRL Policy\n* a free-text description of the test case\n* the identifier of the to-be-tested Rule inside the Policy\n* presets of values like is a constraint or a refinement satisfied or an action exercised\n\nBase on such a defined context the identified Rule is evaluated - step by step - and finally a state for the Rule as a whole is generated. To make the process visible the evaluation of an ODRL Rule is documented step by step.\n\n### Documentation\n\nMore details are documented by these files:\n* /evaluator/evaluationLogic.md : how components of a Rule are evaluated and how results are evaluated for the Rule's state\n* /testdata/testconfig.md : the configuation file\n\nOverview of files and folders of this project:\n* main.js: the starting point of this project. Run it as Command Line script (node main.js)\n* README.md: this file\n* package.json: configuration file required for Node JS and NPM\n* /evaltest: JS file(s) running the test(s)\n* /evaluator: JS file of the evaluator, file README.md documenting the logic implemented by this evaluator.\n* /model: JS files providing identifiers of Things defined by the ODRL Information Model or an ODRL Profile\n* /services: JS files supporting the project\n* /testdata: JSON-LD files with ODRL Policy data, the test configuration file (YAML)\n* /testdataout: the files created by the ODRL Evaluator (is ignored by git)\n* /testdataout_archive: subfolders holding data of the /testdataout folder of a specific test sequence. (Folder names are dates of running a test suite.)\n\n### Errors, Issues, Feedback\n\nTo share errors, issues or any other feedback please use the [Issues feature of the Github repository](https://github.com/nitmws/odrl-wprofile-evaltest1/issues).\n\n### State, Timeline, Rights\n\nThe current state of this project is: complete\n* the evaluation of a Permission is complete\n* the evaluation of a Prohibition is complete\n* the evaluation of an Obligation is complete\n\n\nThis project is published under the [MIT](https://opensource.org/licenses/MIT) license and copyrighted by [Michael Steidl/NewsIT](https://www.linkedin.com/in/michaelwsteidl)\n\nThis project was adopted by [IPTC](https://iptc.org) as test implementation of the ODRL Candidate Release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitmws%2Fodrl-wprofile-evaltest1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitmws%2Fodrl-wprofile-evaltest1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitmws%2Fodrl-wprofile-evaltest1/lists"}