|
1 | 1 | import { BadRequestHttpError, DC, RDF } from '@solid/community-server'; |
2 | 2 | import { getLoggerFor } from 'global-logger-factory'; |
3 | 3 | import { DataFactory, Quad, Store, Writer } from 'n3'; |
4 | | -import { EyeReasoner, ODRLEngineMultipleSteps, ODRLEvaluator } from 'odrl-evaluator'; |
| 4 | +import { EyelingReasoner, EyeReasoner, ODRLEngineMultipleSteps, ODRLEvaluator } from 'odrl-evaluator'; |
5 | 5 | import { CLIENTID, WEBID } from '../../credentials/Claims'; |
6 | 6 | import { ClaimSet } from '../../credentials/ClaimSet'; |
7 | 7 | import { basicPolicy } from '../../ucp/policy/ODRL'; |
@@ -41,16 +41,11 @@ export class OdrlAuthorizer implements Authorizer { |
41 | 41 | * |
42 | 42 | * |
43 | 43 | * @param policies - A store containing the ODRL policy rules. |
44 | | - * @param eyePath - The path to run the local EYE reasoner, if there is one. |
45 | 44 | */ |
46 | 45 | constructor( |
47 | 46 | private readonly policies: UCRulesStorage, |
48 | | - eyePath?: string, |
49 | 47 | ) { |
50 | | - const engine = eyePath ? |
51 | | - new ODRLEngineMultipleSteps({ reasoner: new EyeReasoner(eyePath, ["--quiet", "--nope", "--pass-only-new"]) }) : |
52 | | - new ODRLEngineMultipleSteps(); |
53 | | - this.odrlEvaluator = new ODRLEvaluator(engine); |
| 48 | + this.odrlEvaluator = new ODRLEvaluator(new ODRLEngineMultipleSteps({ reasoner: new EyelingReasoner()})); |
54 | 49 | this.strategy = new PrioritizeProhibitionStrategy(); |
55 | 50 | } |
56 | 51 |
|
|
0 commit comments