Skip to content

Commit bc6a884

Browse files
committed
Fix Notice->LotGroup refersTo only for can, can-modif, compl
The mapping for Notice refersTo LotGroup was added as a blanket for all notice subtypes in the root mapping file. However, according to ePO 4, this relationship applies only in certain subtypes ResultNotice (in root-can), ContractModificationNotice (in root-can-modif) and CompletionNotice (in root-compl). Move the mapping accordingly and update all sample outputs.
1 parent 9ac51b8 commit bc6a884

56 files changed

Lines changed: 330 additions & 122 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ tedm:MG-ContractModificationNotice_ND-Root
4747
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_Notice" ;
4848
rr:class epo-not:ContractModificationNotice
4949
] ;
50+
rr:predicateObjectMap
51+
[
52+
rdfs:label "MG-LotGroup-refersToLotGroup-ContractModificationNotice" ;
53+
rdfs:comment "MG-LotGroup-refersToLotGroup-ContractModificationNotice under ND-LotsGroup" ;
54+
rr:predicate epo:refersToLotGroup ;
55+
rr:objectMap
56+
[
57+
rr:parentTriplesMap tedm:MG-LotGroup_ND-LotsGroup
58+
] ;
59+
] ;
5060
.
5161

5262
tedm:MG-ContractModificationNotice_ND-ContractModification a rr:TriplesMap ;

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ tedm:MG-ResultNotice_ND-Root
9090
rr:parentTriplesMap tedm:MG-ReviewRequester_ND-AppealingParty;
9191
] ;
9292
] ;
93+
rr:predicateObjectMap
94+
[
95+
rdfs:label "MG-LotGroup-refersToLotGroup-ResultNotice" ;
96+
rdfs:comment "MG-LotGroup-refersToLotGroup-ResultNotice under ND-LotsGroup" ;
97+
rr:predicate epo:refersToLotGroup ;
98+
rr:objectMap
99+
[
100+
rr:parentTriplesMap tedm:MG-LotGroup_ND-LotsGroup
101+
] ;
102+
] ;
93103
.
94104

95105
tedm:MG-AgentInRole-announcesRole-Notice_ND-Root_CAN a rr:TriplesMap ;

mappings/package_eforms_sdk1.10_epo4.0/transformation/mappings/root-compl.ttl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ tedm:MG-CompletionNotice_ND-Root
8787
rr:parentTriplesMap tedm:MG-ReviewRequester_ND-AppealingParty ;
8888
] ;
8989
] ;
90+
rr:predicateObjectMap
91+
[
92+
rdfs:label "MG-LotGroup-refersToLotGroup-CompletionNotice" ;
93+
rdfs:comment "MG-LotGroup-refersToLotGroup-Notice under ND-LotsGroup" ;
94+
rr:predicate epo:refersToLotGroup ;
95+
rr:objectMap
96+
[
97+
rr:parentTriplesMap tedm:MG-LotGroup_ND-LotsGroup
98+
] ;
99+
] ;
90100
.
91101

92102
##--- Function Parameters ---

mappings/package_eforms_sdk1.10_epo4.0/transformation/mappings/root.rml.ttl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -612,16 +612,6 @@ tedm:MG-Notice_ND-Root
612612
rr:parentTriplesMap tedm:MG-Lot_ND-Lot
613613
] ;
614614
] ;
615-
rr:predicateObjectMap
616-
[
617-
rdfs:label "MG-LotGroup-refersToLotGroup-Notice" ;
618-
rdfs:comment "MG-LotGroup-refersToLotGroup-Notice under ND-Lot" ;
619-
rr:predicate epo:refersToLotGroup ;
620-
rr:objectMap
621-
[
622-
rr:parentTriplesMap tedm:MG-LotGroup_ND-LotsGroup
623-
] ;
624-
] ;
625615
# rr:predicateObjectMap
626616
# [
627617
# rdfs:comment "Future Notice for MG-ProcessPlanningTerm under ND-Root" ;

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ tedm:MG-ContractModificationNotice_ND-Root
4747
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_Notice" ;
4848
rr:class epo-not:ContractModificationNotice
4949
] ;
50+
rr:predicateObjectMap
51+
[
52+
rdfs:label "MG-LotGroup-refersToLotGroup-ContractModificationNotice" ;
53+
rdfs:comment "MG-LotGroup-refersToLotGroup-ContractModificationNotice under ND-LotsGroup" ;
54+
rr:predicate epo:refersToLotGroup ;
55+
rr:objectMap
56+
[
57+
rr:parentTriplesMap tedm:MG-LotGroup_ND-LotsGroup
58+
] ;
59+
] ;
5060
.
5161

