Skip to content

Commit 87a0d38

Browse files
committed
Fix SelectionCriterion mapping for weight predicates in CN v1.3-1.8
The XPaths in the predicates related to weight were wrong according to the iterator of the subject, for SDK v1.3-1.8. However, the versioned mapping used a TMap shared with other predicates from a different node. Therefore, we add a complete mapping in the versioned file with the correct iterator. Related to TEDSWS-320.
1 parent 0c2c3f3 commit 87a0d38

18 files changed

Lines changed: 194 additions & 167 deletions

File tree

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -439,19 +439,6 @@ tedm:MG-Lot_ND-Lot a rr:TriplesMap ;
439439
];
440440
] ;
441441
];
442-
rr:predicateObjectMap
443-
[
444-
rdfs:label "BT-7532-Lot and BT-752-Lot-ThresholdNumber";
445-
rr:predicate epo:specifiesProcurementCriterion;
446-
rr:objectMap
447-
[
448-
rr:parentTriplesMap tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteria ;
449-
rr:joinCondition [
450-
rr:child "path(.)";
451-
rr:parent "path(../../../../../..)";
452-
];
453-
] ;
454-
];
455442
rr:predicateObjectMap
456443
[
457444
rdfs:label "BT-539-Lot, BT-540-Lot and BT-734-Lot";

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -439,19 +439,6 @@ tedm:MG-Lot_ND-Lot a rr:TriplesMap ;
439439
];
440440
] ;
441441
];
442-
rr:predicateObjectMap
443-
[
444-
rdfs:label "BT-7532-Lot and BT-752-Lot-ThresholdNumber";
445-
rr:predicate epo:specifiesProcurementCriterion;
446-
rr:objectMap
447-
[
448-
rr:parentTriplesMap tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteria ;
449-
rr:joinCondition [
450-
rr:child "path(.)";
451-
rr:parent "path(../../../../../..)";
452-
];
453-
] ;
454-
];
455442
rr:predicateObjectMap
456443
[
457444
rdfs:label "BT-539-Lot, BT-540-Lot and BT-734-Lot";

mappings/package_eforms_sdk1.12_epo4.0/transformation/mappings/Lot.rml.ttl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -439,19 +439,6 @@ tedm:MG-Lot_ND-Lot a rr:TriplesMap ;
439439
];
440440
] ;
441441
];
442-
rr:predicateObjectMap
443-
[
444-
rdfs:label "BT-7532-Lot and BT-752-Lot-ThresholdNumber";
445-
rr:predicate epo:specifiesProcurementCriterion;
446-
rr:objectMap
447-
[
448-
rr:parentTriplesMap tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteria ;
449-
rr:joinCondition [
450-
rr:child "path(.)";
451-
rr:parent "path(../../../../../..)";
452-
];
453-
] ;
454-
];
455442
rr:predicateObjectMap
456443
[
457444
rdfs:label "BT-539-Lot, BT-540-Lot and BT-734-Lot";

mappings/package_eforms_sdk1.13_epo4.0/transformation/mappings/Lot.rml.ttl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -439,19 +439,6 @@ tedm:MG-Lot_ND-Lot a rr:TriplesMap ;
439439
];
440440
] ;
441441
];
442-
rr:predicateObjectMap
443-
[
444-
rdfs:label "BT-7532-Lot and BT-752-Lot-ThresholdNumber";
445-
rr:predicate epo:specifiesProcurementCriterion;
446-
rr:objectMap
447-
[
448-
rr:parentTriplesMap tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteria ;
449-
rr:joinCondition [
450-
rr:child "path(.)";
451-
rr:parent "path(../../../../../..)";
452-
];
453-
] ;
454-
];
455442
rr:predicateObjectMap
456443
[
457444
rdfs:label "BT-539-Lot, BT-540-Lot and BT-734-Lot";

mappings/package_eforms_sdk1.3_epo4.0/transformation/mappings/Lot.rml.ttl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -439,19 +439,6 @@ tedm:MG-Lot_ND-Lot a rr:TriplesMap ;
439439
];
440440
] ;
441441
];
442-
rr:predicateObjectMap
443-
[
444-
rdfs:label "BT-7532-Lot and BT-752-Lot-ThresholdNumber";
445-
rr:predicate epo:specifiesProcurementCriterion;
446-
rr:objectMap
447-
[
448-
rr:parentTriplesMap tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteria ;
449-
rr:joinCondition [
450-
rr:child "path(.)";
451-
rr:parent "path(../../../../../..)";
452-
];
453-
] ;
454-
];
455442
rr:predicateObjectMap
456443
[
457444
rdfs:label "BT-539-Lot, BT-540-Lot and BT-734-Lot";

mappings/package_eforms_sdk1.3_epo4.0/transformation/mappings/Lot_v1.3-1.8.rml.ttl

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@
2424
@prefix fno: <https://w3id.org/function/ontology#> .
2525
@prefix idlab-fn: <http://example.com/idlab/function/> .
2626

27+
tedm:MG-Lot_ND-Lot a rr:TriplesMap ;
28+
rr:predicateObjectMap
29+
[
30+
rdfs:label "BT-7532-Lot and BT-752-Lot-ThresholdNumber";
31+
rr:predicate epo:specifiesProcurementCriterion;
32+
rr:objectMap
33+
[
34+
rr:parentTriplesMap tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SecondStageCriterionParameter ;
35+
rr:joinCondition [
36+
rr:child "path(.)" ;
37+
rr:parent "path(../../../../../../..)" ;
38+
] ;
39+
] ;
40+
] ;
41+
.
2742
tedm:MG-SubcontractTerm-foreseesContractSpecificTerm-Lot_ND-SubcontractingObligation a rr:TriplesMap ;
2843
rml:logicalSource
2944
[
@@ -75,8 +90,21 @@ tedm:MG-SubcontractTerm-foreseesContractSpecificTerm-Lot_ND-SubcontractingObliga
7590
]
7691
.
7792

78-
tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteria a rr:TriplesMap ;
79-
rr:predicateObjectMap
93+
tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SecondStageCriterionParameter a rr:TriplesMap ;
94+
rdfs:label "MG-SelectionCriterion" ;
95+
rml:logicalSource
96+
[
97+
rml:source "data/source.xml" ;
98+
rml:iterator "/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cac:TenderingTerms/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:SelectionCriteria/efac:CriterionParameter" ;
99+
rml:referenceFormulation ql:XPath
100+
];
101+
rr:subjectMap
102+
[
103+
rdfs:label "ND-SecondStageCriterionParameter" ;
104+
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_SelectionCriterion_{unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path(..)) || '?response_type=raw')}" ;
105+
rr:class epo:SelectionCriterion
106+
] ;
107+
rr:predicateObjectMap
80108
[
81109
rdfs:label "BT-7532-Lot, BT-752-Lot (threshold)";
82110
rr:predicate epo:hasConstraint ;
@@ -85,7 +113,7 @@ tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteri
85113
rr:parentTriplesMap tedm:MG-Constraint-hasConstraint-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SecondStageCriterionParameter ;
86114
rr:joinCondition [
87115
rr:child "path(.)";
88-
rr:parent "path(..)";
116+
rr:parent "path(.)";
89117
];
90118
] ;
91119
];
@@ -98,7 +126,7 @@ tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteri
98126
[
99127
tedm:minSDKVersion "1.3" ;
100128
tedm:maxSDKVersion "1.8" ;
101-
rdfs:label ":at-voc:number-weight" ;
129+
rdfs:label "at-voc:number-weight" ;
102130
rr:parentTriplesMap tedm:number-weight ;
103131
rr:joinCondition [
104132
rr:child "efbc:ParameterCode[@listName='number-weight']" ;

mappings/package_eforms_sdk1.5_epo4.0/transformation/mappings/Lot.rml.ttl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -439,19 +439,6 @@ tedm:MG-Lot_ND-Lot a rr:TriplesMap ;
439439
];
440440
] ;
441441
];
442-
rr:predicateObjectMap
443-
[
444-
rdfs:label "BT-7532-Lot and BT-752-Lot-ThresholdNumber";
445-
rr:predicate epo:specifiesProcurementCriterion;
446-
rr:objectMap
447-
[
448-
rr:parentTriplesMap tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteria ;
449-
rr:joinCondition [
450-
rr:child "path(.)";
451-
rr:parent "path(../../../../../..)";
452-
];
453-
] ;
454-
];
455442
rr:predicateObjectMap
456443
[
457444
rdfs:label "BT-539-Lot, BT-540-Lot and BT-734-Lot";

mappings/package_eforms_sdk1.5_epo4.0/transformation/mappings/Lot_v1.3-1.8.rml.ttl

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@
2424
@prefix fno: <https://w3id.org/function/ontology#> .
2525
@prefix idlab-fn: <http://example.com/idlab/function/> .
2626

27+
tedm:MG-Lot_ND-Lot a rr:TriplesMap ;
28+
rr:predicateObjectMap
29+
[
30+
rdfs:label "BT-7532-Lot and BT-752-Lot-ThresholdNumber";
31+
rr:predicate epo:specifiesProcurementCriterion;
32+
rr:objectMap
33+
[
34+
rr:parentTriplesMap tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SecondStageCriterionParameter ;
35+
rr:joinCondition [
36+
rr:child "path(.)" ;
37+
rr:parent "path(../../../../../../..)" ;
38+
] ;
39+
] ;
40+
] ;
41+
.
2742
tedm:MG-SubcontractTerm-foreseesContractSpecificTerm-Lot_ND-SubcontractingObligation a rr:TriplesMap ;
2843
rml:logicalSource
2944
[
@@ -75,8 +90,21 @@ tedm:MG-SubcontractTerm-foreseesContractSpecificTerm-Lot_ND-SubcontractingObliga
7590
]
7691
.
7792

78-
tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteria a rr:TriplesMap ;
79-
rr:predicateObjectMap
93+
tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SecondStageCriterionParameter a rr:TriplesMap ;
94+
rdfs:label "MG-SelectionCriterion" ;
95+
rml:logicalSource
96+
[
97+
rml:source "data/source.xml" ;
98+
rml:iterator "/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cac:TenderingTerms/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:SelectionCriteria/efac:CriterionParameter" ;
99+
rml:referenceFormulation ql:XPath
100+
];
101+
rr:subjectMap
102+
[
103+
rdfs:label "ND-SecondStageCriterionParameter" ;
104+
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_SelectionCriterion_{unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path(..)) || '?response_type=raw')}" ;
105+
rr:class epo:SelectionCriterion
106+
] ;
107+
rr:predicateObjectMap
80108
[
81109
rdfs:label "BT-7532-Lot, BT-752-Lot (threshold)";
82110
rr:predicate epo:hasConstraint ;
@@ -85,7 +113,7 @@ tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteri
85113
rr:parentTriplesMap tedm:MG-Constraint-hasConstraint-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SecondStageCriterionParameter ;
86114
rr:joinCondition [
87115
rr:child "path(.)";
88-
rr:parent "path(..)";
116+
rr:parent "path(.)";
89117
];
90118
] ;
91119
];
@@ -98,7 +126,7 @@ tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteri
98126
[
99127
tedm:minSDKVersion "1.3" ;
100128
tedm:maxSDKVersion "1.8" ;
101-
rdfs:label ":at-voc:number-weight" ;
129+
rdfs:label "at-voc:number-weight" ;
102130
rr:parentTriplesMap tedm:number-weight ;
103131
rr:joinCondition [
104132
rr:child "efbc:ParameterCode[@listName='number-weight']" ;

mappings/package_eforms_sdk1.6_epo4.0/transformation/mappings/Lot.rml.ttl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -439,19 +439,6 @@ tedm:MG-Lot_ND-Lot a rr:TriplesMap ;
439439
];
440440
] ;
441441
];
442-
rr:predicateObjectMap
443-
[
444-
rdfs:label "BT-7532-Lot and BT-752-Lot-ThresholdNumber";
445-
rr:predicate epo:specifiesProcurementCriterion;
446-
rr:objectMap
447-
[
448-
rr:parentTriplesMap tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteria ;
449-
rr:joinCondition [
450-
rr:child "path(.)";
451-
rr:parent "path(../../../../../..)";
452-
];
453-
] ;
454-
];
455442
rr:predicateObjectMap
456443
[
457444
rdfs:label "BT-539-Lot, BT-540-Lot and BT-734-Lot";

mappings/package_eforms_sdk1.6_epo4.0/transformation/mappings/Lot_v1.3-1.8.rml.ttl

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@
2424
@prefix fno: <https://w3id.org/function/ontology#> .
2525
@prefix idlab-fn: <http://example.com/idlab/function/> .
2626

27+
tedm:MG-Lot_ND-Lot a rr:TriplesMap ;
28+
rr:predicateObjectMap
29+
[
30+
rdfs:label "BT-7532-Lot and BT-752-Lot-ThresholdNumber";
31+
rr:predicate epo:specifiesProcurementCriterion;
32+
rr:objectMap
33+
[
34+
rr:parentTriplesMap tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SecondStageCriterionParameter ;
35+
rr:joinCondition [
36+
rr:child "path(.)" ;
37+
rr:parent "path(../../../../../../..)" ;
38+
] ;
39+
] ;
40+
] ;
41+
.
2742
tedm:MG-SubcontractTerm-foreseesContractSpecificTerm-Lot_ND-SubcontractingObligation a rr:TriplesMap ;
2843
rml:logicalSource
2944
[
@@ -75,8 +90,21 @@ tedm:MG-SubcontractTerm-foreseesContractSpecificTerm-Lot_ND-SubcontractingObliga
7590
]
7691
.
7792

78-
tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteria a rr:TriplesMap ;
79-
rr:predicateObjectMap
93+
tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SecondStageCriterionParameter a rr:TriplesMap ;
94+
rdfs:label "MG-SelectionCriterion" ;
95+
rml:logicalSource
96+
[
97+
rml:source "data/source.xml" ;
98+
rml:iterator "/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cac:TenderingTerms/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:SelectionCriteria/efac:CriterionParameter" ;
99+
rml:referenceFormulation ql:XPath
100+
];
101+
rr:subjectMap
102+
[
103+
rdfs:label "ND-SecondStageCriterionParameter" ;
104+
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_SelectionCriterion_{unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path(..)) || '?response_type=raw')}" ;
105+
rr:class epo:SelectionCriterion
106+
] ;
107+
rr:predicateObjectMap
80108
[
81109
rdfs:label "BT-7532-Lot, BT-752-Lot (threshold)";
82110
rr:predicate epo:hasConstraint ;
@@ -85,7 +113,7 @@ tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteri
85113
rr:parentTriplesMap tedm:MG-Constraint-hasConstraint-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SecondStageCriterionParameter ;
86114
rr:joinCondition [
87115
rr:child "path(.)";
88-
rr:parent "path(..)";
116+
rr:parent "path(.)";
89117
];
90118
] ;
91119
];
@@ -98,7 +126,7 @@ tedm:MG-SelectionCriterion-specifiesProcurementCriterion-Lot_ND-SelectionCriteri
98126
[
99127
tedm:minSDKVersion "1.3" ;
100128
tedm:maxSDKVersion "1.8" ;
101-
rdfs:label ":at-voc:number-weight" ;
129+
rdfs:label "at-voc:number-weight" ;
102130
rr:parentTriplesMap tedm:number-weight ;
103131
rr:joinCondition [
104132
rr:child "efbc:ParameterCode[@listName='number-weight']" ;

0 commit comments

Comments
 (0)