Skip to content

Commit bbb860f

Browse files
ahmadjanaschivmeister
authored andcommitted
Add ContractModificationNotice refersToContractToBeModified, all versions
1 parent 30bfc67 commit bbb860f

24 files changed

Lines changed: 923 additions & 32 deletions

File tree

mappings/package_eforms_sdk1.10_epo4.0/transformation/mappings/ContractModificationInformation-can_v1.7+.rml.ttl

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,38 @@
2525
@prefix fno: <https://w3id.org/function/ontology#> .
2626
@prefix idlab-fn: <http://example.com/idlab/function/> .
2727

28-
tedm:MG-ContractModificationInformation_ND-Modification a rr:TriplesMap ;
28+
tedm:MG-ContractModificationNotice_ND-ModifiedSection a rr:TriplesMap ;
29+
rdfs:label "MG-ContractModificationNotice" ;
30+
rml:logicalSource
31+
[
32+
rml:source "data/source.xml" ;
33+
rml:iterator "/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:ContractModification" ;
34+
rml:referenceFormulation ql:XPath
35+
] ;
36+
rr:subjectMap
37+
[
38+
rdfs:label "ND-ModifiedSection" ;
39+
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_Notice" ;
40+
rr:class epo-not:ContractModificationNotice
41+
] ;
42+
rr:predicateObjectMap
43+
[
44+
# VERINFO: theoretically this is up to v1.10 but from v1.11 BT-1501(c) takes over, so there is no upper limit here
45+
rdfs:label "BT-1501(s)-Contract" ;
46+
rdfs:comment "Relation between Contract and ContractModificationNotice under ND-ModifiedSection" ;
47+
tedm:minSDKVersion "1.7" ;
48+
rr:predicate epo:refersToContractToBeModified ;
49+
rr:objectMap
50+
[
51+
rr:parentTriplesMap tedm:MG-Contract-refersToContractToBeModified-ContractModificationNotice_ND-ModifiedSection ;
52+
rr:joinCondition [
53+
rr:child "path(.)" ;
54+
rr:parent "path(../..)" ;
55+
];
56+
] ;
57+
] ;
58+
.
59+
tedm:MG-ContractModificationInformation_ND-ModifiedSection a rr:TriplesMap ;
2960
rdfs:label "MG-ContractModificationInformation" ;
3061
rml:logicalSource
3162
[
@@ -35,7 +66,7 @@ tedm:MG-ContractModificationInformation_ND-Modification a rr:TriplesMap ;
3566
] ;
3667
rr:subjectMap
3768
[
38-
rdfs:label "ND-Modification" ;
69+
rdfs:label "ND-ModifiedSection" ;
3970
rml:reference "if (exists(efac:ChangedSection/efbc:ChangedSectionIdentifier)) then 'http://data.europa.eu/a4g/resource/id_' || replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '_ContractModificationInformation_' || unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path(..)) || '?response_type=raw') else null" ;
4071
rr:class epo-con:ContractModificationInformation
4172
] ;
@@ -135,7 +166,23 @@ tedm:MG-Contract-amendsContract-ContractAmendment_ND-ModifiedSection a rr:Triple
135166
] ;
136167
rr:subjectMap
137168
[
138-
rdfs:label "ND-Modification" ;
169+
rdfs:label "ND-ModifiedSection" ;
170+
rml:reference "if (starts-with(efbc:ChangedSectionIdentifier/text(), 'CON')) then 'http://data.europa.eu/a4g/resource/id_' || replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '_SettledContract_' || efbc:ChangedSectionIdentifier else null";
171+
rr:class epo:Contract
172+
] ;
173+
.
174+
175+
tedm:MG-Contract-refersToContractToBeModified-ContractModificationNotice_ND-ModifiedSection a rr:TriplesMap ;
176+
rdfs:label "MG-Contract" ;
177+
rml:logicalSource
178+
[
179+
rml:source "data/source.xml" ;
180+
rml:iterator "/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:ContractModification/efac:Change/efac:ChangedSection" ;
181+
rml:referenceFormulation ql:XPath
182+
] ;
183+
rr:subjectMap
184+
[
185+
rdfs:label "ND-ModifiedSection" ;
139186
rml:reference "if (starts-with(efbc:ChangedSectionIdentifier/text(), 'CON')) then 'http://data.europa.eu/a4g/resource/id_' || replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '_SettledContract_' || efbc:ChangedSectionIdentifier else null";
140187
rr:class epo:Contract
141188
] ;

