Skip to content

Commit 25fd117

Browse files
valexandeschivmeister
authored andcommitted
feat: fixing changes in Contract
1 parent 2816d7d commit 25fd117

2 files changed

Lines changed: 196 additions & 265 deletions

File tree

src/mappings-can/Contract-can.rml.ttl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ tedm:MG-Contract_ND-SettledContract a rr:TriplesMap ;
7373
# Avoid type-only epo:Contract: only instantiate when at least one mapped value exists.
7474
# Mapped values in this TriplesMap come from: ContractReference, IssueDate, URI, ContractFrameworkIndicator, Funding,
7575
# SettledContractTenderReference, SignatoryParty.
76-
rml:reference "if (exists(cbc:ID) and (exists(efac:ContractReference/cbc:ID) or exists(cbc:IssueDate) or exists(cbc:URI) or exists(efbc:ContractFrameworkIndicator) or exists(efac:Funding) or exists(efac:SettledContractTenderReference) or exists(cac:SignatoryParty))) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/Contract/' || cbc:ID else null" ;
76+
rml:reference "if (exists(cbc:ID) and (exists(efac:ContractReference/cbc:ID) or exists(cbc:IssueDate) or exists(cbc:Title) or exists(cbc:URI) or exists(efbc:ContractFrameworkIndicator) or exists(efac:Funding) or exists(efac:LotTender) or exists(cac:SignatoryParty))) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/Contract/' || cbc:ID else null" ;
7777
rr:class epo:Contract
7878
] ;
7979
rr:predicateObjectMap
@@ -407,8 +407,7 @@ tedm:MG-Contract_ND-LotResultContractReference a rr:TriplesMap ;
407407
rr:subjectMap
408408
[
409409
rdfs:label "ND-SettledContract" ;
410-
# Avoid type-only epo:Contract: this TriplesMap only maps epo:hasLotReference, so require a TenderLot ID.
411-
rml:reference "if (exists(cbc:ID) and exists(../efac:TenderLot/cbc:ID)) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/Contract/' || cbc:ID else null" ;
410+
rr:template "http://data.europa.eu/a4g/resource/{/*/cbc:ID[@schemeName='notice-id']}-{/*/cbc:VersionID}/Contract/{cbc:ID}" ;
412411
rr:class epo:Contract
413412
] ;
414413
rr:predicateObjectMap

0 commit comments

Comments
 (0)