Skip to content

Commit c149954

Browse files
committed
feat: introduce changelog and releasenotes + update package.json for version 0.3.0
1 parent 09aede5 commit c149954

File tree

8 files changed

+60
-9
lines changed

8 files changed

+60
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TODO

RELEASE_NOTES.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# ODRL Evaluator
2+
3+
## v0.3.0
4+
5+
### New features
6+
7+
- Support for the **Dynamic ODRL Specification** introduced in [**Interoperable and Continuous Usage Control Enforcement in Dataspaces**](https://ceur-ws.org/Vol-3705/paper10.pdf) (for more information, checkout https://w3id.org/force/odrl3proposal)
8+
- Creation of the `materializePolicy` in `src/evaluator/DynamicConstraint.ts`
9+
- Creation of vocabulary util for common vocabularies (including ODRL)
10+
- `util/Vocabularies.ts`
11+
- Support for local [eye](https://github.com/eyereasoner/eye) version on windows machines
12+
- update to `src/reasoner/EyeReasoner.ts`
13+
14+
## v0.2.2
15+
16+
### New features
17+
18+
- Add integration tests based on the [ODRL Test Suite](https://w3id.org/force/test-suite) to ensure correctness.
19+
20+
## v0.2.1
21+
22+
Introduces a breaking change regarding the identifiers of produced Compliance Report:
23+
24+
Generating compliance reports now uses `https://w3id.org/force/compliance-report#` as prefix instead of `http://example.com/report/temp/`.
25+
26+
## v0.2.0
27+
28+
### New features
29+
30+
- Support browser support:
31+
- Adding `src/index.browser.ts` with typescript classes that do not rely on [NodeJS](https://nodejs.org/en) specific libraries or functions (such as `fs` for reading files).
32+
- In `package.json` there is now a `browser` property which ensures browsers use the correct index file for this package.
33+
34+
## v0.1.1
35+
36+
### New features
37+
38+
- Introduction of tests via [Jest](https://jestjs.io/).
39+
- Introduction of Continious Integration (CI) using [Github Actions](https://github.com/features/actions).
40+
41+
## v0.1.0
42+
43+
### New features
44+
45+
- The ODRL Evaluator now supports all [ODRL Logical Operands](https://www.w3.org/TR/odrl-model/#constraint-logical).
46+
47+
## v0.0.1
48+
49+
First release of the ODRL Evaluator that produces a [Compliance Report](https://w3id.org/force/compliance-report) from an [ODRL Policy](https://www.w3.org/TR/odrl-model/#policy) and the [State of the World](https://w3id.org/force/sotw).
50+

demo/dynamic-policy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const policy = `
88
@prefix odrl: <http://www.w3.org/ns/odrl/2/> .
99
@prefix ex: <http://example.org/> .
1010
@prefix dct: <http://purl.org/dc/terms/> .
11-
@prefix odrluc: <https://w3id.org/force/odrlproposed#> .
11+
@prefix odrluc: <https://w3id.org/force/odrl3proposal#> .
1212
1313
<urn:uuid:32127a3f-5296-4cc6-b9d6-ef6c647a721d> a odrl:Set ;
1414
odrl:uid <urn:uuid:32127a3f-5296-4cc6-b9d6-ef6c647a721d> ;

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "odrl-evaluator",
3-
"version": "0.2.2",
3+
"version": "0.3.0",
44
"description": "An open implementation of an ODRL Evaluator that evaluates ODRL policies by generating Compliance Reports",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/util/Vocabularies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const ODRL = createVocabulary(
3535
'read'
3636
);
3737

38-
export const ODRLUC = createVocabulary("https://w3id.org/force/odrlproposed#",
38+
export const ODRLUC = createVocabulary("https://w3id.org/force/odrl3proposal#",
3939
"OperandReference",
4040
"reference",
4141
"path"

test/integration/ODRL-Evaluator.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('The default ODRL evaluator', () => {
7272
@prefix odrl: <http://www.w3.org/ns/odrl/2/> .
7373
@prefix ex: <http://example.org/> .
7474
@prefix dct: <http://purl.org/dc/terms/> .
75-
@prefix odrluc: <https://w3id.org/force/odrlproposed#> .
75+
@prefix odrluc: <https://w3id.org/force/odrl3proposal#> .
7676
7777
<urn:uuid:32127a3f-5296-4cc6-b9d6-ef6c647a721d> a odrl:Set ;
7878
odrl:uid <urn:uuid:32127a3f-5296-4cc6-b9d6-ef6c647a721d> ;

test/unit/evaluator/DynamicConstraint.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('The Dynamic Constraints materialize function', () => {
77
@prefix odrl: <http://www.w3.org/ns/odrl/2/> .
88
@prefix ex: <http://example.org/> .
99
@prefix dct: <http://purl.org/dc/terms/> .
10-
@prefix odrluc: <https://w3id.org/force/odrlproposed#> .
10+
@prefix odrluc: <https://w3id.org/force/odrl3proposal#> .
1111
1212
<urn:uuid:32127a3f-5296-4cc6-b9d6-ef6c647a721d> a odrl:Set ;
1313
odrl:uid <urn:uuid:32127a3f-5296-4cc6-b9d6-ef6c647a721d> ;
@@ -70,7 +70,7 @@ ex:externalSource ex:updatedValue "2018-02-12T11:20:10.999Z"^^<http://www.w3.org
7070
it("throws an error when no external source property is provided.", () => {
7171
const operandReference = `
7272
@prefix ex: <http://example.org/> .
73-
@prefix odrluc: <https://w3id.org/force/odrlproposed#> .
73+
@prefix odrluc: <https://w3id.org/force/odrl3proposal#> .
7474
ex:operandReference1 a odrluc:OperandReference ;
7575
odrluc:path ex:updatedValue .`
7676

@@ -81,7 +81,7 @@ ex:operandReference1 a odrluc:OperandReference ;
8181
it("throws nope when no path property is provided.", () => {
8282
const operandReference = `
8383
@prefix ex: <http://example.org/> .
84-
@prefix odrluc: <https://w3id.org/force/odrlproposed#> .
84+
@prefix odrluc: <https://w3id.org/force/odrl3proposal#> .
8585
ex:operandReference1 a odrluc:OperandReference ;
8686
odrluc:reference ex:externalSource .`
8787

0 commit comments

Comments
 (0)