You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Only instantiate when at least one mapped value will exist (amount and/or currency).
287
+
rml:reference "if (exists(cbc:TotalAmount) and (not(exists(efac:FieldsPrivacy[efbc:FieldIdentifierCode/text()='not-val']) and cbc:TotalAmount/text() = '-1') or (exists(cbc:TotalAmount/@currencyID) and cbc:TotalAmount/@currencyID != 'unpublished'))) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/MonetaryValueNoticeAwardInformation$' || replace(replace(replace(path(), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_') else null" ;
286
288
rr:class epo:MonetaryValue
287
289
] ;
288
290
rr:predicateObjectMap
@@ -324,7 +326,9 @@ tedm:MG-NoticeAwardInformation_ND-NoticeResult a rr:TriplesMap ;
324
326
rr:subjectMap
325
327
[
326
328
rdfs:label "ND-NoticeResult" ;
327
-
rml:reference "if(exists(cbc:TotalAmount) or exists(efbc:OverallMaximumFrameworkContractsAmount) or exists(efbc:OverallApproximateFrameworkContractsAmount)) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/NoticeAwardInformation$' || replace(replace(replace(path(), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_') else null" ;
329
+
# Avoid type-only epo:NoticeAwardInformation:
330
+
# Only instantiate when at least one of the monetary values it links to will be created.
331
+
rml:reference "if ((exists(cbc:TotalAmount) and (not(exists(efac:FieldsPrivacy[efbc:FieldIdentifierCode/text()='not-val']) and cbc:TotalAmount/text() = '-1') or (exists(cbc:TotalAmount/@currencyID) and cbc:TotalAmount/@currencyID != 'unpublished'))) or (exists(efbc:OverallMaximumFrameworkContractsAmount) and (not(exists(efac:FieldsPrivacy[efbc:FieldIdentifierCode/text()='not-max-val']) and efbc:OverallMaximumFrameworkContractsAmount/text() = '-1') or (exists(efbc:OverallMaximumFrameworkContractsAmount/@currencyID) and efbc:OverallMaximumFrameworkContractsAmount/@currencyID != 'unpublished'))) or (exists(efbc:OverallApproximateFrameworkContractsAmount) and (not(exists(efac:FieldsPrivacy[efbc:FieldIdentifierCode/text()='not-app-val']) and efbc:OverallApproximateFrameworkContractsAmount/text() = '-1') or (exists(efbc:OverallApproximateFrameworkContractsAmount/@currencyID) and efbc:OverallApproximateFrameworkContractsAmount/@currencyID != 'unpublished')))) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/NoticeAwardInformation$' || replace(replace(replace(path(), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_') else null" ;
0 commit comments