mappings/package_eforms_sdk1.10_epo4.0/transformation/mappings/root-can-modif.rml.ttl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,21 @@ tedm:MG-ContractModificationNotice_ND-ContractModification a rr:TriplesMap ;
9191
];
9292
] ;
9393
] ;
94+
rr:predicateObjectMap
95+
[
96+
rdfs:label "BT-1501(c)-Contract" ;
97+
rdfs:comment "Relation between Contract and ContractModificationNotice under ND-ContractModification" ;
98+
tedm:minSDKVersion "1.11" ;
99+
rr:predicate epo:refersToContractToBeModified ;
100+
rr:objectMap
101+
[
102+
rr:parentTriplesMap tedm:MG-Contract-refersToContractToBeModified-ContractModificationNotice_ND-ContractModification ;
103+
rr:joinCondition [
104+
rr:child "path(.)" ;
105+
rr:parent "path(.)" ;
106+
];
107+
] ;
108+
] ;
94109
.
95110

96111
tedm:MG-Notice-refersToPrevious-ContractModificationNotice_ND-ContractModification a rr:TriplesMap ;
@@ -221,3 +236,18 @@ tedm:MG-Contract-amendsContract-ContractAmendment_ND-ContractModification a rr:T
221236
rr:class epo:Contract
222237
] ;
223238
.
239+
tedm:MG-Contract-refersToContractToBeModified-ContractModificationNotice_ND-ContractModification a rr:TriplesMap ;
240+
rdfs:label "MG-Contract" ;
241+
rml:logicalSource
242+
[
243+
rml:source "data/source.xml" ;
244+
rml:iterator "/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:ContractModification" ;
245+
rml:referenceFormulation ql:XPath
246+
] ;
247+
rr:subjectMap
248+
[
249+
rdfs:label "ND-ContractModification" ;
250+
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_SettledContract_{efbc:ModifiedContractIdentifier}" ;
251+
rr:class epo:Contract
252+
] ;
253+
.

mappings/package_eforms_sdk1.11_epo4.0/transformation/mappings/ContractModificationInformation-can_v1.7+.rml.ttl

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,38 @@
2525
@prefix fno: <https://w3id.org/function/ontology#> .
2626
@prefix idlab-fn: <http://example.com/idlab/function/> .
2727

28-
tedm:MG-ContractModificationInformation_ND-Modification a rr:TriplesMap ;
28+
tedm:MG-ContractModificationNotice_ND-ModifiedSection a rr:TriplesMap ;
29+
rdfs:label "MG-ContractModificationNotice" ;
30+
rml:logicalSource
31+
[
32+
rml:source "data/source.xml" ;
33+
rml:iterator "/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:ContractModification" ;
34+
rml:referenceFormulation ql:XPath
35+
] ;
36+
rr:subjectMap
37+
[
38+
rdfs:label "ND-ModifiedSection" ;
39+
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_Notice" ;
40+
rr:class epo-not:ContractModificationNotice
41+
] ;
42+
rr:predicateObjectMap
43+
[
44+
# VERINFO: theoretically this is up to v1.10 but from v1.11 BT-1501(c) takes over, so there is no upper limit here
45+
rdfs:label "BT-1501(s)-Contract" ;
46+
rdfs:comment "Relation between Contract and ContractModificationNotice under ND-ModifiedSection" ;
47+
tedm:minSDKVersion "1.7" ;
48+
rr:predicate epo:refersToContractToBeModified ;
49+
rr:objectMap
50+
[
51+
rr:parentTriplesMap tedm:MG-Contract-refersToContractToBeModified-ContractModificationNotice_ND-ModifiedSection ;
52+
rr:joinCondition [
53+
rr:child "path(.)" ;
54+
rr:parent "path(../..)" ;
55+
];
56+
] ;
57+
] ;
58+
.
59+
tedm:MG-ContractModificationInformation_ND-ModifiedSection a rr:TriplesMap ;
2960
rdfs:label "MG-ContractModificationInformation" ;
3061
rml:logicalSource
3162
[
@@ -35,7 +66,7 @@ tedm:MG-ContractModificationInformation_ND-Modification a rr:TriplesMap ;
3566
] ;
3667
rr:subjectMap
3768
[
38-
rdfs:label "ND-Modification" ;
69+
rdfs:label "ND-ModifiedSection" ;
3970
rml:reference "if (exists(efac:ChangedSection/efbc:ChangedSectionIdentifier)) then 'http://data.europa.eu/a4g/resource/id_' || replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '_ContractModificationInformation_' || unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path(..)) || '?response_type=raw') else null" ;
4071
rr:class epo-con:ContractModificationInformation
4172
] ;
@@ -135,7 +166,23 @@ tedm:MG-Contract-amendsContract-ContractAmendment_ND-ModifiedSection a rr:Triple
135166
] ;
136167
rr:subjectMap
137168
[
138-
rdfs:label "ND-Modification" ;
169+
rdfs:label "ND-ModifiedSection" ;
170+
rml:reference "if (starts-with(efbc:ChangedSectionIdentifier/text(), 'CON')) then 'http://data.europa.eu/a4g/resource/id_' || replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '_SettledContract_' || efbc:ChangedSectionIdentifier else null";
171+
rr:class epo:Contract
172+
] ;
173+
.
174+
175+
tedm:MG-Contract-refersToContractToBeModified-ContractModificationNotice_ND-ModifiedSection a rr:TriplesMap ;
176+
rdfs:label "MG-Contract" ;
177+
rml:logicalSource
178+
[
179+
rml:source "data/source.xml" ;
180+
rml:iterator "/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:ContractModification/efac:Change/efac:ChangedSection" ;
181+
rml:referenceFormulation ql:XPath
182+
] ;
183+
rr:subjectMap
184+
[
185+
rdfs:label "ND-ModifiedSection" ;
139186
rml:reference "if (starts-with(efbc:ChangedSectionIdentifier/text(), 'CON')) then 'http://data.europa.eu/a4g/resource/id_' || replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '_SettledContract_' || efbc:ChangedSectionIdentifier else null";
140187
rr:class epo:Contract
141188
] ;

