@twin.org/standards-w3c-odrl 0.0.1-next.43 → 0.0.1-next.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +2909 -53
- package/dist/esm/index.mjs +2909 -53
- package/dist/types/dataTypes/odrlDataTypes.d.ts +13 -0
- package/dist/types/index.d.ts +4 -1
- package/dist/types/models/IOdrlAgreement.d.ts +23 -0
- package/dist/types/models/IOdrlConstraint.d.ts +2 -3
- package/dist/types/models/IOdrlOffer.d.ts +18 -0
- package/dist/types/models/IOdrlSet.d.ts +12 -0
- package/dist/types/models/odrlContextType.d.ts +3 -3
- package/dist/types/models/odrlContexts.d.ts +2 -14
- package/dist/types/models/types/odrlTypes.d.ts +8 -0
- package/docs/changelog.md +30 -0
- package/docs/reference/classes/OdrlDataTypes.md +37 -0
- package/docs/reference/index.md +7 -2
- package/docs/reference/interfaces/IOdrlAgreement.md +180 -0
- package/docs/reference/interfaces/IOdrlConstraint.md +2 -2
- package/docs/reference/interfaces/IOdrlOffer.md +180 -0
- package/docs/reference/interfaces/IOdrlPolicy.md +6 -0
- package/docs/reference/interfaces/IOdrlSet.md +180 -0
- package/docs/reference/type-aliases/OdrlContextType.md +1 -1
- package/docs/reference/variables/OdrlContexts.md +4 -22
- package/docs/reference/variables/OdrlTypes.md +12 -0
- package/package.json +5 -3
- package/dist/types/models/types/dataTypes.d.ts +0 -37
- package/docs/reference/type-aliases/DataType.md +0 -5
- package/docs/reference/variables/DataType.md +0 -49
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var dataCore = require('@twin.org/data-core');
|
|
4
|
+
var dataJsonLd = require('@twin.org/data-json-ld');
|
|
5
|
+
|
|
3
6
|
// Copyright 2024 IOTA Stiftung.
|
|
4
7
|
// SPDX-License-Identifier: Apache-2.0.
|
|
5
8
|
/**
|
|
@@ -10,23 +13,11 @@ const OdrlContexts = {
|
|
|
10
13
|
/**
|
|
11
14
|
* The context root for ODRL.
|
|
12
15
|
*/
|
|
13
|
-
|
|
16
|
+
ContextRedirect: "https://www.w3.org/ns/odrl.jsonld",
|
|
14
17
|
/**
|
|
15
18
|
* The context root for ODRL vocabulary.
|
|
16
19
|
*/
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The context root for Dublin Core Terms.
|
|
20
|
-
*/
|
|
21
|
-
ContextDcTerms: "https://purl.org/dc/terms/",
|
|
22
|
-
/**
|
|
23
|
-
* The context root for RDF.
|
|
24
|
-
*/
|
|
25
|
-
ContextRdf: "https://www.w3.org/1999/02/22-rdf-syntax-ns#",
|
|
26
|
-
/**
|
|
27
|
-
* The context root for XSD.
|
|
28
|
-
*/
|
|
29
|
-
ContextXsd: "https://www.w3.org/2001/XMLSchema#"
|
|
20
|
+
ContextRoot: "https://www.w3.org/ns/odrl/2/"
|
|
30
21
|
};
|
|
31
22
|
|
|
32
23
|
// Copyright 2024 IOTA Stiftung.
|
|
@@ -95,7 +86,15 @@ const OdrlTypes = {
|
|
|
95
86
|
/**
|
|
96
87
|
* LogicalConstraint type.
|
|
97
88
|
*/
|
|
98
|
-
LogicalConstraint: "LogicalConstraint"
|
|
89
|
+
LogicalConstraint: "LogicalConstraint",
|
|
90
|
+
/**
|
|
91
|
+
* ContextType.
|
|
92
|
+
*/
|
|
93
|
+
ContextType: "ContextType",
|
|
94
|
+
/**
|
|
95
|
+
* PolicyMetadata type.
|
|
96
|
+
*/
|
|
97
|
+
PolicyMetadata: "PolicyMetadata"
|
|
99
98
|
};
|
|
100
99
|
|
|
101
100
|
// Copyright 2024 IOTA Stiftung.
|
|
@@ -494,43 +493,6 @@ const ActionTypes = {
|
|
|
494
493
|
Watermark: "watermark"
|
|
495
494
|
};
|
|
496
495
|
|
|
497
|
-
// Copyright 2024 IOTA Stiftung.
|
|
498
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
499
|
-
/**
|
|
500
|
-
* The types for ODRL Data Types.
|
|
501
|
-
*/
|
|
502
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
503
|
-
const DataType = {
|
|
504
|
-
/**
|
|
505
|
-
* String type.
|
|
506
|
-
*/
|
|
507
|
-
String: "xsd:string",
|
|
508
|
-
/**
|
|
509
|
-
* Boolean type.
|
|
510
|
-
*/
|
|
511
|
-
Boolean: "xsd:boolean",
|
|
512
|
-
/**
|
|
513
|
-
* Integer type.
|
|
514
|
-
*/
|
|
515
|
-
Integer: "xsd:integer",
|
|
516
|
-
/**
|
|
517
|
-
* Decimal type.
|
|
518
|
-
*/
|
|
519
|
-
Decimal: "xsd:decimal",
|
|
520
|
-
/**
|
|
521
|
-
* Double type.
|
|
522
|
-
*/
|
|
523
|
-
Double: "xsd:double",
|
|
524
|
-
/**
|
|
525
|
-
* Date type.
|
|
526
|
-
*/
|
|
527
|
-
Date: "xsd:date",
|
|
528
|
-
/**
|
|
529
|
-
* DateTime type.
|
|
530
|
-
*/
|
|
531
|
-
DateTime: "xsd:dateTime"
|
|
532
|
-
};
|
|
533
|
-
|
|
534
496
|
// Copyright 2024 IOTA Stiftung.
|
|
535
497
|
// SPDX-License-Identifier: Apache-2.0.
|
|
536
498
|
/**
|
|
@@ -896,12 +858,2906 @@ const RightOperandTypes = {
|
|
|
896
858
|
// ... other right operand types ...
|
|
897
859
|
};
|
|
898
860
|
|
|
861
|
+
var type$f = "object";
|
|
862
|
+
var properties$f = {
|
|
863
|
+
"@context": {
|
|
864
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
865
|
+
},
|
|
866
|
+
"@id": {
|
|
867
|
+
type: "string",
|
|
868
|
+
description: "Direct action identifier. Used in simple action references."
|
|
869
|
+
},
|
|
870
|
+
"@included": {
|
|
871
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
872
|
+
},
|
|
873
|
+
"@graph": {
|
|
874
|
+
anyOf: [
|
|
875
|
+
{
|
|
876
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
type: "array",
|
|
880
|
+
items: {
|
|
881
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
]
|
|
885
|
+
},
|
|
886
|
+
"@nest": {
|
|
887
|
+
anyOf: [
|
|
888
|
+
{
|
|
889
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
type: "array",
|
|
893
|
+
items: {
|
|
894
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
]
|
|
898
|
+
},
|
|
899
|
+
"@type": {
|
|
900
|
+
anyOf: [
|
|
901
|
+
{
|
|
902
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
type: "array",
|
|
906
|
+
items: {
|
|
907
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
]
|
|
911
|
+
},
|
|
912
|
+
"@reverse": {
|
|
913
|
+
type: "object",
|
|
914
|
+
additionalProperties: {
|
|
915
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
"@index": {
|
|
919
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
920
|
+
},
|
|
921
|
+
"rdf:value": {
|
|
922
|
+
type: "object",
|
|
923
|
+
properties: {
|
|
924
|
+
"@id": {
|
|
925
|
+
type: "string"
|
|
926
|
+
}
|
|
927
|
+
},
|
|
928
|
+
required: [
|
|
929
|
+
"@id"
|
|
930
|
+
],
|
|
931
|
+
additionalProperties: false,
|
|
932
|
+
description: "The value/identifier of the action. Used in complex action definitions."
|
|
933
|
+
},
|
|
934
|
+
refinement: {
|
|
935
|
+
anyOf: [
|
|
936
|
+
{
|
|
937
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
$ref: "https://schema.twindev.org/odrl/OdrlLogicalConstraint"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
type: "array",
|
|
944
|
+
items: {
|
|
945
|
+
anyOf: [
|
|
946
|
+
{
|
|
947
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
$ref: "https://schema.twindev.org/odrl/OdrlLogicalConstraint"
|
|
951
|
+
}
|
|
952
|
+
]
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
],
|
|
956
|
+
description: "Refinements applied to the action."
|
|
957
|
+
},
|
|
958
|
+
includedIn: {
|
|
959
|
+
$ref: "https://schema.twindev.org/odrl/ActionType",
|
|
960
|
+
description: "Reference to the action this action is included in."
|
|
961
|
+
},
|
|
962
|
+
implies: {
|
|
963
|
+
type: "array",
|
|
964
|
+
items: {
|
|
965
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
966
|
+
},
|
|
967
|
+
description: "References to actions this action implies."
|
|
968
|
+
}
|
|
969
|
+
};
|
|
970
|
+
var additionalProperties$f = {
|
|
971
|
+
anyOf: [
|
|
972
|
+
{
|
|
973
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
type: "array"
|
|
992
|
+
}
|
|
993
|
+
]
|
|
994
|
+
};
|
|
995
|
+
var description$g = "Interface for ODRL Actions.";
|
|
996
|
+
var OdrlActionSchema = {
|
|
997
|
+
type: type$f,
|
|
998
|
+
properties: properties$f,
|
|
999
|
+
additionalProperties: additionalProperties$f,
|
|
1000
|
+
description: description$g
|
|
1001
|
+
};
|
|
1002
|
+
|
|
1003
|
+
var type$e = "object";
|
|
1004
|
+
var properties$e = {
|
|
1005
|
+
"@context": {
|
|
1006
|
+
$ref: "https://schema.twindev.org/odrl/OdrlContextType",
|
|
1007
|
+
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
1008
|
+
},
|
|
1009
|
+
"@id": {
|
|
1010
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1011
|
+
},
|
|
1012
|
+
"@included": {
|
|
1013
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1014
|
+
},
|
|
1015
|
+
"@graph": {
|
|
1016
|
+
anyOf: [
|
|
1017
|
+
{
|
|
1018
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
type: "array",
|
|
1022
|
+
items: {
|
|
1023
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
]
|
|
1027
|
+
},
|
|
1028
|
+
"@nest": {
|
|
1029
|
+
anyOf: [
|
|
1030
|
+
{
|
|
1031
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
type: "array",
|
|
1035
|
+
items: {
|
|
1036
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
]
|
|
1040
|
+
},
|
|
1041
|
+
"@type": {
|
|
1042
|
+
type: "string",
|
|
1043
|
+
"const": "Agreement",
|
|
1044
|
+
description: "The type must be \"Agreement\"."
|
|
1045
|
+
},
|
|
1046
|
+
"@reverse": {
|
|
1047
|
+
type: "object",
|
|
1048
|
+
additionalProperties: {
|
|
1049
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
"@index": {
|
|
1053
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1054
|
+
},
|
|
1055
|
+
uid: {
|
|
1056
|
+
type: "string",
|
|
1057
|
+
description: "The unique identifier for the policy. Must be an IRI."
|
|
1058
|
+
},
|
|
1059
|
+
profile: {
|
|
1060
|
+
anyOf: [
|
|
1061
|
+
{
|
|
1062
|
+
type: "string"
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
type: "array",
|
|
1066
|
+
items: {
|
|
1067
|
+
type: "string"
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
],
|
|
1071
|
+
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
1072
|
+
},
|
|
1073
|
+
assigner: {
|
|
1074
|
+
anyOf: [
|
|
1075
|
+
{
|
|
1076
|
+
type: "string"
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
1080
|
+
}
|
|
1081
|
+
],
|
|
1082
|
+
description: "The assigner of the agreement. Required for Agreement policies."
|
|
1083
|
+
},
|
|
1084
|
+
assignee: {
|
|
1085
|
+
anyOf: [
|
|
1086
|
+
{
|
|
1087
|
+
type: "string"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
1091
|
+
}
|
|
1092
|
+
],
|
|
1093
|
+
description: "The assignee of the agreement. Required for Agreement policies."
|
|
1094
|
+
},
|
|
1095
|
+
target: {
|
|
1096
|
+
anyOf: [
|
|
1097
|
+
{
|
|
1098
|
+
type: "string"
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
type: "array",
|
|
1105
|
+
items: {
|
|
1106
|
+
anyOf: [
|
|
1107
|
+
{
|
|
1108
|
+
type: "string"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
1112
|
+
}
|
|
1113
|
+
]
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
],
|
|
1117
|
+
description: "The target asset for the rule."
|
|
1118
|
+
},
|
|
1119
|
+
action: {
|
|
1120
|
+
anyOf: [
|
|
1121
|
+
{
|
|
1122
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
type: "array",
|
|
1129
|
+
items: {
|
|
1130
|
+
anyOf: [
|
|
1131
|
+
{
|
|
1132
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
1136
|
+
}
|
|
1137
|
+
]
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
],
|
|
1141
|
+
description: "The action associated with the rule."
|
|
1142
|
+
},
|
|
1143
|
+
inheritFrom: {
|
|
1144
|
+
anyOf: [
|
|
1145
|
+
{
|
|
1146
|
+
type: "string"
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
type: "array",
|
|
1150
|
+
items: {
|
|
1151
|
+
type: "string"
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
],
|
|
1155
|
+
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
1156
|
+
},
|
|
1157
|
+
conflict: {
|
|
1158
|
+
$ref: "https://schema.twindev.org/odrl/ConflictStrategyType",
|
|
1159
|
+
description: "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
|
|
1160
|
+
},
|
|
1161
|
+
permission: {
|
|
1162
|
+
type: "array",
|
|
1163
|
+
items: {
|
|
1164
|
+
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
1165
|
+
},
|
|
1166
|
+
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
1167
|
+
},
|
|
1168
|
+
prohibition: {
|
|
1169
|
+
type: "array",
|
|
1170
|
+
items: {
|
|
1171
|
+
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
1172
|
+
},
|
|
1173
|
+
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
1174
|
+
},
|
|
1175
|
+
obligation: {
|
|
1176
|
+
type: "array",
|
|
1177
|
+
items: {
|
|
1178
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
1179
|
+
},
|
|
1180
|
+
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
1181
|
+
}
|
|
1182
|
+
};
|
|
1183
|
+
var required$6 = [
|
|
1184
|
+
"@context",
|
|
1185
|
+
"@type",
|
|
1186
|
+
"assignee",
|
|
1187
|
+
"assigner",
|
|
1188
|
+
"uid"
|
|
1189
|
+
];
|
|
1190
|
+
var additionalProperties$e = {
|
|
1191
|
+
anyOf: [
|
|
1192
|
+
{
|
|
1193
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
type: "array"
|
|
1212
|
+
}
|
|
1213
|
+
]
|
|
1214
|
+
};
|
|
1215
|
+
var description$f = "Interface representing an ODRL Agreement. An Agreement requires both an assigner and assignee (both agreeing parties).";
|
|
1216
|
+
var OdrlAgreementSchema = {
|
|
1217
|
+
type: type$e,
|
|
1218
|
+
properties: properties$e,
|
|
1219
|
+
required: required$6,
|
|
1220
|
+
additionalProperties: additionalProperties$e,
|
|
1221
|
+
description: description$f
|
|
1222
|
+
};
|
|
1223
|
+
|
|
1224
|
+
var type$d = "object";
|
|
1225
|
+
var properties$d = {
|
|
1226
|
+
"@context": {
|
|
1227
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1228
|
+
},
|
|
1229
|
+
"@id": {
|
|
1230
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1231
|
+
},
|
|
1232
|
+
"@included": {
|
|
1233
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1234
|
+
},
|
|
1235
|
+
"@graph": {
|
|
1236
|
+
anyOf: [
|
|
1237
|
+
{
|
|
1238
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
type: "array",
|
|
1242
|
+
items: {
|
|
1243
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
]
|
|
1247
|
+
},
|
|
1248
|
+
"@nest": {
|
|
1249
|
+
anyOf: [
|
|
1250
|
+
{
|
|
1251
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
type: "array",
|
|
1255
|
+
items: {
|
|
1256
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
]
|
|
1260
|
+
},
|
|
1261
|
+
"@type": {
|
|
1262
|
+
type: "string",
|
|
1263
|
+
description: "The type of the asset. Can be used to specify additional type information."
|
|
1264
|
+
},
|
|
1265
|
+
"@reverse": {
|
|
1266
|
+
type: "object",
|
|
1267
|
+
additionalProperties: {
|
|
1268
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1271
|
+
"@index": {
|
|
1272
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1273
|
+
},
|
|
1274
|
+
uid: {
|
|
1275
|
+
type: "string",
|
|
1276
|
+
description: "The unique identifier for the asset. Should be an IRI."
|
|
1277
|
+
},
|
|
1278
|
+
partOf: {
|
|
1279
|
+
anyOf: [
|
|
1280
|
+
{
|
|
1281
|
+
type: "string"
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAssetCollection"
|
|
1285
|
+
}
|
|
1286
|
+
],
|
|
1287
|
+
description: "Reference to the asset collection this asset is part of. Used to identify an AssetCollection that this Asset is a member of."
|
|
1288
|
+
},
|
|
1289
|
+
hasPolicy: {
|
|
1290
|
+
type: "string",
|
|
1291
|
+
description: "Reference to the policy that governs this asset. Used to identify the Policy that governs this Asset."
|
|
1292
|
+
}
|
|
1293
|
+
};
|
|
1294
|
+
var additionalProperties$d = {
|
|
1295
|
+
anyOf: [
|
|
1296
|
+
{
|
|
1297
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
type: "array"
|
|
1316
|
+
}
|
|
1317
|
+
]
|
|
1318
|
+
};
|
|
1319
|
+
var description$e = "Interface for ODRL Assets.";
|
|
1320
|
+
var OdrlAssetSchema = {
|
|
1321
|
+
type: type$d,
|
|
1322
|
+
properties: properties$d,
|
|
1323
|
+
additionalProperties: additionalProperties$d,
|
|
1324
|
+
description: description$e
|
|
1325
|
+
};
|
|
1326
|
+
|
|
1327
|
+
var type$c = "object";
|
|
1328
|
+
var properties$c = {
|
|
1329
|
+
"@context": {
|
|
1330
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1331
|
+
},
|
|
1332
|
+
"@id": {
|
|
1333
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1334
|
+
},
|
|
1335
|
+
"@included": {
|
|
1336
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1337
|
+
},
|
|
1338
|
+
"@graph": {
|
|
1339
|
+
anyOf: [
|
|
1340
|
+
{
|
|
1341
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
type: "array",
|
|
1345
|
+
items: {
|
|
1346
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
]
|
|
1350
|
+
},
|
|
1351
|
+
"@nest": {
|
|
1352
|
+
anyOf: [
|
|
1353
|
+
{
|
|
1354
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
type: "array",
|
|
1358
|
+
items: {
|
|
1359
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
]
|
|
1363
|
+
},
|
|
1364
|
+
"@type": {
|
|
1365
|
+
type: "string",
|
|
1366
|
+
description: "The type of the asset. Can be used to specify additional type information."
|
|
1367
|
+
},
|
|
1368
|
+
"@reverse": {
|
|
1369
|
+
type: "object",
|
|
1370
|
+
additionalProperties: {
|
|
1371
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1372
|
+
}
|
|
1373
|
+
},
|
|
1374
|
+
"@index": {
|
|
1375
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1376
|
+
},
|
|
1377
|
+
uid: {
|
|
1378
|
+
type: "string",
|
|
1379
|
+
description: "The unique identifier for the asset. Should be an IRI."
|
|
1380
|
+
},
|
|
1381
|
+
partOf: {
|
|
1382
|
+
anyOf: [
|
|
1383
|
+
{
|
|
1384
|
+
type: "string"
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAssetCollection"
|
|
1388
|
+
}
|
|
1389
|
+
],
|
|
1390
|
+
description: "Reference to the asset collection this asset is part of. Used to identify an AssetCollection that this Asset is a member of."
|
|
1391
|
+
},
|
|
1392
|
+
hasPolicy: {
|
|
1393
|
+
type: "string",
|
|
1394
|
+
description: "Reference to the policy that governs this asset. Used to identify the Policy that governs this Asset."
|
|
1395
|
+
},
|
|
1396
|
+
source: {
|
|
1397
|
+
type: "string",
|
|
1398
|
+
description: "Reference to the source of the asset collection. Must be an IRI that references the AssetCollection."
|
|
1399
|
+
},
|
|
1400
|
+
refinement: {
|
|
1401
|
+
type: "array",
|
|
1402
|
+
items: {
|
|
1403
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
1404
|
+
},
|
|
1405
|
+
description: "Refinements applied to the asset collection. Used to specify the refinement context under which to identify individual Asset(s) of the complete collection. The refinement applies to the characteristics of each member of the collection (not the resource as a whole)."
|
|
1406
|
+
}
|
|
1407
|
+
};
|
|
1408
|
+
var required$5 = [
|
|
1409
|
+
"source"
|
|
1410
|
+
];
|
|
1411
|
+
var additionalProperties$c = {
|
|
1412
|
+
anyOf: [
|
|
1413
|
+
{
|
|
1414
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
type: "array"
|
|
1433
|
+
}
|
|
1434
|
+
]
|
|
1435
|
+
};
|
|
1436
|
+
var description$d = "Interface for ODRL Asset Collections. An AssetCollection is a single resource representing a set of member resources, where all members of the set will be the subject of the Rule.";
|
|
1437
|
+
var OdrlAssetCollectionSchema = {
|
|
1438
|
+
type: type$c,
|
|
1439
|
+
properties: properties$c,
|
|
1440
|
+
required: required$5,
|
|
1441
|
+
additionalProperties: additionalProperties$c,
|
|
1442
|
+
description: description$d
|
|
1443
|
+
};
|
|
1444
|
+
|
|
1445
|
+
var type$b = "object";
|
|
1446
|
+
var properties$b = {
|
|
1447
|
+
"@context": {
|
|
1448
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1449
|
+
},
|
|
1450
|
+
"@id": {
|
|
1451
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1452
|
+
},
|
|
1453
|
+
"@included": {
|
|
1454
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1455
|
+
},
|
|
1456
|
+
"@graph": {
|
|
1457
|
+
anyOf: [
|
|
1458
|
+
{
|
|
1459
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
type: "array",
|
|
1463
|
+
items: {
|
|
1464
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
]
|
|
1468
|
+
},
|
|
1469
|
+
"@nest": {
|
|
1470
|
+
anyOf: [
|
|
1471
|
+
{
|
|
1472
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
type: "array",
|
|
1476
|
+
items: {
|
|
1477
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
]
|
|
1481
|
+
},
|
|
1482
|
+
"@type": {
|
|
1483
|
+
anyOf: [
|
|
1484
|
+
{
|
|
1485
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
type: "array",
|
|
1489
|
+
items: {
|
|
1490
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
]
|
|
1494
|
+
},
|
|
1495
|
+
"@reverse": {
|
|
1496
|
+
type: "object",
|
|
1497
|
+
additionalProperties: {
|
|
1498
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
"@index": {
|
|
1502
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1503
|
+
},
|
|
1504
|
+
uid: {
|
|
1505
|
+
type: "string",
|
|
1506
|
+
description: "Optional unique identifier for the constraint."
|
|
1507
|
+
},
|
|
1508
|
+
leftOperand: {
|
|
1509
|
+
anyOf: [
|
|
1510
|
+
{
|
|
1511
|
+
type: "string"
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
$ref: "https://schema.twindev.org/odrl/LeftOperandType"
|
|
1515
|
+
}
|
|
1516
|
+
],
|
|
1517
|
+
description: "The left operand of the constraint."
|
|
1518
|
+
},
|
|
1519
|
+
operator: {
|
|
1520
|
+
$ref: "https://schema.twindev.org/odrl/OperatorType",
|
|
1521
|
+
description: "The operator of the constraint."
|
|
1522
|
+
},
|
|
1523
|
+
rightOperand: {
|
|
1524
|
+
anyOf: [
|
|
1525
|
+
{
|
|
1526
|
+
type: "string"
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
type: "object",
|
|
1530
|
+
properties: {
|
|
1531
|
+
"@value": {
|
|
1532
|
+
type: "string"
|
|
1533
|
+
},
|
|
1534
|
+
"@type": {
|
|
1535
|
+
type: "string"
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1538
|
+
required: [
|
|
1539
|
+
"@value"
|
|
1540
|
+
],
|
|
1541
|
+
additionalProperties: false
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
type: "object",
|
|
1545
|
+
properties: {
|
|
1546
|
+
"@id": {
|
|
1547
|
+
type: "string"
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
required: [
|
|
1551
|
+
"@id"
|
|
1552
|
+
],
|
|
1553
|
+
additionalProperties: false
|
|
1554
|
+
}
|
|
1555
|
+
],
|
|
1556
|
+
description: "The right operand of the constraint. value with optional"
|
|
1557
|
+
},
|
|
1558
|
+
rightOperandReference: {
|
|
1559
|
+
type: "string",
|
|
1560
|
+
description: "Reference to the right operand."
|
|
1561
|
+
},
|
|
1562
|
+
dataType: {
|
|
1563
|
+
type: "string",
|
|
1564
|
+
description: "The data type of the right operand."
|
|
1565
|
+
},
|
|
1566
|
+
unit: {
|
|
1567
|
+
type: "string",
|
|
1568
|
+
description: "The unit for the right operand value."
|
|
1569
|
+
},
|
|
1570
|
+
status: {
|
|
1571
|
+
$ref: "https://schema.twindev.org/odrl/StatusType",
|
|
1572
|
+
description: "The status value for comparison."
|
|
1573
|
+
}
|
|
1574
|
+
};
|
|
1575
|
+
var required$4 = [
|
|
1576
|
+
"leftOperand",
|
|
1577
|
+
"operator"
|
|
1578
|
+
];
|
|
1579
|
+
var additionalProperties$b = {
|
|
1580
|
+
anyOf: [
|
|
1581
|
+
{
|
|
1582
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
type: "array"
|
|
1601
|
+
}
|
|
1602
|
+
]
|
|
1603
|
+
};
|
|
1604
|
+
var description$c = "Interface for ODRL Constraints.";
|
|
1605
|
+
var OdrlConstraintSchema = {
|
|
1606
|
+
type: type$b,
|
|
1607
|
+
properties: properties$b,
|
|
1608
|
+
required: required$4,
|
|
1609
|
+
additionalProperties: additionalProperties$b,
|
|
1610
|
+
description: description$c
|
|
1611
|
+
};
|
|
1612
|
+
|
|
1613
|
+
var anyOf = [
|
|
1614
|
+
{
|
|
1615
|
+
type: "string",
|
|
1616
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
type: "array",
|
|
1620
|
+
minItems: 1,
|
|
1621
|
+
items: [
|
|
1622
|
+
{
|
|
1623
|
+
type: "string",
|
|
1624
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1625
|
+
}
|
|
1626
|
+
],
|
|
1627
|
+
additionalItems: {
|
|
1628
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdContextDefinitionElement"
|
|
1629
|
+
}
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
type: "array",
|
|
1633
|
+
minItems: 2,
|
|
1634
|
+
items: [
|
|
1635
|
+
{
|
|
1636
|
+
type: "string",
|
|
1637
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdContextDefinitionElement"
|
|
1641
|
+
}
|
|
1642
|
+
],
|
|
1643
|
+
additionalItems: {
|
|
1644
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdContextDefinitionElement"
|
|
1645
|
+
}
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
type: "array",
|
|
1649
|
+
minItems: 2,
|
|
1650
|
+
items: [
|
|
1651
|
+
{
|
|
1652
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdContextDefinitionElement"
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
type: "string",
|
|
1656
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1657
|
+
}
|
|
1658
|
+
],
|
|
1659
|
+
additionalItems: {
|
|
1660
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdContextDefinitionElement"
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
];
|
|
1664
|
+
var description$b = "The ODRL JSON-LD context type.";
|
|
1665
|
+
var OdrlContextTypeSchema = {
|
|
1666
|
+
anyOf: anyOf,
|
|
1667
|
+
description: description$b
|
|
1668
|
+
};
|
|
1669
|
+
|
|
1670
|
+
var type$a = "object";
|
|
1671
|
+
var properties$a = {
|
|
1672
|
+
"@context": {
|
|
1673
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1674
|
+
},
|
|
1675
|
+
"@id": {
|
|
1676
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1677
|
+
},
|
|
1678
|
+
"@included": {
|
|
1679
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1680
|
+
},
|
|
1681
|
+
"@graph": {
|
|
1682
|
+
anyOf: [
|
|
1683
|
+
{
|
|
1684
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
type: "array",
|
|
1688
|
+
items: {
|
|
1689
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
]
|
|
1693
|
+
},
|
|
1694
|
+
"@nest": {
|
|
1695
|
+
anyOf: [
|
|
1696
|
+
{
|
|
1697
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
type: "array",
|
|
1701
|
+
items: {
|
|
1702
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
]
|
|
1706
|
+
},
|
|
1707
|
+
"@type": {
|
|
1708
|
+
anyOf: [
|
|
1709
|
+
{
|
|
1710
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
type: "array",
|
|
1714
|
+
items: {
|
|
1715
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
]
|
|
1719
|
+
},
|
|
1720
|
+
"@reverse": {
|
|
1721
|
+
type: "object",
|
|
1722
|
+
additionalProperties: {
|
|
1723
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1724
|
+
}
|
|
1725
|
+
},
|
|
1726
|
+
"@index": {
|
|
1727
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1728
|
+
},
|
|
1729
|
+
uid: {
|
|
1730
|
+
type: "string",
|
|
1731
|
+
description: "Optional unique identifier for the rule."
|
|
1732
|
+
},
|
|
1733
|
+
action: {
|
|
1734
|
+
anyOf: [
|
|
1735
|
+
{
|
|
1736
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
type: "array",
|
|
1743
|
+
items: {
|
|
1744
|
+
anyOf: [
|
|
1745
|
+
{
|
|
1746
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
1750
|
+
}
|
|
1751
|
+
]
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
],
|
|
1755
|
+
description: "The action associated with the rule."
|
|
1756
|
+
},
|
|
1757
|
+
target: {
|
|
1758
|
+
anyOf: [
|
|
1759
|
+
{
|
|
1760
|
+
type: "string"
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
type: "array",
|
|
1767
|
+
items: {
|
|
1768
|
+
anyOf: [
|
|
1769
|
+
{
|
|
1770
|
+
type: "string"
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
1774
|
+
}
|
|
1775
|
+
]
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
],
|
|
1779
|
+
description: "The target asset for the rule."
|
|
1780
|
+
},
|
|
1781
|
+
assigner: {
|
|
1782
|
+
anyOf: [
|
|
1783
|
+
{
|
|
1784
|
+
type: "string"
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
1788
|
+
}
|
|
1789
|
+
],
|
|
1790
|
+
description: "The assigner of the rule."
|
|
1791
|
+
},
|
|
1792
|
+
assignee: {
|
|
1793
|
+
anyOf: [
|
|
1794
|
+
{
|
|
1795
|
+
type: "string"
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
1799
|
+
}
|
|
1800
|
+
],
|
|
1801
|
+
description: "The assignee of the rule."
|
|
1802
|
+
},
|
|
1803
|
+
constraint: {
|
|
1804
|
+
type: "array",
|
|
1805
|
+
items: {
|
|
1806
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
1807
|
+
},
|
|
1808
|
+
description: "Constraints applied to the rule."
|
|
1809
|
+
},
|
|
1810
|
+
summary: {
|
|
1811
|
+
type: "string",
|
|
1812
|
+
description: "Additional relation sub-properties as defined in ODRL profiles. For example, 'summary' in profile \"http://example.com/odrl:profile:03\" indicates where the output should be stored."
|
|
1813
|
+
},
|
|
1814
|
+
attributedParty: {
|
|
1815
|
+
type: "string",
|
|
1816
|
+
description: "The party to be attributed Used when the duty involves attribution"
|
|
1817
|
+
},
|
|
1818
|
+
trackingParty: {
|
|
1819
|
+
type: "string",
|
|
1820
|
+
description: "The party performing the tracking Used when the duty involves tracking"
|
|
1821
|
+
},
|
|
1822
|
+
consequence: {
|
|
1823
|
+
type: "array",
|
|
1824
|
+
items: {
|
|
1825
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
1826
|
+
},
|
|
1827
|
+
description: "The consequences if the duty is not fulfilled. Only applicable when the Duty is referenced by a Rule with duty or obligation properties."
|
|
1828
|
+
},
|
|
1829
|
+
remedy: {
|
|
1830
|
+
type: "array",
|
|
1831
|
+
items: {
|
|
1832
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
1833
|
+
},
|
|
1834
|
+
description: "The remedies that may be fulfilled to cure the violation."
|
|
1835
|
+
},
|
|
1836
|
+
compensatedParty: {
|
|
1837
|
+
type: "string",
|
|
1838
|
+
description: "The party to be compensated Used when the duty involves compensation"
|
|
1839
|
+
}
|
|
1840
|
+
};
|
|
1841
|
+
var additionalProperties$a = {
|
|
1842
|
+
anyOf: [
|
|
1843
|
+
{
|
|
1844
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
1854
|
+
},
|
|
1855
|
+
{
|
|
1856
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
type: "array"
|
|
1863
|
+
}
|
|
1864
|
+
]
|
|
1865
|
+
};
|
|
1866
|
+
var description$a = "Interface for Duty Rules. A Duty is the obligation to exercise an action, with all refinements satisfied. A Duty is fulfilled if all constraints are satisfied and if its action has been exercised.";
|
|
1867
|
+
var OdrlDutySchema = {
|
|
1868
|
+
type: type$a,
|
|
1869
|
+
properties: properties$a,
|
|
1870
|
+
additionalProperties: additionalProperties$a,
|
|
1871
|
+
description: description$a
|
|
1872
|
+
};
|
|
1873
|
+
|
|
1874
|
+
var type$9 = "object";
|
|
1875
|
+
var properties$9 = {
|
|
1876
|
+
"@context": {
|
|
1877
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1878
|
+
},
|
|
1879
|
+
"@id": {
|
|
1880
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1881
|
+
},
|
|
1882
|
+
"@included": {
|
|
1883
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1884
|
+
},
|
|
1885
|
+
"@graph": {
|
|
1886
|
+
anyOf: [
|
|
1887
|
+
{
|
|
1888
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
type: "array",
|
|
1892
|
+
items: {
|
|
1893
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
]
|
|
1897
|
+
},
|
|
1898
|
+
"@nest": {
|
|
1899
|
+
anyOf: [
|
|
1900
|
+
{
|
|
1901
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
type: "array",
|
|
1905
|
+
items: {
|
|
1906
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
]
|
|
1910
|
+
},
|
|
1911
|
+
"@type": {
|
|
1912
|
+
anyOf: [
|
|
1913
|
+
{
|
|
1914
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
type: "array",
|
|
1918
|
+
items: {
|
|
1919
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
]
|
|
1923
|
+
},
|
|
1924
|
+
"@reverse": {
|
|
1925
|
+
type: "object",
|
|
1926
|
+
additionalProperties: {
|
|
1927
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
"@index": {
|
|
1931
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
1932
|
+
},
|
|
1933
|
+
uid: {
|
|
1934
|
+
type: "string",
|
|
1935
|
+
description: "Optional unique identifier for the logical constraint. Must be an IRI."
|
|
1936
|
+
},
|
|
1937
|
+
and: {
|
|
1938
|
+
type: "object",
|
|
1939
|
+
properties: {
|
|
1940
|
+
"@list": {
|
|
1941
|
+
type: "array",
|
|
1942
|
+
items: {
|
|
1943
|
+
type: "object",
|
|
1944
|
+
properties: {
|
|
1945
|
+
"@id": {
|
|
1946
|
+
type: "string"
|
|
1947
|
+
}
|
|
1948
|
+
},
|
|
1949
|
+
required: [
|
|
1950
|
+
"@id"
|
|
1951
|
+
],
|
|
1952
|
+
additionalProperties: false
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
},
|
|
1956
|
+
required: [
|
|
1957
|
+
"@list"
|
|
1958
|
+
],
|
|
1959
|
+
additionalProperties: false,
|
|
1960
|
+
description: "AND operator - all constraints must be satisfied."
|
|
1961
|
+
},
|
|
1962
|
+
or: {
|
|
1963
|
+
type: "object",
|
|
1964
|
+
properties: {
|
|
1965
|
+
"@list": {
|
|
1966
|
+
type: "array",
|
|
1967
|
+
items: {
|
|
1968
|
+
type: "object",
|
|
1969
|
+
properties: {
|
|
1970
|
+
"@id": {
|
|
1971
|
+
type: "string"
|
|
1972
|
+
}
|
|
1973
|
+
},
|
|
1974
|
+
required: [
|
|
1975
|
+
"@id"
|
|
1976
|
+
],
|
|
1977
|
+
additionalProperties: false
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
},
|
|
1981
|
+
required: [
|
|
1982
|
+
"@list"
|
|
1983
|
+
],
|
|
1984
|
+
additionalProperties: false,
|
|
1985
|
+
description: "OR operator - at least one constraint must be satisfied."
|
|
1986
|
+
},
|
|
1987
|
+
xone: {
|
|
1988
|
+
type: "object",
|
|
1989
|
+
properties: {
|
|
1990
|
+
"@list": {
|
|
1991
|
+
type: "array",
|
|
1992
|
+
items: {
|
|
1993
|
+
type: "object",
|
|
1994
|
+
properties: {
|
|
1995
|
+
"@id": {
|
|
1996
|
+
type: "string"
|
|
1997
|
+
}
|
|
1998
|
+
},
|
|
1999
|
+
required: [
|
|
2000
|
+
"@id"
|
|
2001
|
+
],
|
|
2002
|
+
additionalProperties: false
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
},
|
|
2006
|
+
required: [
|
|
2007
|
+
"@list"
|
|
2008
|
+
],
|
|
2009
|
+
additionalProperties: false,
|
|
2010
|
+
description: "XOR operator - exactly one constraint must be satisfied."
|
|
2011
|
+
},
|
|
2012
|
+
andSequence: {
|
|
2013
|
+
type: "object",
|
|
2014
|
+
properties: {
|
|
2015
|
+
"@list": {
|
|
2016
|
+
type: "array",
|
|
2017
|
+
items: {
|
|
2018
|
+
type: "object",
|
|
2019
|
+
properties: {
|
|
2020
|
+
"@id": {
|
|
2021
|
+
type: "string"
|
|
2022
|
+
}
|
|
2023
|
+
},
|
|
2024
|
+
required: [
|
|
2025
|
+
"@id"
|
|
2026
|
+
],
|
|
2027
|
+
additionalProperties: false
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
},
|
|
2031
|
+
required: [
|
|
2032
|
+
"@list"
|
|
2033
|
+
],
|
|
2034
|
+
additionalProperties: false,
|
|
2035
|
+
description: "AND Sequence operator - all constraints must be satisfied in order."
|
|
2036
|
+
}
|
|
2037
|
+
};
|
|
2038
|
+
var additionalProperties$9 = {
|
|
2039
|
+
anyOf: [
|
|
2040
|
+
{
|
|
2041
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
type: "array"
|
|
2060
|
+
}
|
|
2061
|
+
]
|
|
2062
|
+
};
|
|
2063
|
+
var description$9 = "Interface for ODRL Logical Constraints. A Logical Constraint compares two or more existing Constraints by one logical operator. If the comparison returns a logical match, then the Logical Constraint is satisfied.";
|
|
2064
|
+
var OdrlLogicalConstraintSchema = {
|
|
2065
|
+
type: type$9,
|
|
2066
|
+
properties: properties$9,
|
|
2067
|
+
additionalProperties: additionalProperties$9,
|
|
2068
|
+
description: description$9
|
|
2069
|
+
};
|
|
2070
|
+
|
|
2071
|
+
var type$8 = "object";
|
|
2072
|
+
var properties$8 = {
|
|
2073
|
+
"@context": {
|
|
2074
|
+
$ref: "https://schema.twindev.org/odrl/OdrlContextType",
|
|
2075
|
+
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
2076
|
+
},
|
|
2077
|
+
"@id": {
|
|
2078
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2079
|
+
},
|
|
2080
|
+
"@included": {
|
|
2081
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2082
|
+
},
|
|
2083
|
+
"@graph": {
|
|
2084
|
+
anyOf: [
|
|
2085
|
+
{
|
|
2086
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
2087
|
+
},
|
|
2088
|
+
{
|
|
2089
|
+
type: "array",
|
|
2090
|
+
items: {
|
|
2091
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
]
|
|
2095
|
+
},
|
|
2096
|
+
"@nest": {
|
|
2097
|
+
anyOf: [
|
|
2098
|
+
{
|
|
2099
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
2100
|
+
},
|
|
2101
|
+
{
|
|
2102
|
+
type: "array",
|
|
2103
|
+
items: {
|
|
2104
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
]
|
|
2108
|
+
},
|
|
2109
|
+
"@type": {
|
|
2110
|
+
type: "string",
|
|
2111
|
+
"const": "Offer",
|
|
2112
|
+
description: "The type must be \"Offer\"."
|
|
2113
|
+
},
|
|
2114
|
+
"@reverse": {
|
|
2115
|
+
type: "object",
|
|
2116
|
+
additionalProperties: {
|
|
2117
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2118
|
+
}
|
|
2119
|
+
},
|
|
2120
|
+
"@index": {
|
|
2121
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2122
|
+
},
|
|
2123
|
+
uid: {
|
|
2124
|
+
type: "string",
|
|
2125
|
+
description: "The unique identifier for the policy. Must be an IRI."
|
|
2126
|
+
},
|
|
2127
|
+
profile: {
|
|
2128
|
+
anyOf: [
|
|
2129
|
+
{
|
|
2130
|
+
type: "string"
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
type: "array",
|
|
2134
|
+
items: {
|
|
2135
|
+
type: "string"
|
|
2136
|
+
}
|
|
2137
|
+
}
|
|
2138
|
+
],
|
|
2139
|
+
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
2140
|
+
},
|
|
2141
|
+
assigner: {
|
|
2142
|
+
anyOf: [
|
|
2143
|
+
{
|
|
2144
|
+
type: "string"
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
2148
|
+
}
|
|
2149
|
+
],
|
|
2150
|
+
description: "The assigner of the offer. Required for Offer policies."
|
|
2151
|
+
},
|
|
2152
|
+
assignee: {
|
|
2153
|
+
anyOf: [
|
|
2154
|
+
{
|
|
2155
|
+
type: "string"
|
|
2156
|
+
},
|
|
2157
|
+
{
|
|
2158
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
2159
|
+
}
|
|
2160
|
+
],
|
|
2161
|
+
description: "The assignee of the policy. Applies to all rules unless overridden at rule level."
|
|
2162
|
+
},
|
|
2163
|
+
target: {
|
|
2164
|
+
anyOf: [
|
|
2165
|
+
{
|
|
2166
|
+
type: "string"
|
|
2167
|
+
},
|
|
2168
|
+
{
|
|
2169
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
type: "array",
|
|
2173
|
+
items: {
|
|
2174
|
+
anyOf: [
|
|
2175
|
+
{
|
|
2176
|
+
type: "string"
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2180
|
+
}
|
|
2181
|
+
]
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
],
|
|
2185
|
+
description: "The target asset for the rule."
|
|
2186
|
+
},
|
|
2187
|
+
action: {
|
|
2188
|
+
anyOf: [
|
|
2189
|
+
{
|
|
2190
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2194
|
+
},
|
|
2195
|
+
{
|
|
2196
|
+
type: "array",
|
|
2197
|
+
items: {
|
|
2198
|
+
anyOf: [
|
|
2199
|
+
{
|
|
2200
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2204
|
+
}
|
|
2205
|
+
]
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
],
|
|
2209
|
+
description: "The action associated with the rule."
|
|
2210
|
+
},
|
|
2211
|
+
inheritFrom: {
|
|
2212
|
+
anyOf: [
|
|
2213
|
+
{
|
|
2214
|
+
type: "string"
|
|
2215
|
+
},
|
|
2216
|
+
{
|
|
2217
|
+
type: "array",
|
|
2218
|
+
items: {
|
|
2219
|
+
type: "string"
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
],
|
|
2223
|
+
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
2224
|
+
},
|
|
2225
|
+
conflict: {
|
|
2226
|
+
$ref: "https://schema.twindev.org/odrl/ConflictStrategyType",
|
|
2227
|
+
description: "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
|
|
2228
|
+
},
|
|
2229
|
+
permission: {
|
|
2230
|
+
type: "array",
|
|
2231
|
+
items: {
|
|
2232
|
+
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
2233
|
+
},
|
|
2234
|
+
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
2235
|
+
},
|
|
2236
|
+
prohibition: {
|
|
2237
|
+
type: "array",
|
|
2238
|
+
items: {
|
|
2239
|
+
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
2240
|
+
},
|
|
2241
|
+
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
2242
|
+
},
|
|
2243
|
+
obligation: {
|
|
2244
|
+
type: "array",
|
|
2245
|
+
items: {
|
|
2246
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
2247
|
+
},
|
|
2248
|
+
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
2249
|
+
}
|
|
2250
|
+
};
|
|
2251
|
+
var required$3 = [
|
|
2252
|
+
"@context",
|
|
2253
|
+
"@type",
|
|
2254
|
+
"assigner",
|
|
2255
|
+
"uid"
|
|
2256
|
+
];
|
|
2257
|
+
var additionalProperties$8 = {
|
|
2258
|
+
anyOf: [
|
|
2259
|
+
{
|
|
2260
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
2264
|
+
},
|
|
2265
|
+
{
|
|
2266
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
2267
|
+
},
|
|
2268
|
+
{
|
|
2269
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
2270
|
+
},
|
|
2271
|
+
{
|
|
2272
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
2273
|
+
},
|
|
2274
|
+
{
|
|
2275
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
2276
|
+
},
|
|
2277
|
+
{
|
|
2278
|
+
type: "array"
|
|
2279
|
+
}
|
|
2280
|
+
]
|
|
2281
|
+
};
|
|
2282
|
+
var description$8 = "Interface representing an ODRL Offer. An Offer requires an assigner (the party making the offer).";
|
|
2283
|
+
var OdrlOfferSchema = {
|
|
2284
|
+
type: type$8,
|
|
2285
|
+
properties: properties$8,
|
|
2286
|
+
required: required$3,
|
|
2287
|
+
additionalProperties: additionalProperties$8,
|
|
2288
|
+
description: description$8
|
|
2289
|
+
};
|
|
2290
|
+
|
|
2291
|
+
var type$7 = "object";
|
|
2292
|
+
var properties$7 = {
|
|
2293
|
+
"@context": {
|
|
2294
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2295
|
+
},
|
|
2296
|
+
"@id": {
|
|
2297
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2298
|
+
},
|
|
2299
|
+
"@included": {
|
|
2300
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2301
|
+
},
|
|
2302
|
+
"@graph": {
|
|
2303
|
+
anyOf: [
|
|
2304
|
+
{
|
|
2305
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
2306
|
+
},
|
|
2307
|
+
{
|
|
2308
|
+
type: "array",
|
|
2309
|
+
items: {
|
|
2310
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
]
|
|
2314
|
+
},
|
|
2315
|
+
"@nest": {
|
|
2316
|
+
anyOf: [
|
|
2317
|
+
{
|
|
2318
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
2319
|
+
},
|
|
2320
|
+
{
|
|
2321
|
+
type: "array",
|
|
2322
|
+
items: {
|
|
2323
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
]
|
|
2327
|
+
},
|
|
2328
|
+
"@type": {
|
|
2329
|
+
anyOf: [
|
|
2330
|
+
{
|
|
2331
|
+
type: "string"
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
type: "array",
|
|
2335
|
+
items: {
|
|
2336
|
+
type: "string"
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
],
|
|
2340
|
+
description: "The type of the party. Can be used to specify additional type information (e.g., \"Party\", \"vcard:Organization\", \"vcard:Individual\")."
|
|
2341
|
+
},
|
|
2342
|
+
"@reverse": {
|
|
2343
|
+
type: "object",
|
|
2344
|
+
additionalProperties: {
|
|
2345
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2346
|
+
}
|
|
2347
|
+
},
|
|
2348
|
+
"@index": {
|
|
2349
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2350
|
+
},
|
|
2351
|
+
uid: {
|
|
2352
|
+
type: "string",
|
|
2353
|
+
description: "The unique identifier for the party. Must be an IRI."
|
|
2354
|
+
},
|
|
2355
|
+
partOf: {
|
|
2356
|
+
anyOf: [
|
|
2357
|
+
{
|
|
2358
|
+
type: "string"
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
$ref: "https://schema.twindev.org/odrl/OdrlPartyCollection"
|
|
2362
|
+
}
|
|
2363
|
+
],
|
|
2364
|
+
description: "Reference to the party collection this party is part of. Used to identify a PartyCollection that a Party entity is a member of."
|
|
2365
|
+
},
|
|
2366
|
+
assigneeOf: {
|
|
2367
|
+
type: "string",
|
|
2368
|
+
description: "Reference to a policy where this party is an assignee. When assigneeOf is asserted, the Party MUST be inferred to undertake the assignee functional role of all the Rules of that Policy."
|
|
2369
|
+
},
|
|
2370
|
+
assignerOf: {
|
|
2371
|
+
type: "string",
|
|
2372
|
+
description: "Reference to a policy where this party is an assigner. When assignerOf is asserted, the Party MUST be inferred to undertake the assigner functional role of all the Rules of that Policy."
|
|
2373
|
+
}
|
|
2374
|
+
};
|
|
2375
|
+
var additionalProperties$7 = {
|
|
2376
|
+
anyOf: [
|
|
2377
|
+
{
|
|
2378
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
2379
|
+
},
|
|
2380
|
+
{
|
|
2381
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
2382
|
+
},
|
|
2383
|
+
{
|
|
2384
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
2385
|
+
},
|
|
2386
|
+
{
|
|
2387
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
2388
|
+
},
|
|
2389
|
+
{
|
|
2390
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
2394
|
+
},
|
|
2395
|
+
{
|
|
2396
|
+
type: "array"
|
|
2397
|
+
}
|
|
2398
|
+
]
|
|
2399
|
+
};
|
|
2400
|
+
var description$7 = "Interface for ODRL Parties.";
|
|
2401
|
+
var OdrlPartySchema = {
|
|
2402
|
+
type: type$7,
|
|
2403
|
+
properties: properties$7,
|
|
2404
|
+
additionalProperties: additionalProperties$7,
|
|
2405
|
+
description: description$7
|
|
2406
|
+
};
|
|
2407
|
+
|
|
2408
|
+
var type$6 = "object";
|
|
2409
|
+
var properties$6 = {
|
|
2410
|
+
"@context": {
|
|
2411
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2412
|
+
},
|
|
2413
|
+
"@id": {
|
|
2414
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2415
|
+
},
|
|
2416
|
+
"@included": {
|
|
2417
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2418
|
+
},
|
|
2419
|
+
"@graph": {
|
|
2420
|
+
anyOf: [
|
|
2421
|
+
{
|
|
2422
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
2423
|
+
},
|
|
2424
|
+
{
|
|
2425
|
+
type: "array",
|
|
2426
|
+
items: {
|
|
2427
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
]
|
|
2431
|
+
},
|
|
2432
|
+
"@nest": {
|
|
2433
|
+
anyOf: [
|
|
2434
|
+
{
|
|
2435
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
2436
|
+
},
|
|
2437
|
+
{
|
|
2438
|
+
type: "array",
|
|
2439
|
+
items: {
|
|
2440
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
]
|
|
2444
|
+
},
|
|
2445
|
+
"@type": {
|
|
2446
|
+
anyOf: [
|
|
2447
|
+
{
|
|
2448
|
+
type: "string"
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
type: "array",
|
|
2452
|
+
items: {
|
|
2453
|
+
type: "string"
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
],
|
|
2457
|
+
description: "The type of the party. Can be used to specify additional type information (e.g., \"Party\", \"vcard:Organization\", \"vcard:Individual\")."
|
|
2458
|
+
},
|
|
2459
|
+
"@reverse": {
|
|
2460
|
+
type: "object",
|
|
2461
|
+
additionalProperties: {
|
|
2462
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2463
|
+
}
|
|
2464
|
+
},
|
|
2465
|
+
"@index": {
|
|
2466
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2467
|
+
},
|
|
2468
|
+
uid: {
|
|
2469
|
+
type: "string",
|
|
2470
|
+
description: "The unique identifier for the party. Must be an IRI."
|
|
2471
|
+
},
|
|
2472
|
+
partOf: {
|
|
2473
|
+
anyOf: [
|
|
2474
|
+
{
|
|
2475
|
+
type: "string"
|
|
2476
|
+
},
|
|
2477
|
+
{
|
|
2478
|
+
$ref: "https://schema.twindev.org/odrl/OdrlPartyCollection"
|
|
2479
|
+
}
|
|
2480
|
+
],
|
|
2481
|
+
description: "Reference to the party collection this party is part of. Used to identify a PartyCollection that a Party entity is a member of."
|
|
2482
|
+
},
|
|
2483
|
+
assigneeOf: {
|
|
2484
|
+
type: "string",
|
|
2485
|
+
description: "Reference to a policy where this party is an assignee. When assigneeOf is asserted, the Party MUST be inferred to undertake the assignee functional role of all the Rules of that Policy."
|
|
2486
|
+
},
|
|
2487
|
+
assignerOf: {
|
|
2488
|
+
type: "string",
|
|
2489
|
+
description: "Reference to a policy where this party is an assigner. When assignerOf is asserted, the Party MUST be inferred to undertake the assigner functional role of all the Rules of that Policy."
|
|
2490
|
+
},
|
|
2491
|
+
source: {
|
|
2492
|
+
type: "string",
|
|
2493
|
+
description: "Reference to the source of the party collection. Used to identify the origin or location of the collection."
|
|
2494
|
+
},
|
|
2495
|
+
refinement: {
|
|
2496
|
+
type: "array",
|
|
2497
|
+
items: {
|
|
2498
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
2499
|
+
},
|
|
2500
|
+
description: "Refinements applied to the party collection. Used to specify constraints that apply to all members of the collection."
|
|
2501
|
+
}
|
|
2502
|
+
};
|
|
2503
|
+
var required$2 = [
|
|
2504
|
+
"source"
|
|
2505
|
+
];
|
|
2506
|
+
var additionalProperties$6 = {
|
|
2507
|
+
anyOf: [
|
|
2508
|
+
{
|
|
2509
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
2510
|
+
},
|
|
2511
|
+
{
|
|
2512
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
2513
|
+
},
|
|
2514
|
+
{
|
|
2515
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
2516
|
+
},
|
|
2517
|
+
{
|
|
2518
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
2519
|
+
},
|
|
2520
|
+
{
|
|
2521
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
2522
|
+
},
|
|
2523
|
+
{
|
|
2524
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
2525
|
+
},
|
|
2526
|
+
{
|
|
2527
|
+
type: "array"
|
|
2528
|
+
}
|
|
2529
|
+
]
|
|
2530
|
+
};
|
|
2531
|
+
var description$6 = "Interface for ODRL Party Collections. A PartyCollection identifies a collection of entities and is a subclass of Party.";
|
|
2532
|
+
var OdrlPartyCollectionSchema = {
|
|
2533
|
+
type: type$6,
|
|
2534
|
+
properties: properties$6,
|
|
2535
|
+
required: required$2,
|
|
2536
|
+
additionalProperties: additionalProperties$6,
|
|
2537
|
+
description: description$6
|
|
2538
|
+
};
|
|
2539
|
+
|
|
2540
|
+
var type$5 = "object";
|
|
2541
|
+
var properties$5 = {
|
|
2542
|
+
"@context": {
|
|
2543
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2544
|
+
},
|
|
2545
|
+
"@id": {
|
|
2546
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2547
|
+
},
|
|
2548
|
+
"@included": {
|
|
2549
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2550
|
+
},
|
|
2551
|
+
"@graph": {
|
|
2552
|
+
anyOf: [
|
|
2553
|
+
{
|
|
2554
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
2555
|
+
},
|
|
2556
|
+
{
|
|
2557
|
+
type: "array",
|
|
2558
|
+
items: {
|
|
2559
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
]
|
|
2563
|
+
},
|
|
2564
|
+
"@nest": {
|
|
2565
|
+
anyOf: [
|
|
2566
|
+
{
|
|
2567
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
2568
|
+
},
|
|
2569
|
+
{
|
|
2570
|
+
type: "array",
|
|
2571
|
+
items: {
|
|
2572
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
]
|
|
2576
|
+
},
|
|
2577
|
+
"@type": {
|
|
2578
|
+
anyOf: [
|
|
2579
|
+
{
|
|
2580
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2581
|
+
},
|
|
2582
|
+
{
|
|
2583
|
+
type: "array",
|
|
2584
|
+
items: {
|
|
2585
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
]
|
|
2589
|
+
},
|
|
2590
|
+
"@reverse": {
|
|
2591
|
+
type: "object",
|
|
2592
|
+
additionalProperties: {
|
|
2593
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2594
|
+
}
|
|
2595
|
+
},
|
|
2596
|
+
"@index": {
|
|
2597
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2598
|
+
},
|
|
2599
|
+
uid: {
|
|
2600
|
+
type: "string",
|
|
2601
|
+
description: "Optional unique identifier for the rule."
|
|
2602
|
+
},
|
|
2603
|
+
action: {
|
|
2604
|
+
anyOf: [
|
|
2605
|
+
{
|
|
2606
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2607
|
+
},
|
|
2608
|
+
{
|
|
2609
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2610
|
+
},
|
|
2611
|
+
{
|
|
2612
|
+
type: "array",
|
|
2613
|
+
items: {
|
|
2614
|
+
anyOf: [
|
|
2615
|
+
{
|
|
2616
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2617
|
+
},
|
|
2618
|
+
{
|
|
2619
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2620
|
+
}
|
|
2621
|
+
]
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2624
|
+
],
|
|
2625
|
+
description: "The action associated with the rule."
|
|
2626
|
+
},
|
|
2627
|
+
target: {
|
|
2628
|
+
anyOf: [
|
|
2629
|
+
{
|
|
2630
|
+
type: "string"
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2634
|
+
},
|
|
2635
|
+
{
|
|
2636
|
+
type: "array",
|
|
2637
|
+
items: {
|
|
2638
|
+
anyOf: [
|
|
2639
|
+
{
|
|
2640
|
+
type: "string"
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2644
|
+
}
|
|
2645
|
+
]
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2648
|
+
],
|
|
2649
|
+
description: "The target asset for the rule."
|
|
2650
|
+
},
|
|
2651
|
+
assigner: {
|
|
2652
|
+
anyOf: [
|
|
2653
|
+
{
|
|
2654
|
+
type: "string"
|
|
2655
|
+
},
|
|
2656
|
+
{
|
|
2657
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
2658
|
+
}
|
|
2659
|
+
],
|
|
2660
|
+
description: "The assigner of the rule."
|
|
2661
|
+
},
|
|
2662
|
+
assignee: {
|
|
2663
|
+
anyOf: [
|
|
2664
|
+
{
|
|
2665
|
+
type: "string"
|
|
2666
|
+
},
|
|
2667
|
+
{
|
|
2668
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
2669
|
+
}
|
|
2670
|
+
],
|
|
2671
|
+
description: "The assignee of the rule."
|
|
2672
|
+
},
|
|
2673
|
+
constraint: {
|
|
2674
|
+
type: "array",
|
|
2675
|
+
items: {
|
|
2676
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
2677
|
+
},
|
|
2678
|
+
description: "Constraints applied to the rule."
|
|
2679
|
+
},
|
|
2680
|
+
summary: {
|
|
2681
|
+
type: "string",
|
|
2682
|
+
description: "Additional relation sub-properties as defined in ODRL profiles. For example, 'summary' in profile \"http://example.com/odrl:profile:03\" indicates where the output should be stored."
|
|
2683
|
+
},
|
|
2684
|
+
duty: {
|
|
2685
|
+
type: "array",
|
|
2686
|
+
items: {
|
|
2687
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
2688
|
+
},
|
|
2689
|
+
description: "The duties that must be fulfilled before the permission can be exercised. A Permission MAY have none, one, or more duty property values."
|
|
2690
|
+
}
|
|
2691
|
+
};
|
|
2692
|
+
var additionalProperties$5 = {
|
|
2693
|
+
anyOf: [
|
|
2694
|
+
{
|
|
2695
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
2696
|
+
},
|
|
2697
|
+
{
|
|
2698
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
2699
|
+
},
|
|
2700
|
+
{
|
|
2701
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
2705
|
+
},
|
|
2706
|
+
{
|
|
2707
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
2708
|
+
},
|
|
2709
|
+
{
|
|
2710
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
type: "array"
|
|
2714
|
+
}
|
|
2715
|
+
]
|
|
2716
|
+
};
|
|
2717
|
+
var description$5 = "Interface for Permission Rules. A Permission allows an action to be exercised on an Asset if all constraints are satisfied and if all duties are fulfilled.";
|
|
2718
|
+
var OdrlPermissionSchema = {
|
|
2719
|
+
type: type$5,
|
|
2720
|
+
properties: properties$5,
|
|
2721
|
+
additionalProperties: additionalProperties$5,
|
|
2722
|
+
description: description$5
|
|
2723
|
+
};
|
|
2724
|
+
|
|
2725
|
+
var type$4 = "object";
|
|
2726
|
+
var properties$4 = {
|
|
2727
|
+
"@context": {
|
|
2728
|
+
$ref: "https://schema.twindev.org/odrl/OdrlContextType",
|
|
2729
|
+
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
2730
|
+
},
|
|
2731
|
+
"@id": {
|
|
2732
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2733
|
+
},
|
|
2734
|
+
"@included": {
|
|
2735
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2736
|
+
},
|
|
2737
|
+
"@graph": {
|
|
2738
|
+
anyOf: [
|
|
2739
|
+
{
|
|
2740
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
2741
|
+
},
|
|
2742
|
+
{
|
|
2743
|
+
type: "array",
|
|
2744
|
+
items: {
|
|
2745
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
2746
|
+
}
|
|
2747
|
+
}
|
|
2748
|
+
]
|
|
2749
|
+
},
|
|
2750
|
+
"@nest": {
|
|
2751
|
+
anyOf: [
|
|
2752
|
+
{
|
|
2753
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
2754
|
+
},
|
|
2755
|
+
{
|
|
2756
|
+
type: "array",
|
|
2757
|
+
items: {
|
|
2758
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
2759
|
+
}
|
|
2760
|
+
}
|
|
2761
|
+
]
|
|
2762
|
+
},
|
|
2763
|
+
"@type": {
|
|
2764
|
+
$ref: "https://schema.twindev.org/odrl/PolicyType",
|
|
2765
|
+
description: "The type of policy. Must be one of: \"Set\", \"Offer\", \"Agreement\""
|
|
2766
|
+
},
|
|
2767
|
+
"@reverse": {
|
|
2768
|
+
type: "object",
|
|
2769
|
+
additionalProperties: {
|
|
2770
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2771
|
+
}
|
|
2772
|
+
},
|
|
2773
|
+
"@index": {
|
|
2774
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
2775
|
+
},
|
|
2776
|
+
uid: {
|
|
2777
|
+
type: "string",
|
|
2778
|
+
description: "The unique identifier for the policy. Must be an IRI."
|
|
2779
|
+
},
|
|
2780
|
+
profile: {
|
|
2781
|
+
anyOf: [
|
|
2782
|
+
{
|
|
2783
|
+
type: "string"
|
|
2784
|
+
},
|
|
2785
|
+
{
|
|
2786
|
+
type: "array",
|
|
2787
|
+
items: {
|
|
2788
|
+
type: "string"
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
],
|
|
2792
|
+
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
2793
|
+
},
|
|
2794
|
+
assigner: {
|
|
2795
|
+
anyOf: [
|
|
2796
|
+
{
|
|
2797
|
+
type: "string"
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
2801
|
+
}
|
|
2802
|
+
],
|
|
2803
|
+
description: "The assigner of the policy. Applies to all rules unless overridden at rule level."
|
|
2804
|
+
},
|
|
2805
|
+
assignee: {
|
|
2806
|
+
anyOf: [
|
|
2807
|
+
{
|
|
2808
|
+
type: "string"
|
|
2809
|
+
},
|
|
2810
|
+
{
|
|
2811
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
2812
|
+
}
|
|
2813
|
+
],
|
|
2814
|
+
description: "The assignee of the policy. Applies to all rules unless overridden at rule level."
|
|
2815
|
+
},
|
|
2816
|
+
target: {
|
|
2817
|
+
anyOf: [
|
|
2818
|
+
{
|
|
2819
|
+
type: "string"
|
|
2820
|
+
},
|
|
2821
|
+
{
|
|
2822
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2823
|
+
},
|
|
2824
|
+
{
|
|
2825
|
+
type: "array",
|
|
2826
|
+
items: {
|
|
2827
|
+
anyOf: [
|
|
2828
|
+
{
|
|
2829
|
+
type: "string"
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2833
|
+
}
|
|
2834
|
+
]
|
|
2835
|
+
}
|
|
2836
|
+
}
|
|
2837
|
+
],
|
|
2838
|
+
description: "The target asset for the rule."
|
|
2839
|
+
},
|
|
2840
|
+
action: {
|
|
2841
|
+
anyOf: [
|
|
2842
|
+
{
|
|
2843
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2844
|
+
},
|
|
2845
|
+
{
|
|
2846
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2847
|
+
},
|
|
2848
|
+
{
|
|
2849
|
+
type: "array",
|
|
2850
|
+
items: {
|
|
2851
|
+
anyOf: [
|
|
2852
|
+
{
|
|
2853
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2854
|
+
},
|
|
2855
|
+
{
|
|
2856
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2857
|
+
}
|
|
2858
|
+
]
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
],
|
|
2862
|
+
description: "The action associated with the rule."
|
|
2863
|
+
},
|
|
2864
|
+
inheritFrom: {
|
|
2865
|
+
anyOf: [
|
|
2866
|
+
{
|
|
2867
|
+
type: "string"
|
|
2868
|
+
},
|
|
2869
|
+
{
|
|
2870
|
+
type: "array",
|
|
2871
|
+
items: {
|
|
2872
|
+
type: "string"
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
],
|
|
2876
|
+
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
2877
|
+
},
|
|
2878
|
+
conflict: {
|
|
2879
|
+
$ref: "https://schema.twindev.org/odrl/ConflictStrategyType",
|
|
2880
|
+
description: "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
|
|
2881
|
+
},
|
|
2882
|
+
permission: {
|
|
2883
|
+
type: "array",
|
|
2884
|
+
items: {
|
|
2885
|
+
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
2886
|
+
},
|
|
2887
|
+
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
2888
|
+
},
|
|
2889
|
+
prohibition: {
|
|
2890
|
+
type: "array",
|
|
2891
|
+
items: {
|
|
2892
|
+
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
2893
|
+
},
|
|
2894
|
+
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
2895
|
+
},
|
|
2896
|
+
obligation: {
|
|
2897
|
+
type: "array",
|
|
2898
|
+
items: {
|
|
2899
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
2900
|
+
},
|
|
2901
|
+
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
2902
|
+
}
|
|
2903
|
+
};
|
|
2904
|
+
var required$1 = [
|
|
2905
|
+
"@context",
|
|
2906
|
+
"@type",
|
|
2907
|
+
"uid"
|
|
2908
|
+
];
|
|
2909
|
+
var additionalProperties$4 = {
|
|
2910
|
+
anyOf: [
|
|
2911
|
+
{
|
|
2912
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
2916
|
+
},
|
|
2917
|
+
{
|
|
2918
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
2919
|
+
},
|
|
2920
|
+
{
|
|
2921
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
2925
|
+
},
|
|
2926
|
+
{
|
|
2927
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
2928
|
+
},
|
|
2929
|
+
{
|
|
2930
|
+
type: "array"
|
|
2931
|
+
}
|
|
2932
|
+
]
|
|
2933
|
+
};
|
|
2934
|
+
var description$4 = "Interface representing an ODRL Policy.";
|
|
2935
|
+
var OdrlPolicySchema = {
|
|
2936
|
+
type: type$4,
|
|
2937
|
+
properties: properties$4,
|
|
2938
|
+
required: required$1,
|
|
2939
|
+
additionalProperties: additionalProperties$4,
|
|
2940
|
+
description: description$4
|
|
2941
|
+
};
|
|
2942
|
+
|
|
2943
|
+
var type$3 = "object";
|
|
2944
|
+
var properties$3 = {
|
|
2945
|
+
"dc:creator": {
|
|
2946
|
+
anyOf: [
|
|
2947
|
+
{
|
|
2948
|
+
type: "string"
|
|
2949
|
+
},
|
|
2950
|
+
{
|
|
2951
|
+
type: "array",
|
|
2952
|
+
items: {
|
|
2953
|
+
type: "string"
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
],
|
|
2957
|
+
description: "The individual, agent, or organisation that authored the Policy. Note: String values may not be normalized and should not be used for direct comparison."
|
|
2958
|
+
},
|
|
2959
|
+
"dc:description": {
|
|
2960
|
+
anyOf: [
|
|
2961
|
+
{
|
|
2962
|
+
type: "string"
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
type: "array",
|
|
2966
|
+
items: {
|
|
2967
|
+
type: "string"
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2970
|
+
],
|
|
2971
|
+
description: "A human-readable representation or summary of the Policy. Note: String values may not be normalized and should not be used for direct comparison."
|
|
2972
|
+
},
|
|
2973
|
+
"dc:issued": {
|
|
2974
|
+
type: "string",
|
|
2975
|
+
description: "The date (and time) the Policy was first issued. Note: String values may not be normalized and should not be used for direct comparison."
|
|
2976
|
+
},
|
|
2977
|
+
"dc:modified": {
|
|
2978
|
+
type: "string",
|
|
2979
|
+
description: "The date (and time) the Policy was updated. Note: String values may not be normalized and should not be used for direct comparison."
|
|
2980
|
+
},
|
|
2981
|
+
"dc:publisher": {
|
|
2982
|
+
type: "string",
|
|
2983
|
+
description: "The publisher of the Policy. Note: String values may not be normalized and should not be used for direct comparison."
|
|
2984
|
+
},
|
|
2985
|
+
"dc:subject": {
|
|
2986
|
+
anyOf: [
|
|
2987
|
+
{
|
|
2988
|
+
type: "string"
|
|
2989
|
+
},
|
|
2990
|
+
{
|
|
2991
|
+
type: "array",
|
|
2992
|
+
items: {
|
|
2993
|
+
type: "string"
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
],
|
|
2997
|
+
description: "The subject of the Policy. Note: String values may not be normalized and should not be used for direct comparison."
|
|
2998
|
+
},
|
|
2999
|
+
"dc:coverage": {
|
|
3000
|
+
anyOf: [
|
|
3001
|
+
{
|
|
3002
|
+
type: "string"
|
|
3003
|
+
},
|
|
3004
|
+
{
|
|
3005
|
+
type: "object",
|
|
3006
|
+
properties: {
|
|
3007
|
+
"@id": {
|
|
3008
|
+
type: "string"
|
|
3009
|
+
}
|
|
3010
|
+
},
|
|
3011
|
+
required: [
|
|
3012
|
+
"@id"
|
|
3013
|
+
],
|
|
3014
|
+
additionalProperties: false
|
|
3015
|
+
}
|
|
3016
|
+
],
|
|
3017
|
+
description: "The jurisdiction under which the Policy is relevant. Note: When using string values, they may not be normalized and should not be used for direct comparison. Using \"@id\" references is preferred for comparison purposes."
|
|
3018
|
+
},
|
|
3019
|
+
"dc:replaces": {
|
|
3020
|
+
anyOf: [
|
|
3021
|
+
{
|
|
3022
|
+
type: "string"
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
type: "object",
|
|
3026
|
+
properties: {
|
|
3027
|
+
"@id": {
|
|
3028
|
+
type: "string"
|
|
3029
|
+
}
|
|
3030
|
+
},
|
|
3031
|
+
required: [
|
|
3032
|
+
"@id"
|
|
3033
|
+
],
|
|
3034
|
+
additionalProperties: false
|
|
3035
|
+
}
|
|
3036
|
+
],
|
|
3037
|
+
description: "The identifier of a Policy that this Policy supersedes. Using \"@id\" references is preferred for comparison purposes."
|
|
3038
|
+
},
|
|
3039
|
+
"dc:isReplacedBy": {
|
|
3040
|
+
anyOf: [
|
|
3041
|
+
{
|
|
3042
|
+
type: "string"
|
|
3043
|
+
},
|
|
3044
|
+
{
|
|
3045
|
+
type: "object",
|
|
3046
|
+
properties: {
|
|
3047
|
+
"@id": {
|
|
3048
|
+
type: "string"
|
|
3049
|
+
}
|
|
3050
|
+
},
|
|
3051
|
+
required: [
|
|
3052
|
+
"@id"
|
|
3053
|
+
],
|
|
3054
|
+
additionalProperties: false
|
|
3055
|
+
}
|
|
3056
|
+
],
|
|
3057
|
+
description: "The identifier of a Policy that supersedes this Policy. Using \"@id\" references is preferred for comparison purposes."
|
|
3058
|
+
}
|
|
3059
|
+
};
|
|
3060
|
+
var additionalProperties$3 = false;
|
|
3061
|
+
var description$3 = "Interface for ODRL Policy Metadata using Dublin Core terms. While these aren't explicitly defined in the ODRL spec, they are valid and useful metadata properties that follow Dublin Core standards.";
|
|
3062
|
+
var OdrlPolicyMetadataSchema = {
|
|
3063
|
+
type: type$3,
|
|
3064
|
+
properties: properties$3,
|
|
3065
|
+
additionalProperties: additionalProperties$3,
|
|
3066
|
+
description: description$3
|
|
3067
|
+
};
|
|
3068
|
+
|
|
3069
|
+
var type$2 = "object";
|
|
3070
|
+
var properties$2 = {
|
|
3071
|
+
"@context": {
|
|
3072
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3073
|
+
},
|
|
3074
|
+
"@id": {
|
|
3075
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3076
|
+
},
|
|
3077
|
+
"@included": {
|
|
3078
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3079
|
+
},
|
|
3080
|
+
"@graph": {
|
|
3081
|
+
anyOf: [
|
|
3082
|
+
{
|
|
3083
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
3084
|
+
},
|
|
3085
|
+
{
|
|
3086
|
+
type: "array",
|
|
3087
|
+
items: {
|
|
3088
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
]
|
|
3092
|
+
},
|
|
3093
|
+
"@nest": {
|
|
3094
|
+
anyOf: [
|
|
3095
|
+
{
|
|
3096
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
3097
|
+
},
|
|
3098
|
+
{
|
|
3099
|
+
type: "array",
|
|
3100
|
+
items: {
|
|
3101
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
3102
|
+
}
|
|
3103
|
+
}
|
|
3104
|
+
]
|
|
3105
|
+
},
|
|
3106
|
+
"@type": {
|
|
3107
|
+
anyOf: [
|
|
3108
|
+
{
|
|
3109
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3110
|
+
},
|
|
3111
|
+
{
|
|
3112
|
+
type: "array",
|
|
3113
|
+
items: {
|
|
3114
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3115
|
+
}
|
|
3116
|
+
}
|
|
3117
|
+
]
|
|
3118
|
+
},
|
|
3119
|
+
"@reverse": {
|
|
3120
|
+
type: "object",
|
|
3121
|
+
additionalProperties: {
|
|
3122
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3123
|
+
}
|
|
3124
|
+
},
|
|
3125
|
+
"@index": {
|
|
3126
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3127
|
+
},
|
|
3128
|
+
uid: {
|
|
3129
|
+
type: "string",
|
|
3130
|
+
description: "Optional unique identifier for the rule."
|
|
3131
|
+
},
|
|
3132
|
+
action: {
|
|
3133
|
+
anyOf: [
|
|
3134
|
+
{
|
|
3135
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
3136
|
+
},
|
|
3137
|
+
{
|
|
3138
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
3139
|
+
},
|
|
3140
|
+
{
|
|
3141
|
+
type: "array",
|
|
3142
|
+
items: {
|
|
3143
|
+
anyOf: [
|
|
3144
|
+
{
|
|
3145
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
3146
|
+
},
|
|
3147
|
+
{
|
|
3148
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
3149
|
+
}
|
|
3150
|
+
]
|
|
3151
|
+
}
|
|
3152
|
+
}
|
|
3153
|
+
],
|
|
3154
|
+
description: "The action associated with the rule."
|
|
3155
|
+
},
|
|
3156
|
+
target: {
|
|
3157
|
+
anyOf: [
|
|
3158
|
+
{
|
|
3159
|
+
type: "string"
|
|
3160
|
+
},
|
|
3161
|
+
{
|
|
3162
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
3163
|
+
},
|
|
3164
|
+
{
|
|
3165
|
+
type: "array",
|
|
3166
|
+
items: {
|
|
3167
|
+
anyOf: [
|
|
3168
|
+
{
|
|
3169
|
+
type: "string"
|
|
3170
|
+
},
|
|
3171
|
+
{
|
|
3172
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
3173
|
+
}
|
|
3174
|
+
]
|
|
3175
|
+
}
|
|
3176
|
+
}
|
|
3177
|
+
],
|
|
3178
|
+
description: "The target asset for the rule."
|
|
3179
|
+
},
|
|
3180
|
+
assigner: {
|
|
3181
|
+
anyOf: [
|
|
3182
|
+
{
|
|
3183
|
+
type: "string"
|
|
3184
|
+
},
|
|
3185
|
+
{
|
|
3186
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
3187
|
+
}
|
|
3188
|
+
],
|
|
3189
|
+
description: "The assigner of the rule."
|
|
3190
|
+
},
|
|
3191
|
+
assignee: {
|
|
3192
|
+
anyOf: [
|
|
3193
|
+
{
|
|
3194
|
+
type: "string"
|
|
3195
|
+
},
|
|
3196
|
+
{
|
|
3197
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
3198
|
+
}
|
|
3199
|
+
],
|
|
3200
|
+
description: "The assignee of the rule."
|
|
3201
|
+
},
|
|
3202
|
+
constraint: {
|
|
3203
|
+
type: "array",
|
|
3204
|
+
items: {
|
|
3205
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
3206
|
+
},
|
|
3207
|
+
description: "Constraints applied to the rule."
|
|
3208
|
+
},
|
|
3209
|
+
summary: {
|
|
3210
|
+
type: "string",
|
|
3211
|
+
description: "Additional relation sub-properties as defined in ODRL profiles. For example, 'summary' in profile \"http://example.com/odrl:profile:03\" indicates where the output should be stored."
|
|
3212
|
+
},
|
|
3213
|
+
remedy: {
|
|
3214
|
+
type: "array",
|
|
3215
|
+
items: {
|
|
3216
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
3217
|
+
},
|
|
3218
|
+
description: "The remedies that must be fulfilled if prohibition is violated."
|
|
3219
|
+
}
|
|
3220
|
+
};
|
|
3221
|
+
var additionalProperties$2 = {
|
|
3222
|
+
anyOf: [
|
|
3223
|
+
{
|
|
3224
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
3225
|
+
},
|
|
3226
|
+
{
|
|
3227
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
3228
|
+
},
|
|
3229
|
+
{
|
|
3230
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
3231
|
+
},
|
|
3232
|
+
{
|
|
3233
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
3234
|
+
},
|
|
3235
|
+
{
|
|
3236
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
3237
|
+
},
|
|
3238
|
+
{
|
|
3239
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
3240
|
+
},
|
|
3241
|
+
{
|
|
3242
|
+
type: "array"
|
|
3243
|
+
}
|
|
3244
|
+
]
|
|
3245
|
+
};
|
|
3246
|
+
var description$2 = "Interface for Prohibition Rules.";
|
|
3247
|
+
var OdrlProhibitionSchema = {
|
|
3248
|
+
type: type$2,
|
|
3249
|
+
properties: properties$2,
|
|
3250
|
+
additionalProperties: additionalProperties$2,
|
|
3251
|
+
description: description$2
|
|
3252
|
+
};
|
|
3253
|
+
|
|
3254
|
+
var type$1 = "object";
|
|
3255
|
+
var properties$1 = {
|
|
3256
|
+
"@context": {
|
|
3257
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3258
|
+
},
|
|
3259
|
+
"@id": {
|
|
3260
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3261
|
+
},
|
|
3262
|
+
"@included": {
|
|
3263
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3264
|
+
},
|
|
3265
|
+
"@graph": {
|
|
3266
|
+
anyOf: [
|
|
3267
|
+
{
|
|
3268
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
3269
|
+
},
|
|
3270
|
+
{
|
|
3271
|
+
type: "array",
|
|
3272
|
+
items: {
|
|
3273
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
3274
|
+
}
|
|
3275
|
+
}
|
|
3276
|
+
]
|
|
3277
|
+
},
|
|
3278
|
+
"@nest": {
|
|
3279
|
+
anyOf: [
|
|
3280
|
+
{
|
|
3281
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
3282
|
+
},
|
|
3283
|
+
{
|
|
3284
|
+
type: "array",
|
|
3285
|
+
items: {
|
|
3286
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
3287
|
+
}
|
|
3288
|
+
}
|
|
3289
|
+
]
|
|
3290
|
+
},
|
|
3291
|
+
"@type": {
|
|
3292
|
+
anyOf: [
|
|
3293
|
+
{
|
|
3294
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3295
|
+
},
|
|
3296
|
+
{
|
|
3297
|
+
type: "array",
|
|
3298
|
+
items: {
|
|
3299
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3300
|
+
}
|
|
3301
|
+
}
|
|
3302
|
+
]
|
|
3303
|
+
},
|
|
3304
|
+
"@reverse": {
|
|
3305
|
+
type: "object",
|
|
3306
|
+
additionalProperties: {
|
|
3307
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3308
|
+
}
|
|
3309
|
+
},
|
|
3310
|
+
"@index": {
|
|
3311
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3312
|
+
},
|
|
3313
|
+
uid: {
|
|
3314
|
+
type: "string",
|
|
3315
|
+
description: "Optional unique identifier for the rule."
|
|
3316
|
+
},
|
|
3317
|
+
action: {
|
|
3318
|
+
anyOf: [
|
|
3319
|
+
{
|
|
3320
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
3321
|
+
},
|
|
3322
|
+
{
|
|
3323
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
3324
|
+
},
|
|
3325
|
+
{
|
|
3326
|
+
type: "array",
|
|
3327
|
+
items: {
|
|
3328
|
+
anyOf: [
|
|
3329
|
+
{
|
|
3330
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
3331
|
+
},
|
|
3332
|
+
{
|
|
3333
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
3334
|
+
}
|
|
3335
|
+
]
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3338
|
+
],
|
|
3339
|
+
description: "The action associated with the rule."
|
|
3340
|
+
},
|
|
3341
|
+
target: {
|
|
3342
|
+
anyOf: [
|
|
3343
|
+
{
|
|
3344
|
+
type: "string"
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
3348
|
+
},
|
|
3349
|
+
{
|
|
3350
|
+
type: "array",
|
|
3351
|
+
items: {
|
|
3352
|
+
anyOf: [
|
|
3353
|
+
{
|
|
3354
|
+
type: "string"
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
3358
|
+
}
|
|
3359
|
+
]
|
|
3360
|
+
}
|
|
3361
|
+
}
|
|
3362
|
+
],
|
|
3363
|
+
description: "The target asset for the rule."
|
|
3364
|
+
},
|
|
3365
|
+
assigner: {
|
|
3366
|
+
anyOf: [
|
|
3367
|
+
{
|
|
3368
|
+
type: "string"
|
|
3369
|
+
},
|
|
3370
|
+
{
|
|
3371
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
3372
|
+
}
|
|
3373
|
+
],
|
|
3374
|
+
description: "The assigner of the rule."
|
|
3375
|
+
},
|
|
3376
|
+
assignee: {
|
|
3377
|
+
anyOf: [
|
|
3378
|
+
{
|
|
3379
|
+
type: "string"
|
|
3380
|
+
},
|
|
3381
|
+
{
|
|
3382
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
3383
|
+
}
|
|
3384
|
+
],
|
|
3385
|
+
description: "The assignee of the rule."
|
|
3386
|
+
},
|
|
3387
|
+
constraint: {
|
|
3388
|
+
type: "array",
|
|
3389
|
+
items: {
|
|
3390
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
3391
|
+
},
|
|
3392
|
+
description: "Constraints applied to the rule."
|
|
3393
|
+
},
|
|
3394
|
+
summary: {
|
|
3395
|
+
type: "string",
|
|
3396
|
+
description: "Additional relation sub-properties as defined in ODRL profiles. For example, 'summary' in profile \"http://example.com/odrl:profile:03\" indicates where the output should be stored."
|
|
3397
|
+
}
|
|
3398
|
+
};
|
|
3399
|
+
var additionalProperties$1 = {
|
|
3400
|
+
anyOf: [
|
|
3401
|
+
{
|
|
3402
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
3403
|
+
},
|
|
3404
|
+
{
|
|
3405
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
3406
|
+
},
|
|
3407
|
+
{
|
|
3408
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
3409
|
+
},
|
|
3410
|
+
{
|
|
3411
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
3412
|
+
},
|
|
3413
|
+
{
|
|
3414
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
3415
|
+
},
|
|
3416
|
+
{
|
|
3417
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
3418
|
+
},
|
|
3419
|
+
{
|
|
3420
|
+
type: "array"
|
|
3421
|
+
}
|
|
3422
|
+
]
|
|
3423
|
+
};
|
|
3424
|
+
var description$1 = "Base interface for ODRL Rules.";
|
|
3425
|
+
var OdrlRuleSchema = {
|
|
3426
|
+
type: type$1,
|
|
3427
|
+
properties: properties$1,
|
|
3428
|
+
additionalProperties: additionalProperties$1,
|
|
3429
|
+
description: description$1
|
|
3430
|
+
};
|
|
3431
|
+
|
|
3432
|
+
var type = "object";
|
|
3433
|
+
var properties = {
|
|
3434
|
+
"@context": {
|
|
3435
|
+
$ref: "https://schema.twindev.org/odrl/OdrlContextType",
|
|
3436
|
+
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
3437
|
+
},
|
|
3438
|
+
"@id": {
|
|
3439
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3440
|
+
},
|
|
3441
|
+
"@included": {
|
|
3442
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3443
|
+
},
|
|
3444
|
+
"@graph": {
|
|
3445
|
+
anyOf: [
|
|
3446
|
+
{
|
|
3447
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
3448
|
+
},
|
|
3449
|
+
{
|
|
3450
|
+
type: "array",
|
|
3451
|
+
items: {
|
|
3452
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodeObject"
|
|
3453
|
+
}
|
|
3454
|
+
}
|
|
3455
|
+
]
|
|
3456
|
+
},
|
|
3457
|
+
"@nest": {
|
|
3458
|
+
anyOf: [
|
|
3459
|
+
{
|
|
3460
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
3461
|
+
},
|
|
3462
|
+
{
|
|
3463
|
+
type: "array",
|
|
3464
|
+
items: {
|
|
3465
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdJsonObject"
|
|
3466
|
+
}
|
|
3467
|
+
}
|
|
3468
|
+
]
|
|
3469
|
+
},
|
|
3470
|
+
"@type": {
|
|
3471
|
+
type: "string",
|
|
3472
|
+
"const": "Set",
|
|
3473
|
+
description: "The type must be \"Set\"."
|
|
3474
|
+
},
|
|
3475
|
+
"@reverse": {
|
|
3476
|
+
type: "object",
|
|
3477
|
+
additionalProperties: {
|
|
3478
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3479
|
+
}
|
|
3480
|
+
},
|
|
3481
|
+
"@index": {
|
|
3482
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdKeyword"
|
|
3483
|
+
},
|
|
3484
|
+
uid: {
|
|
3485
|
+
type: "string",
|
|
3486
|
+
description: "The unique identifier for the policy. Must be an IRI."
|
|
3487
|
+
},
|
|
3488
|
+
profile: {
|
|
3489
|
+
anyOf: [
|
|
3490
|
+
{
|
|
3491
|
+
type: "string"
|
|
3492
|
+
},
|
|
3493
|
+
{
|
|
3494
|
+
type: "array",
|
|
3495
|
+
items: {
|
|
3496
|
+
type: "string"
|
|
3497
|
+
}
|
|
3498
|
+
}
|
|
3499
|
+
],
|
|
3500
|
+
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
3501
|
+
},
|
|
3502
|
+
assigner: {
|
|
3503
|
+
anyOf: [
|
|
3504
|
+
{
|
|
3505
|
+
type: "string"
|
|
3506
|
+
},
|
|
3507
|
+
{
|
|
3508
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
3509
|
+
}
|
|
3510
|
+
],
|
|
3511
|
+
description: "The assigner of the policy. Applies to all rules unless overridden at rule level."
|
|
3512
|
+
},
|
|
3513
|
+
assignee: {
|
|
3514
|
+
anyOf: [
|
|
3515
|
+
{
|
|
3516
|
+
type: "string"
|
|
3517
|
+
},
|
|
3518
|
+
{
|
|
3519
|
+
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
3520
|
+
}
|
|
3521
|
+
],
|
|
3522
|
+
description: "The assignee of the policy. Applies to all rules unless overridden at rule level."
|
|
3523
|
+
},
|
|
3524
|
+
target: {
|
|
3525
|
+
anyOf: [
|
|
3526
|
+
{
|
|
3527
|
+
type: "string"
|
|
3528
|
+
},
|
|
3529
|
+
{
|
|
3530
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
type: "array",
|
|
3534
|
+
items: {
|
|
3535
|
+
anyOf: [
|
|
3536
|
+
{
|
|
3537
|
+
type: "string"
|
|
3538
|
+
},
|
|
3539
|
+
{
|
|
3540
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
3541
|
+
}
|
|
3542
|
+
]
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
],
|
|
3546
|
+
description: "The target asset for the rule."
|
|
3547
|
+
},
|
|
3548
|
+
action: {
|
|
3549
|
+
anyOf: [
|
|
3550
|
+
{
|
|
3551
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
3552
|
+
},
|
|
3553
|
+
{
|
|
3554
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
3555
|
+
},
|
|
3556
|
+
{
|
|
3557
|
+
type: "array",
|
|
3558
|
+
items: {
|
|
3559
|
+
anyOf: [
|
|
3560
|
+
{
|
|
3561
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
3562
|
+
},
|
|
3563
|
+
{
|
|
3564
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
3565
|
+
}
|
|
3566
|
+
]
|
|
3567
|
+
}
|
|
3568
|
+
}
|
|
3569
|
+
],
|
|
3570
|
+
description: "The action associated with the rule."
|
|
3571
|
+
},
|
|
3572
|
+
inheritFrom: {
|
|
3573
|
+
anyOf: [
|
|
3574
|
+
{
|
|
3575
|
+
type: "string"
|
|
3576
|
+
},
|
|
3577
|
+
{
|
|
3578
|
+
type: "array",
|
|
3579
|
+
items: {
|
|
3580
|
+
type: "string"
|
|
3581
|
+
}
|
|
3582
|
+
}
|
|
3583
|
+
],
|
|
3584
|
+
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
3585
|
+
},
|
|
3586
|
+
conflict: {
|
|
3587
|
+
$ref: "https://schema.twindev.org/odrl/ConflictStrategyType",
|
|
3588
|
+
description: "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
|
|
3589
|
+
},
|
|
3590
|
+
permission: {
|
|
3591
|
+
type: "array",
|
|
3592
|
+
items: {
|
|
3593
|
+
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
3594
|
+
},
|
|
3595
|
+
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
3596
|
+
},
|
|
3597
|
+
prohibition: {
|
|
3598
|
+
type: "array",
|
|
3599
|
+
items: {
|
|
3600
|
+
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
3601
|
+
},
|
|
3602
|
+
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
3603
|
+
},
|
|
3604
|
+
obligation: {
|
|
3605
|
+
type: "array",
|
|
3606
|
+
items: {
|
|
3607
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
3608
|
+
},
|
|
3609
|
+
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
3610
|
+
}
|
|
3611
|
+
};
|
|
3612
|
+
var required = [
|
|
3613
|
+
"@context",
|
|
3614
|
+
"@type",
|
|
3615
|
+
"uid"
|
|
3616
|
+
];
|
|
3617
|
+
var additionalProperties = {
|
|
3618
|
+
anyOf: [
|
|
3619
|
+
{
|
|
3620
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdNodePrimitive"
|
|
3621
|
+
},
|
|
3622
|
+
{
|
|
3623
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdLanguageMap"
|
|
3624
|
+
},
|
|
3625
|
+
{
|
|
3626
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIndexMap"
|
|
3627
|
+
},
|
|
3628
|
+
{
|
|
3629
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIncludedBlock"
|
|
3630
|
+
},
|
|
3631
|
+
{
|
|
3632
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdIdMap"
|
|
3633
|
+
},
|
|
3634
|
+
{
|
|
3635
|
+
$ref: "https://schema.twindev.org/odrl/JsonLdTypeMap"
|
|
3636
|
+
},
|
|
3637
|
+
{
|
|
3638
|
+
type: "array"
|
|
3639
|
+
}
|
|
3640
|
+
]
|
|
3641
|
+
};
|
|
3642
|
+
var description = "Interface representing an ODRL Set. A Set is a basic policy type with no specific party requirements.";
|
|
3643
|
+
var OdrlSetSchema = {
|
|
3644
|
+
type: type,
|
|
3645
|
+
properties: properties,
|
|
3646
|
+
required: required,
|
|
3647
|
+
additionalProperties: additionalProperties,
|
|
3648
|
+
description: description
|
|
3649
|
+
};
|
|
3650
|
+
|
|
3651
|
+
// Copyright 2024 IOTA Stiftung.
|
|
3652
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3653
|
+
/**
|
|
3654
|
+
* Handle all the data types for ODRL.
|
|
3655
|
+
*/
|
|
3656
|
+
class OdrlDataTypes {
|
|
3657
|
+
/**
|
|
3658
|
+
* Register the JSON-LD Redirects.
|
|
3659
|
+
*/
|
|
3660
|
+
static registerRedirects() {
|
|
3661
|
+
dataJsonLd.JsonLdProcessor.addRedirect(/https?:\/\/www\.w3\.org\/ns\/odrl\/?/, "https://www.w3.org/ns/odrl.jsonld");
|
|
3662
|
+
}
|
|
3663
|
+
/**
|
|
3664
|
+
* Register all the data types.
|
|
3665
|
+
*/
|
|
3666
|
+
static registerTypes() {
|
|
3667
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Policy}`, () => ({
|
|
3668
|
+
context: OdrlContexts.ContextRoot,
|
|
3669
|
+
type: OdrlTypes.Policy,
|
|
3670
|
+
jsonSchema: async () => OdrlPolicySchema
|
|
3671
|
+
}));
|
|
3672
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Asset}`, () => ({
|
|
3673
|
+
context: OdrlContexts.ContextRoot,
|
|
3674
|
+
type: OdrlTypes.Asset,
|
|
3675
|
+
jsonSchema: async () => OdrlAssetSchema
|
|
3676
|
+
}));
|
|
3677
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.AssetCollection}`, () => ({
|
|
3678
|
+
context: OdrlContexts.ContextRoot,
|
|
3679
|
+
type: OdrlTypes.AssetCollection,
|
|
3680
|
+
jsonSchema: async () => OdrlAssetCollectionSchema
|
|
3681
|
+
}));
|
|
3682
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Party}`, () => ({
|
|
3683
|
+
context: OdrlContexts.ContextRoot,
|
|
3684
|
+
type: OdrlTypes.Party,
|
|
3685
|
+
jsonSchema: async () => OdrlPartySchema
|
|
3686
|
+
}));
|
|
3687
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.PartyCollection}`, () => ({
|
|
3688
|
+
context: OdrlContexts.ContextRoot,
|
|
3689
|
+
type: OdrlTypes.PartyCollection,
|
|
3690
|
+
jsonSchema: async () => OdrlPartyCollectionSchema
|
|
3691
|
+
}));
|
|
3692
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Action}`, () => ({
|
|
3693
|
+
context: OdrlContexts.ContextRoot,
|
|
3694
|
+
type: OdrlTypes.Action,
|
|
3695
|
+
jsonSchema: async () => OdrlActionSchema
|
|
3696
|
+
}));
|
|
3697
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Permission}`, () => ({
|
|
3698
|
+
context: OdrlContexts.ContextRoot,
|
|
3699
|
+
type: OdrlTypes.Permission,
|
|
3700
|
+
jsonSchema: async () => OdrlPermissionSchema
|
|
3701
|
+
}));
|
|
3702
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Prohibition}`, () => ({
|
|
3703
|
+
context: OdrlContexts.ContextRoot,
|
|
3704
|
+
type: OdrlTypes.Prohibition,
|
|
3705
|
+
jsonSchema: async () => OdrlProhibitionSchema
|
|
3706
|
+
}));
|
|
3707
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Duty}`, () => ({
|
|
3708
|
+
context: OdrlContexts.ContextRoot,
|
|
3709
|
+
type: OdrlTypes.Duty,
|
|
3710
|
+
jsonSchema: async () => OdrlDutySchema
|
|
3711
|
+
}));
|
|
3712
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Constraint}`, () => ({
|
|
3713
|
+
context: OdrlContexts.ContextRoot,
|
|
3714
|
+
type: OdrlTypes.Constraint,
|
|
3715
|
+
jsonSchema: async () => OdrlConstraintSchema
|
|
3716
|
+
}));
|
|
3717
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.LogicalConstraint}`, () => ({
|
|
3718
|
+
context: OdrlContexts.ContextRoot,
|
|
3719
|
+
type: OdrlTypes.LogicalConstraint,
|
|
3720
|
+
jsonSchema: async () => OdrlLogicalConstraintSchema
|
|
3721
|
+
}));
|
|
3722
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.PolicyMetadata}`, () => ({
|
|
3723
|
+
context: OdrlContexts.ContextRoot,
|
|
3724
|
+
type: OdrlTypes.PolicyMetadata,
|
|
3725
|
+
jsonSchema: async () => OdrlPolicyMetadataSchema
|
|
3726
|
+
}));
|
|
3727
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Set}`, () => ({
|
|
3728
|
+
context: OdrlContexts.ContextRoot,
|
|
3729
|
+
type: OdrlTypes.Set,
|
|
3730
|
+
jsonSchema: async () => OdrlSetSchema
|
|
3731
|
+
}));
|
|
3732
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Offer}`, () => ({
|
|
3733
|
+
context: OdrlContexts.ContextRoot,
|
|
3734
|
+
type: OdrlTypes.Offer,
|
|
3735
|
+
jsonSchema: async () => OdrlOfferSchema
|
|
3736
|
+
}));
|
|
3737
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Agreement}`, () => ({
|
|
3738
|
+
context: OdrlContexts.ContextRoot,
|
|
3739
|
+
type: OdrlTypes.Agreement,
|
|
3740
|
+
jsonSchema: async () => OdrlAgreementSchema
|
|
3741
|
+
}));
|
|
3742
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Rule}`, () => ({
|
|
3743
|
+
context: OdrlContexts.ContextRoot,
|
|
3744
|
+
type: OdrlTypes.Rule,
|
|
3745
|
+
jsonSchema: async () => OdrlRuleSchema
|
|
3746
|
+
}));
|
|
3747
|
+
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.ContextType}`, () => ({
|
|
3748
|
+
context: OdrlContexts.ContextRoot,
|
|
3749
|
+
type: OdrlTypes.ContextType,
|
|
3750
|
+
jsonSchema: async () => OdrlContextTypeSchema
|
|
3751
|
+
}));
|
|
3752
|
+
}
|
|
3753
|
+
}
|
|
3754
|
+
|
|
899
3755
|
exports.ActionTypes = ActionTypes;
|
|
900
3756
|
exports.ConflictStrategyTypes = ConflictStrategyTypes;
|
|
901
|
-
exports.DataType = DataType;
|
|
902
3757
|
exports.LeftOperandType = LeftOperandType;
|
|
903
3758
|
exports.LogicalConstraintType = LogicalConstraintType;
|
|
904
3759
|
exports.OdrlContexts = OdrlContexts;
|
|
3760
|
+
exports.OdrlDataTypes = OdrlDataTypes;
|
|
905
3761
|
exports.OdrlTypes = OdrlTypes;
|
|
906
3762
|
exports.OperatorType = OperatorType;
|
|
907
3763
|
exports.PolicyType = PolicyType;
|