Skip to content

Commit 130af19

Browse files
committed
Guard against empty LotGroupAwardInformation, optimize TMap linkage
Optimize the linkage to LotGroupAwardInformation by linking to the primary TMap instead of the ancillary one used to represent an MG, as that one did not have the condition required for instantiation.
1 parent 0ff6742 commit 130af19

24 files changed

Lines changed: 24 additions & 228 deletions

File tree

mappings/package_can_v1.10/transformation/mappings/LotGroupAwardInformation-can.rml.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ tedm:MG-MonetaryValue-hasGroupFrameworkAgreementMaximumValue-LotGroupAwardInform
6666
] ;
6767
.
6868

69-
tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA a rr:TriplesMap ;
69+
tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA a rr:TriplesMap ;
7070
rdfs:label "MG-LotGroupAwardInformation";
7171
rml:logicalSource
7272
[

mappings/package_can_v1.10/transformation/mappings/root-can.rml.ttl

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ tedm:MG-ResultNotice_ND-NoticeResult a rr:TriplesMap ;
239239
rr:predicate epo:announcesLotGroupAwardInformation ;
240240
rr:objectMap
241241
[
242-
rr:parentTriplesMap tedm:MG-LotGroupAwardInformation-announcesLotGroupAwardInformation-ResultNotice_ND-NoticeResultGroupFA ;
242+
rr:parentTriplesMap tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA ;
243243
rr:joinCondition [
244244
rr:child "path(.)";
245245
rr:parent "path(..)";
@@ -432,23 +432,6 @@ tedm:MG-MonetaryValue-hasApproximateFrameworkAgreementValue-NoticeAwardInformati
432432
] ;
433433
.
434434

435-
436-
tedm:MG-LotGroupAwardInformation-announcesLotGroupAwardInformation-ResultNotice_ND-NoticeResultGroupFA a rr:TriplesMap ;
437-
rdfs:label "MG-LotGroupAwardInformation";
438-
rml:logicalSource
439-
[
440-
rml:source "data/source.xml" ;
441-
rml:iterator "/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:GroupFramework" ;
442-
rml:referenceFormulation ql:XPath
443-
] ;
444-
rr:subjectMap
445-
[
446-
rdfs:label "ND-NoticeResult";
447-
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_LotGroupAwardInformation_{unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path()) || '?response_type=raw')}" ;
448-
rr:class epo:LotGroupAwardInformation
449-
] ;
450-
.
451-
452435
tedm:MG-ResultNotice_ND-LotResult a rr:TriplesMap ;
453436
rdfs:label "MG-ResultNotice" ;
454437
rml:logicalSource

mappings/package_can_v1.11/transformation/mappings/LotGroupAwardInformation-can.rml.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ tedm:MG-MonetaryValue-hasGroupFrameworkAgreementMaximumValue-LotGroupAwardInform
6666
] ;
6767
.
6868

69-
tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA a rr:TriplesMap ;
69+
tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA a rr:TriplesMap ;
7070
rdfs:label "MG-LotGroupAwardInformation";
7171
rml:logicalSource
7272
[

mappings/package_can_v1.11/transformation/mappings/root-can.rml.ttl

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ tedm:MG-ResultNotice_ND-NoticeResult a rr:TriplesMap ;
239239
rr:predicate epo:announcesLotGroupAwardInformation ;
240240
rr:objectMap
241241
[
242-
rr:parentTriplesMap tedm:MG-LotGroupAwardInformation-announcesLotGroupAwardInformation-ResultNotice_ND-NoticeResultGroupFA ;
242+
rr:parentTriplesMap tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA ;
243243
rr:joinCondition [
244244
rr:child "path(.)";
245245
rr:parent "path(..)";
@@ -432,23 +432,6 @@ tedm:MG-MonetaryValue-hasApproximateFrameworkAgreementValue-NoticeAwardInformati
432432
] ;
433433
.
434434

435-
436-
tedm:MG-LotGroupAwardInformation-announcesLotGroupAwardInformation-ResultNotice_ND-NoticeResultGroupFA a rr:TriplesMap ;
437-
rdfs:label "MG-LotGroupAwardInformation";
438-
rml:logicalSource
439-
[
440-
rml:source "data/source.xml" ;
441-
rml:iterator "/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:GroupFramework" ;
442-
rml:referenceFormulation ql:XPath
443-
] ;
444-
rr:subjectMap
445-
[
446-
rdfs:label "ND-NoticeResult";
447-
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_LotGroupAwardInformation_{unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path()) || '?response_type=raw')}" ;
448-
rr:class epo:LotGroupAwardInformation
449-
] ;
450-
.
451-
452435
tedm:MG-ResultNotice_ND-LotResult a rr:TriplesMap ;
453436
rdfs:label "MG-ResultNotice" ;
454437
rml:logicalSource

mappings/package_can_v1.12/transformation/mappings/LotGroupAwardInformation-can.rml.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ tedm:MG-MonetaryValue-hasGroupFrameworkAgreementMaximumValue-LotGroupAwardInform
6666
] ;
6767
.
6868