mappings/package_eforms_sdk1.11_epo4.0/transformation/mappings/root-can-modif.rml.ttl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,21 @@ tedm:MG-ContractModificationNotice_ND-ContractModification a rr:TriplesMap ;
9191
];
9292
] ;
9393
] ;
94+
rr:predicateObjectMap
95+
[
96+
rdfs:label "BT-1501(c)-Contract" ;
97+
rdfs:comment "Relation between Contract and ContractModificationNotice under ND-ContractModification" ;
98+
tedm:minSDKVersion "1.11" ;
99+
rr:predicate epo:refersToContractToBeModified ;
100+
rr:objectMap
101+
[
102+
rr:parentTriplesMap tedm:MG-Contract-refersToContractToBeModified-ContractModificationNotice_ND-ContractModification ;
103+
rr:joinCondition [
104+
rr:child "path(.)" ;
105+
rr:parent "path(.)" ;
106+
];
107+
] ;
108+
] ;
94109
.
95110

96111
tedm:MG-Notice-refersToPrevious-ContractModificationNotice_ND-ContractModification a rr:TriplesMap ;
@@ -221,3 +236,18 @@ tedm:MG-Contract-amendsContract-ContractAmendment_ND-ContractModification a rr:T
221236
rr:class epo:Contract
222237
] ;
223238
.
239+
tedm:MG-Contract-refersToContractToBeModified-ContractModificationNotice_ND-ContractModification a rr:TriplesMap ;
240+
rdfs:label "MG-Contract" ;
241+
rml:logicalSource
242+
[
243+
rml:source "data/source.xml" ;
244+
rml:iterator "/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:ContractModification" ;
245+
rml:referenceFormulation ql:XPath
246+
] ;
247+
rr:subjectMap
248+
[
249+
rdfs:label "ND-ContractModification" ;
250+
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_SettledContract_{efbc:ModifiedContractIdentifier}" ;
251+
rr:class epo:Contract
252+
] ;
253+
.

mappings/package_eforms_sdk1.12_epo4.0/transformation/mappings/ContractModificationInformation-can_v1.7+.rml.ttl

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,38 @@
2525
@prefix fno: <https://w3id.org/function/ontology#> .
2626
@prefix idlab-fn: <http://example.com/idlab/function/> .
2727

