Install latest version from maven central repository
<dependency>
<groupId>io.github.odre-framework</groupId>
<artifactId>odre-core</artifactId>
<version>0.1.2</version>
</dependency>
String policy = // ODRL policy goes here
Map<String, Object> interpolations = new HashMap<>();
ODRE odre = new ODRE();
Map<String, String> usage = odre.enforce(policy, interpolations);
Operators | Implementation status | # |
---|---|---|
eq | supported | ✓ |
gt | supported | ✓ |
gteq | supported | ✓ |
lt | supported | ✓ |
lteq | supported | ✓ |
neq | supported | ✓ |
hasPart | unsupported | ✗ |
isA | unsupported | ✗ |
isAllOf | unsupported | ✗ |
isAnyOf | unsupported | ✗ |
isNoneOf | unsupported | ✗ |
isPartOf | unsupported | ✗ |
- The available implemented Left Operands from those specified in the ODRL Vocabulary & Expression 2.2 are the following:
Left Operands | Implementation status | # |
---|---|---|
absolutePosition | unsupported | ✗ |
absoluteSize | unsupported | ✗ |
absoluteSpatialPosition | unsupported | ✗ |
absoluteTemporalPosition | unsupported | ✗ |
count | unsupported | ✗ |
dateTime | supported | ✓ |
delayPeriod | unsupported | ✗ |
deliveryChannel | unsupported | ✗ |
device | unsupported | ✗ |
elapsedTime | unsupported | ✗ |
event | unsupported | ✗ |
fileFormat | unsupported | ✗ |
industry | unsupported | ✗ |
language | unsupported | ✗ |
media | unsupported | ✗ |
meteredTime | unsupported | ✗ |
payAmount | unsupported | ✗ |
percentage | unsupported | ✗ |
product | unsupported | ✗ |
purpose | unsupported | ✗ |
recipient | unsupported | ✗ |
relativePosition | unsupported | ✗ |
relativeSize | unsupported | ✗ |
relativeSpatialPosition | unsupported | ✗ |
relativeTemporalPosition | unsupported | ✗ |
resolution | unsupported | ✗ |
spatial | unsupported | ✗ |
spatialCoordinates | unsupported | ✗ |
system | unsupported | ✗ |
systemDevice | unsupported | ✗ |
timeInterval | unsupported | ✗ |
unitOfCount | unsupported | ✗ |
version | unsupported | ✗ |
virtualLocation | unsupported | ✗ |
- The available implemented Right Operands from those specified in the ODRL Vocabulary & Expression 2.2 are the following:
Right Operands | Implementation status | # |
---|---|---|
policyUsage | unsupported | ✗ |
- The available implemented Right Operands from those specified in the ODRL Vocabulary & Expression 2.2 are the following:
Actions | Implementation status | # |
---|---|---|
policyUsage | unsupported | ✗ |
@misc{cimmino2024opendigitalrightsenforcement,
title={Open Digital Rights Enforcement Framework (ODRE): from descriptive to enforceable policies},
author={Andrea Cimmino and Juan Cano-Benito and Raúl García-Castro},
year={2024},
eprint={2409.17602},
archivePrefix={arXiv},
primaryClass={cs.CR},
url={https://arxiv.org/abs/2409.17602},
}