69-
tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA a rr:TriplesMap ;
69+
tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA a rr:TriplesMap ;
7070
rdfs:label "MG-LotGroupAwardInformation";
7171
rml:logicalSource
7272
[

mappings/package_can_v1.12/transformation/mappings/root-can.rml.ttl

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ tedm:MG-ResultNotice_ND-NoticeResult a rr:TriplesMap ;
239239
rr:predicate epo:announcesLotGroupAwardInformation ;
240240
rr:objectMap
241241
[
242-
rr:parentTriplesMap tedm:MG-LotGroupAwardInformation-announcesLotGroupAwardInformation-ResultNotice_ND-NoticeResultGroupFA ;
242+
rr:parentTriplesMap tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA ;
243243
rr:joinCondition [
244244
rr:child "path(.)";
245245
rr:parent "path(..)";
@@ -432,23 +432,6 @@ tedm:MG-MonetaryValue-hasApproximateFrameworkAgreementValue-NoticeAwardInformati
432432
] ;
433433
.
434434

435-
436-
tedm:MG-LotGroupAwardInformation-announcesLotGroupAwardInformation-ResultNotice_ND-NoticeResultGroupFA a rr:TriplesMap ;
437-
rdfs:label "MG-LotGroupAwardInformation";
438-
rml:logicalSource
439-
[
440-
rml:source "data/source.xml" ;
441-
rml:iterator "/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:GroupFramework" ;
442-
rml:referenceFormulation ql:XPath
443-
] ;
444-
rr:subjectMap
445-
[
446-
rdfs:label "ND-NoticeResult";
447-
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_LotGroupAwardInformation_{unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path()) || '?response_type=raw')}" ;
448-
rr:class epo:LotGroupAwardInformation
449-
] ;
450-
.
451-
452435
tedm:MG-ResultNotice_ND-LotResult a rr:TriplesMap ;
453436
rdfs:label "MG-ResultNotice" ;
454437
rml:logicalSource

mappings/package_can_v1.13/transformation/mappings/LotGroupAwardInformation-can.rml.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ tedm:MG-MonetaryValue-hasGroupFrameworkAgreementMaximumValue-LotGroupAwardInform
6666
] ;
6767
.
6868

69-
tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA a rr:TriplesMap ;
69+
tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA a rr:TriplesMap ;
7070
rdfs:label "MG-LotGroupAwardInformation";
7171
rml:logicalSource
7272
[

mappings/package_can_v1.13/transformation/mappings/root-can.rml.ttl

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ tedm:MG-ResultNotice_ND-NoticeResult a rr:TriplesMap ;
239239
rr:predicate epo:announcesLotGroupAwardInformation ;
240240
rr:objectMap
241241
[
242-
rr:parentTriplesMap tedm:MG-LotGroupAwardInformation-announcesLotGroupAwardInformation-ResultNotice_ND-NoticeResultGroupFA ;
242+
rr:parentTriplesMap tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA ;
243243
rr:joinCondition [
244244
rr:child "path(.)";
245245
rr:parent "path(..)";
@@ -432,23 +432,6 @@ tedm:MG-MonetaryValue-hasApproximateFrameworkAgreementValue-NoticeAwardInformati
432432
] ;
433433
.
434434

435-
436-
tedm:MG-LotGroupAwardInformation-announcesLotGroupAwardInformation-ResultNotice_ND-NoticeResultGroupFA a rr:TriplesMap ;
437-
rdfs:label "MG-LotGroupAwardInformation";
438-
rml:logicalSource
439-
[
440-
rml:source "data/source.xml" ;
441-
rml:iterator "/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:GroupFramework" ;
442-
rml:referenceFormulation ql:XPath
443-
] ;
444-
rr:subjectMap
445-
[
446-
rdfs:label "ND-NoticeResult";
447-
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_LotGroupAwardInformation_{unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path()) || '?response_type=raw')}" ;
448-
rr:class epo:LotGroupAwardInformation
449-
] ;
450-
.
451-
452435
tedm:MG-ResultNotice_ND-LotResult a rr:TriplesMap ;
453436
rdfs:label "MG-ResultNotice" ;
454437
rml:logicalSource

mappings/package_can_v1.3/transformation/mappings/LotGroupAwardInformation-can.rml.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ tedm:MG-MonetaryValue-hasGroupFrameworkAgreementMaximumValue-LotGroupAwardInform
6666
] ;
6767
.
6868

69-
tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA a rr:TriplesMap ;
69+
tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA a rr:TriplesMap ;
7070
rdfs:label "MG-LotGroupAwardInformation";
7171
rml:logicalSource
7272
[

mappings/package_can_v1.3/transformation/mappings/root-can.rml.ttl

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ tedm:MG-ResultNotice_ND-NoticeResult a rr:TriplesMap ;
239239
rr:predicate epo:announcesLotGroupAwardInformation ;
240240
rr:objectMap
241241
[
242-
rr:parentTriplesMap tedm:MG-LotGroupAwardInformation-announcesLotGroupAwardInformation-ResultNotice_ND-NoticeResultGroupFA ;
242+
rr:parentTriplesMap tedm:MG-LotGroupAwardInformation_ND-NoticeResultGroupFA ;
243243
rr:joinCondition [
244244
rr:child "path(.)";
245245
rr:parent "path(..)";
@@ -432,23 +432,6 @@ tedm:MG-MonetaryValue-hasApproximateFrameworkAgreementValue-NoticeAwardInformati
432432
] ;
433433
.
434434

435-
436-
tedm:MG-LotGroupAwardInformation-announcesLotGroupAwardInformation-ResultNotice_ND-NoticeResultGroupFA a rr:TriplesMap ;
437-
rdfs:label "MG-LotGroupAwardInformation";
438-
rml:logicalSource
439-
[
440-
rml:source "data/source.xml" ;
441-
rml:iterator "/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:GroupFramework" ;
442-
rml:referenceFormulation ql:XPath
443-
] ;
444-
rr:subjectMap
445-
[
446-
rdfs:label "ND-NoticeResult";
447-
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_LotGroupAwardInformation_{unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path()) || '?response_type=raw')}" ;
448-
rr:class epo:LotGroupAwardInformation
449-
] ;
450-
.
451-
452435
tedm:MG-ResultNotice_ND-LotResult a rr:TriplesMap ;
453436
rdfs:label "MG-ResultNotice" ;
454437
rml:logicalSource

0 commit comments

Comments
 (0)