28-
tedm:MG-ContractModificationInformation_ND-Modification a rr:TriplesMap ;
28+
tedm:MG-ContractModificationNotice_ND-ModifiedSection a rr:TriplesMap ;
29+
rdfs:label "MG-ContractModificationNotice" ;
30+
rml:logicalSource
31+
[
32+
rml:source "data/source.xml" ;
33+
rml:iterator "/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:ContractModification" ;
34+
rml:referenceFormulation ql:XPath
35+
] ;
36+
rr:subjectMap
37+
[
38+
rdfs:label "ND-ModifiedSection" ;
39+
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_Notice" ;
40+
rr:class epo-not:ContractModificationNotice
41+
] ;
42+
rr:predicateObjectMap
43+
[
44+
# VERINFO: theoretically this is up to v1.10 but from v1.11 BT-1501(c) takes over, so there is no upper limit here
45+
rdfs:label "BT-1501(s)-Contract" ;
46+
rdfs:comment "Relation between Contract and ContractModificationNotice under ND-ModifiedSection" ;
47+
tedm:minSDKVersion "1.7" ;
48+
rr:predicate epo:refersToContractToBeModified ;
49+
rr:objectMap
50+
[
51+
rr:parentTriplesMap tedm:MG-Contract-refersToContractToBeModified-ContractModificationNotice_ND-ModifiedSection ;
52+
rr:joinCondition [
53+
rr:child "path(.)" ;
54+
rr:parent "path(../..)" ;
55+
];
56+
] ;
57+
] ;
58+
.
59+
tedm:MG-ContractModificationInformation_ND-ModifiedSection a rr:TriplesMap ;
2960
rdfs:label "MG-ContractModificationInformation" ;
3061
rml:logicalSource
3162
[
@@ -35,7 +66,7 @@ tedm:MG-ContractModificationInformation_ND-Modification a rr:TriplesMap ;
3566
] ;
3667
rr:subjectMap
3768
[
38-
rdfs:label "ND-Modification" ;
69+
rdfs:label "ND-ModifiedSection" ;
3970
rml:reference "if (exists(efac:ChangedSection/efbc:ChangedSectionIdentifier)) then 'http://data.europa.eu/a4g/resource/id_' || replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '_ContractModificationInformation_' || unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path(..)) || '?response_type=raw') else null" ;
4071
rr:class epo-con:ContractModificationInformation
4172
] ;
@@ -135,7 +166,23 @@ tedm:MG-Contract-amendsContract-ContractAmendment_ND-ModifiedSection a rr:Triple
135166
] ;
136167
rr:subjectMap
137168
[
138-
rdfs:label "ND-Modification" ;
169+
rdfs:label "ND-ModifiedSection" ;
170+
rml:reference "if (starts-with(efbc:ChangedSectionIdentifier/text(), 'CON')) then 'http://data.europa.eu/a4g/resource/id_' || replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '_SettledContract_' || efbc:ChangedSectionIdentifier else null";
171+
rr:class epo:Contract
172+
] ;
173+
.
174+
175+
tedm:MG-Contract-refersToContractToBeModified-ContractModificationNotice_ND-ModifiedSection a rr:TriplesMap ;
176+
rdfs:label "MG-Contract" ;
177+
rml:logicalSource
178+
[
179+
rml:source "data/source.xml" ;
180+
rml:iterator "/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:ContractModification/efac:Change/efac:ChangedSection" ;
181+
rml:referenceFormulation ql:XPath
182+
] ;
183+
rr:subjectMap
184+
[
185+
rdfs:label "ND-ModifiedSection" ;
139186
rml:reference "if (starts-with(efbc:ChangedSectionIdentifier/text(), 'CON')) then 'http://data.europa.eu/a4g/resource/id_' || replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '_SettledContract_' || efbc:ChangedSectionIdentifier else null";
140187
rr:class epo:Contract
141188
] ;

mappings/package_eforms_sdk1.12_epo4.0/transformation/mappings/root-can-modif.rml.ttl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,21 @@ tedm:MG-ContractModificationNotice_ND-ContractModification a rr:TriplesMap ;
9191
];
9292
] ;
9393
] ;
94+
rr:predicateObjectMap
95+
[
96+
rdfs:label "BT-1501(c)-Contract" ;
97+
rdfs:comment "Relation between Contract and ContractModificationNotice under ND-ContractModification" ;
98+
tedm:minSDKVersion "1.11" ;
99+
rr:predicate epo:refersToContractToBeModified ;
100+
rr:objectMap
101+
[
102+
rr:parentTriplesMap tedm:MG-Contract-refersToContractToBeModified-ContractModificationNotice_ND-ContractModification ;
103+
rr:joinCondition [
104+
rr:child "path(.)" ;
105+
rr:parent "path(.)" ;
106+
];
107+
] ;
108+
] ;
94109
.
95110

96111
tedm:MG-Notice-refersToPrevious-ContractModificationNotice_ND-ContractModification a rr:TriplesMap ;
@@ -221,3 +236,18 @@ tedm:MG-Contract-amendsContract-ContractAmendment_ND-ContractModification a rr:T
221236
rr:class epo:Contract
222237
] ;
223238
.
239+
tedm:MG-Contract-refersToContractToBeModified-ContractModificationNotice_ND-ContractModification a rr:TriplesMap ;
240+
rdfs:label "MG-Contract" ;
241+
rml:logicalSource
242+
[
243+
rml:source "data/source.xml" ;
244+
rml:iterator "/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:ContractModification" ;
245+
rml:referenceFormulation ql:XPath
246+
] ;
247+
rr:subjectMap
248+
[
249+
rdfs:label "ND-ContractModification" ;
250+
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_SettledContract_{efbc:ModifiedContractIdentifier}" ;
251+
rr:class epo:Contract
252+
] ;
253+
.

0 commit comments

Comments
 (0)