@@ -35,7 +35,7 @@ tedm:MG-Identifier-identifier-Contract_ND-SettledContract a rr:TriplesMap ;
3535 rr:subjectMap
3636 [
3737 rdfs:label " ND-SettledContract" ;
38- rml:reference " if (exists(efac:ContractReference/cbc:ID)) then 'http://data.europa.eu/a4g/resource/' || replace(replace( /*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '-' || /*/cbc:VersionID || '/SettledContractIdentifier$' || replace(replace(replace(path(.), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_') else null" ;
38+ rml:reference " if (exists(efac:ContractReference/cbc:ID)) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/SettledContractIdentifier$' || replace(replace(replace(path(.), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_') else null" ;
3939 rr:class adms:Identifier
4040 ] ;
4141 rr:predicateObjectMap
@@ -70,7 +70,7 @@ tedm:MG-Contract_ND-SettledContract a rr:TriplesMap ;
7070 rr:subjectMap
7171 [
7272 rdfs:label " ND-SettledContract" ;
73- rr:template " http://data.europa.eu/a4g/resource/{replace(replace( /*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') }-{/*/cbc:VersionID}/SettledContract/{cbc:ID}" ;
73+ rr:template " http://data.europa.eu/a4g/resource/{/*/cbc:ID[@schemeName='notice-id']}-{/*/cbc:VersionID}/SettledContract/{cbc:ID}" ;
7474 rr:class epo:Contract
7575 ] ;
7676 rr:predicateObjectMap
@@ -217,7 +217,7 @@ tedm:MG-Fund_ND-SettledContract a rr:TriplesMap ;
217217 rr:subjectMap
218218 [
219219 rdfs:label " ND-SettledContract" ;
220- rml:reference " if (exists(efac:Funding)) then 'http://data.europa.eu/a4g/resource/' || replace(replace( /*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '-' || /*/cbc:VersionID || '/ContractFund$' || replace(replace(replace(path(.), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_') else null" ;
220+ rml:reference " if (exists(efac:Funding)) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/ContractFund$' || replace(replace(replace(path(.), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_') else null" ;
221221 rr:class epo:Fund
222222 ] ;
223223 .
@@ -232,7 +232,7 @@ tedm:MG-Fund-isFundedBy-Contract_ND-SettledContract a rr:TriplesMap ;
232232 rr:subjectMap
233233 [
234234 rdfs:label " ND-SettledContract" ;
235- rml:reference " if (exists(efac:Funding)) then 'http://data.europa.eu/a4g/resource/' || replace(replace( /*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '-' || /*/cbc:VersionID || '/ContractFund$' || replace(replace(replace(path(.), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_') else null" ;
235+ rml:reference " if (exists(efac:Funding)) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/ContractFund$' || replace(replace(replace(path(.), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_') else null" ;
236236 rr:class epo:Fund
237237 ] ;
238238 rr:predicateObjectMap
@@ -263,7 +263,7 @@ tedm:MG-Identifier-identifier-Fund-isFundedBy-Contract_ND-ContractEUFunds a rr:T
263263 rr:subjectMap
264264 [
265265 rdfs:label " ND-ContractEUFunds" ;
266- rml:reference " if (exists(efbc:FinancingIdentifier)) then 'http://data.europa.eu/a4g/resource/' || replace(replace( /*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '-' || /*/cbc:VersionID || '/ContractFundIdentifier$' || replace(replace(replace(path(..), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_') else null" ;
266+ rml:reference " if (exists(efbc:FinancingIdentifier)) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/ContractFundIdentifier$' || replace(replace(replace(path(..), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_') else null" ;
267267 rr:class adms:Identifier
268268 ] ;
269269 rr:predicateObjectMap
@@ -298,7 +298,7 @@ tedm:MG-Fund-isFundedBy-Contract_ND-ContractEUFunds a rr:TriplesMap ;
298298 rr:subjectMap
299299 [
300300 rdfs:label " ND-ContractEUFunds" ;
301- rml:reference " if((exists(cbc:FundingProgramCode)) or (exists(cbc:Description))) then 'http://data.europa.eu/a4g/resource/' || replace(replace( /*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '-' || /*/cbc:VersionID || '/ContractFund$' || replace(replace(replace(path(..), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_') else null" ;
301+ rml:reference " if((exists(cbc:FundingProgramCode)) or (exists(cbc:Description))) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/ContractFund$' || replace(replace(replace(path(..), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_') else null" ;
302302 rr:class epo:Fund
303303 ] ;
304304
@@ -355,7 +355,7 @@ tedm:MG-Organization-playedBy-Buyer-signedByBuyer-Contract_ND-ContractSignatory
355355 rr:subjectMap
356356 [
357357 rdfs:label " ND-ContractSignatory" ;
358- rr:template " http://data.europa.eu/a4g/resource/{replace(replace( /*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') }-{/*/cbc:VersionID}/Organization/{cac:PartyIdentification/cbc:ID}" ;
358+ rr:template " http://data.europa.eu/a4g/resource/{/*/cbc:ID[@schemeName='notice-id']}-{/*/cbc:VersionID}/Organization/{cac:PartyIdentification/cbc:ID}" ;
359359 rr:class org:Organization
360360 ] ;
361361 .
@@ -372,7 +372,7 @@ tedm:MG-Buyer-signedByBuyer-Contract_ND-ContractSignatory a rr:TriplesMap ;
372372 rr:subjectMap
373373 [
374374 rdfs:label " ND-ContractSignatory" ;
375- rr:template " http://data.europa.eu/a4g/resource/{replace(replace( /*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') }-{/*/cbc:VersionID}/Buyer/{encode-for-uri(concat(cac:PartyIdentification/cbc:ID, cac:PartyIdentification/cbc:ID/@schemeName))}" ;
375+ rr:template " http://data.europa.eu/a4g/resource/{/*/cbc:ID[@schemeName='notice-id']}-{/*/cbc:VersionID}/Buyer/{encode-for-uri(concat(cac:PartyIdentification/cbc:ID, cac:PartyIdentification/cbc:ID/@schemeName))}" ;
376376 rr:class epo:Buyer
377377 ] ;
378378 rr:predicateObjectMap
@@ -404,7 +404,7 @@ tedm:MG-Contract_ND-LotResultContractReference a rr:TriplesMap ;
404404 rr:subjectMap
405405 [
406406 rdfs:label " ND-SettledContract" ;
407- rr:template " http://data.europa.eu/a4g/resource/{replace(replace( /*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') }-{/*/cbc:VersionID}/SettledContract/{cbc:ID}" ;
407+ rr:template " http://data.europa.eu/a4g/resource/{/*/cbc:ID[@schemeName='notice-id']}-{/*/cbc:VersionID}/SettledContract/{cbc:ID}" ;
408408 rr:class epo:Contract
409409 ] ;
410410 rr:predicateObjectMap
@@ -436,7 +436,7 @@ tedm:MG:PurchaseContract_ND-SettledContract a rr:TriplesMap ;
436436 rr:subjectMap
437437 [
438438 rdfs:label " ND-SettledContract" ;
439- rml:reference " if (exists(efbc:ContractFrameworkIndicator)) then 'http://data.europa.eu/a4g/resource/' || replace(replace( /*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '-' || /*/cbc:VersionID || '/SettledContract/' || cbc:ID else null" ;
439+ rml:reference " if (exists(efbc:ContractFrameworkIndicator)) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/SettledContract/' || cbc:ID else null" ;
440440 rr:class epo:PurchaseContract
441441 ] ;
442442 rr:predicateObjectMap
@@ -580,7 +580,7 @@ tedm:MG-Contract_ND-PayerParty a rr:TriplesMap ;
580580 rr:subjectMap
581581 [
582582 rdfs:label " ND-PayerParty" ;
583- rr:template " http://data.europa.eu/a4g/resource/{replace(replace( /*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') }-{/*/cbc:VersionID}/SettledContract/{../../efac:SettledContract/cbc:ID}" ;
583+ rr:template " http://data.europa.eu/a4g/resource/{/*/cbc:ID[@schemeName='notice-id']}-{/*/cbc:VersionID}/SettledContract/{../../efac:SettledContract/cbc:ID}" ;
584584 rr:class epo:Contract
585585 ] ;
586586 rr:predicateObjectMap
@@ -609,7 +609,7 @@ tedm:MG-langString-description-Fund-isFundedBy-Contract_ND-ContractEUFunds a rr:
609609 rr:subjectMap [
610610 rr:class epo-not:Fund ;
611611 rdfs:label " ND-ContractEUFunds" ;
612- rml:reference " 'http://data.europa.eu/a4g/resource/' || replace(replace( /*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '-' || /*/cbc:VersionID || '/ContractFund$' || replace(replace(replace(path(../..), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_')" ;
612+ rml:reference " 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/ContractFund$' || replace(replace(replace(path(../..), 'Q\\{[^}]+\\}', ''), '\\[([0-9]+)\\]', '$1'), '/', '_')" ;
613613 ] ;
614614 rr:predicateObjectMap [
615615 tedm:minSDKVersion " 1.9.1" ;
@@ -647,7 +647,7 @@ tedm:MG-langString-title-Contract_ND-SettledContract a rr:TriplesMap ;
647647 rr:subjectMap [
648648 rr:class epo-not:Contract ;
649649 rdfs:label " ND-SettledContract" ;
650- rr:template " http://data.europa.eu/a4g/resource/{replace(replace( /*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') }-{/*/cbc:VersionID}/SettledContract/{../cbc:ID}" ;
650+ rr:template " http://data.europa.eu/a4g/resource/{/*/cbc:ID[@schemeName='notice-id']}-{/*/cbc:VersionID}/SettledContract/{../cbc:ID}" ;
651651 ] ;
652652 rr:predicateObjectMap [
653653 rr:predicate dct:title ;
0 commit comments