Skip to content

Commit 6c7a209

Browse files
valexandeschivmeister
authored andcommitted
feat: fixing normalized-spaces function (it affects 3 classes)
1 parent 25fd117 commit 6c7a209

4 files changed

Lines changed: 3273 additions & 199 deletions

File tree

src/mappings/Lot.rml.ttl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ tedm:MG-EAuctionTechnique-usesTechnique-Lot_ND-AuctionTerms a rr:TriplesMap ;
12931293
# Avoid type-only epo:EAuctionTechnique:
12941294
# Only instantiate when we can also emit at least one predicate (currently: epo:hasUsage).
12951295
# Here: create only when the auction is actually used (true/1).
1296-
rml:reference "if (lower-case(normalize-space(cbc:AuctionConstraintIndicator)) = ('true','1')) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/AuctionTerms$' || replace(translate(path(), concat(codepoints-to-string(123), codepoints-to-string(125), '/[]'), ' _'), 'Q .*? ', '') else null" ;
1296+
rml:reference "if (lower-case(cbc:AuctionConstraintIndicator) = ('true','1')) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/AuctionTerms$' || replace(translate(path(), concat(codepoints-to-string(123), codepoints-to-string(125), '/[]'), ' _'), 'Q .*? ', '') else null" ;
12971297
rr:class epo:EAuctionTechnique ;
12981298
] ;
12991299
rr:predicateObjectMap
@@ -1305,7 +1305,7 @@ tedm:MG-EAuctionTechnique-usesTechnique-Lot_ND-AuctionTerms a rr:TriplesMap ;
13051305
[
13061306
rdfs:label "at-voc:usage";
13071307
rdfs:comment "translation of 'true' to at-voc:usage:used";
1308-
rml:reference "if (lower-case(normalize-space(cbc:AuctionConstraintIndicator)) = ('true','1')) then 'http://publications.europa.eu/resource/authority/usage/used' else null";
1308+
rml:reference "if (lower-case(cbc:AuctionConstraintIndicator) = ('true','1')) then 'http://publications.europa.eu/resource/authority/usage/used' else null";
13091309
rr:termType rr:IRI
13101310
] ;
13111311
] ;
@@ -4413,7 +4413,7 @@ tedm:MG-ContractTerm-foreseesContractSpecificTerm-Lot_ND-LotPlacePerformance a r
44134413
rr:subjectMap
44144414
[
44154415
rdfs:label "ND-LotProcurementScope";
4416-
rml:reference "if (exists(cbc:Description) and normalize-space(cbc:Description) != '') then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/ContractTerm$' || replace(translate(path(../..), concat(codepoints-to-string(123), codepoints-to-string(125), '/[]'), ' _'), 'Q .*? ', '') else null" ;
4416+
rml:reference "if (exists(cbc:Description)) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/ContractTerm$' || replace(translate(path(../..), concat(codepoints-to-string(123), codepoints-to-string(125), '/[]'), ' _'), 'Q .*? ', '') else null" ;
44174417
rr:class epo:ContractTerm
44184418
] ;
44194419
# rr:predicateObjectMap

src/mappings/Procedure.rml.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ tedm:MG-Identifier-hasInternalIdentifier-Procedure_ND-ProcedureProcurementScope
744744
# TODO decide on labeling scheme for composition links like this
745745
rdfs:label "MG-Identifier" ;
746746
rdfs:comment "Type declaration for MG-Identifier under ND-ProcedureProcurementScope" ;
747-
rml:reference "if (exists(cbc:ID) and normalize-space(cbc:ID) != '' and not(exists(/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeSubType/cbc:SubTypeCode[contains('1 2 3 4 5 6 E1 E2', text())]))) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/Procedure/Identifier/' || encode-for-uri(cbc:ID) else null" ;
747+
rml:reference "if (exists(cbc:ID) and not(exists(/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeSubType/cbc:SubTypeCode[contains('1 2 3 4 5 6 E1 E2', text())]))) then 'http://data.europa.eu/a4g/resource/' || /*/cbc:ID[@schemeName='notice-id'] || '-' || /*/cbc:VersionID || '/Procedure/Identifier/' || encode-for-uri(cbc:ID) else null" ;
748748
rr:class adms:Identifier
749749
] ;
750750
rr:predicateObjectMap

0 commit comments

Comments
 (0)