5262
tedm:MG-ContractModificationNotice_ND-ContractModification a rr:TriplesMap ;

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ tedm:MG-ResultNotice_ND-Root
9090
rr:parentTriplesMap tedm:MG-ReviewRequester_ND-AppealingParty;
9191
] ;
9292
] ;
93+
rr:predicateObjectMap
94+
[
95+
rdfs:label "MG-LotGroup-refersToLotGroup-ResultNotice" ;
96+
rdfs:comment "MG-LotGroup-refersToLotGroup-ResultNotice under ND-LotsGroup" ;
97+
rr:predicate epo:refersToLotGroup ;
98+
rr:objectMap
99+
[
100+
rr:parentTriplesMap tedm:MG-LotGroup_ND-LotsGroup
101+
] ;
102+
] ;
93103
.
94104

95105
tedm:MG-AgentInRole-announcesRole-Notice_ND-Root_CAN a rr:TriplesMap ;

mappings/package_eforms_sdk1.11_epo4.0/transformation/mappings/root-compl.ttl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ tedm:MG-CompletionNotice_ND-Root
8787
rr:parentTriplesMap tedm:MG-ReviewRequester_ND-AppealingParty ;
8888
] ;
8989
] ;
90+
rr:predicateObjectMap
91+
[
92+
rdfs:label "MG-LotGroup-refersToLotGroup-CompletionNotice" ;
93+
rdfs:comment "MG-LotGroup-refersToLotGroup-Notice under ND-LotsGroup" ;
94+
rr:predicate epo:refersToLotGroup ;
95+
rr:objectMap
96+
[
97+
rr:parentTriplesMap tedm:MG-LotGroup_ND-LotsGroup
98+
] ;
99+
] ;
90100
.
91101

92102
##--- Function Parameters ---

mappings/package_eforms_sdk1.11_epo4.0/transformation/mappings/root.rml.ttl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -612,16 +612,6 @@ tedm:MG-Notice_ND-Root
612612
rr:parentTriplesMap tedm:MG-Lot_ND-Lot
613613
] ;
614614
] ;
615-
rr:predicateObjectMap
616-
[
617-
rdfs:label "MG-LotGroup-refersToLotGroup-Notice" ;
618-
rdfs:comment "MG-LotGroup-refersToLotGroup-Notice under ND-Lot" ;
619-
rr:predicate epo:refersToLotGroup ;
620-
rr:objectMap
621-
[
622-
rr:parentTriplesMap tedm:MG-LotGroup_ND-LotsGroup
623-
] ;
624-
] ;
625615
# rr:predicateObjectMap
626616
# [
627617
# rdfs:comment "Future Notice for MG-ProcessPlanningTerm under ND-Root" ;

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ tedm:MG-ContractModificationNotice_ND-Root
4747
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_Notice" ;
4848
rr:class epo-not:ContractModificationNotice
4949
] ;
50+
rr:predicateObjectMap
51+
[
52+
rdfs:label "MG-LotGroup-refersToLotGroup-ContractModificationNotice" ;
53+
rdfs:comment "MG-LotGroup-refersToLotGroup-ContractModificationNotice under ND-LotsGroup" ;
54+
rr:predicate epo:refersToLotGroup ;
55+
rr:objectMap
56+
[
57+
rr:parentTriplesMap tedm:MG-LotGroup_ND-LotsGroup
58+
] ;
59+
] ;
5060
.
5161

5262
tedm:MG-ContractModificationNotice_ND-ContractModification a rr:TriplesMap ;

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ tedm:MG-ResultNotice_ND-Root
9090
rr:parentTriplesMap tedm:MG-ReviewRequester_ND-AppealingParty;
9191
] ;
9292
] ;
93+
rr:predicateObjectMap
94+
[
95+
rdfs:label "MG-LotGroup-refersToLotGroup-ResultNotice" ;
96+
rdfs:comment "MG-LotGroup-refersToLotGroup-ResultNotice under ND-LotsGroup" ;
97+
rr:predicate epo:refersToLotGroup ;
98+
rr:objectMap
99+
[
100+
rr:parentTriplesMap tedm:MG-LotGroup_ND-LotsGroup
101+
] ;
102+
] ;
93103
.
94104

95105
tedm:MG-AgentInRole-announcesRole-Notice_ND-Root_CAN a rr:TriplesMap ;

0 commit comments

Comments
 (0)