Skip to content

Commit 797f762

Browse files
committed
Revert partially "Add BT-745-Lot lang TMAp versioned mappings to cover v1.12+"
This partially undoes commit 5e4547b by reverting the iterator XPath for BT-745-Lot in v1.3-1.10, and creating a separate v1.11 file, so as to not affect old mappings up to v1.10.
1 parent 3dc61cd commit 797f762

15 files changed

Lines changed: 564 additions & 464 deletions

File tree

mappings/package_eforms_sdk1.3_epo4.0/transformation/mappings/Lot_v1.3-1.11.rml.ttl renamed to mappings/package_eforms_sdk1.10_epo4.0/transformation/mappings/Lot_v1.3-1.10.rml.ttl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ tedm:MG-ParticipationCondition-specifiesProcurementCriterion-Lot_ND-LotReservedP
5555

5656
tedm:MG-langString-hasNonElectronicSubmissionDescription-SubmissionTerm-isSubjectToLotSpecificTerm-Lot_ND-NonEsubmission a rr:TriplesMap ;
5757
# VERINFO: SDK v1.8-1.11 from 1.3-1.7 contain only node name change, along with introduction of Language attribute and other mapping-irrelevant changes
58+
# VERINFO: the iterator of this mapping is actually wrong up to v1.11, but old mappings are to be untouched (a v1.11 is created separately for this)
5859
rml:logicalSource [
5960
rml:source "data/source.xml" ;
60-
rml:iterator "/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cac:TenderingProcess/cac:ProcessJustification[cbc:ProcessReasonCode/@listName='no-esubmission-justification']/cbc:Description" ;
61+
rml:iterator "/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cac:TenderingProcess/cac:ProcessJustification/cbc:Description" ;
6162
rml:referenceFormulation ql:XPath ;
6263
] ;
6364
rr:subjectMap [

mappings/package_eforms_sdk1.10_epo4.0/transformation/mappings/Lot_v1.3-1.11.rml.ttl renamed to mappings/package_eforms_sdk1.11_epo4.0/transformation/mappings/Lot_v1.11-1.11.rml.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ tedm:MG-ParticipationCondition-specifiesProcurementCriterion-Lot_ND-LotReservedP
5454
.
5555

5656
tedm:MG-langString-hasNonElectronicSubmissionDescription-SubmissionTerm-isSubjectToLotSpecificTerm-Lot_ND-NonEsubmission a rr:TriplesMap ;
57-
# VERINFO: SDK v1.8-1.11 from 1.3-1.7 contain only node name change, along with introduction of Language attribute and other mapping-irrelevant changes
57+
# VERINFO: this is a temporary file for v1.11, as the v.1.3-1.10 version of this mapping needs to be kept as-is for the time being
5858
rml:logicalSource [
5959
rml:source "data/source.xml" ;
6060
rml:iterator "/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cac:TenderingProcess/cac:ProcessJustification[cbc:ProcessReasonCode/@listName='no-esubmission-justification']/cbc:Description" ;

mappings/package_eforms_sdk1.5_epo4.0/transformation/mappings/Lot_v1.3-1.11.rml.ttl renamed to mappings/package_eforms_sdk1.3_epo4.0/transformation/mappings/Lot_v1.3-1.10.rml.ttl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ tedm:MG-ParticipationCondition-specifiesProcurementCriterion-Lot_ND-LotReservedP
5555

5656
tedm:MG-langString-hasNonElectronicSubmissionDescription-SubmissionTerm-isSubjectToLotSpecificTerm-Lot_ND-NonEsubmission a rr:TriplesMap ;
5757
# VERINFO: SDK v1.8-1.11 from 1.3-1.7 contain only node name change, along with introduction of Language attribute and other mapping-irrelevant changes
58+
# VERINFO: the iterator of this mapping is actually wrong up to v1.11, but old mappings are to be untouched (a v1.11 is created separately for this)
5859
rml:logicalSource [
5960
rml:source "data/source.xml" ;
60-
rml:iterator "/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cac:TenderingProcess/cac:ProcessJustification[cbc:ProcessReasonCode/@listName='no-esubmission-justification']/cbc:Description" ;
61+
rml:iterator "/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cac:TenderingProcess/cac:ProcessJustification/cbc:Description" ;
6162
rml:referenceFormulation ql:XPath ;
6263
] ;
6364
rr:subjectMap [
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
#--- MG-Lot version-specific SDK v1.3-1.11 ---
2+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
3+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
4+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
5+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
6+
@prefix rr: <http://www.w3.org/ns/r2rml#> .
7+
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
8+
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
9+
@prefix locn: <http://www.w3.org/ns/locn#> .
10+
@prefix dct: <http://purl.org/dc/terms/> .
11+
@prefix tedm: <http://data.europa.eu/a4g/mapping/sf-rml/> .
12+
@prefix epd: <http://data.europa.eu/a4g/resource/> .
13+
@prefix epo: <http://data.europa.eu/a4g/ontology#> .
14+
@prefix epo-not: <http://data.europa.eu/a4g/ontology#>.
15+
@prefix cv: <http://data.europa.eu/m8g/> .
16+
@prefix cccev: <http://data.europa.eu/m8g/> .
17+
@prefix org: <http://www.w3.org/ns/org#> .
18+
@prefix cpov: <http://data.europa.eu/m8g/> .
19+
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
20+
@prefix time: <http://www.w3.org/2006/time#>.
21+
@prefix adms: <http://www.w3.org/ns/adms#> .
22+
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
23+
@prefix fnml: <http://semweb.mmlab.be/ns/fnml#> .
24+
@prefix fno: <https://w3id.org/function/ontology#> .
25+
@prefix idlab-fn: <http://example.com/idlab/function/> .
26+
27+
tedm:MG-ParticipationCondition-specifiesProcurementCriterion-Lot_ND-LotReservedParticipation a rr:TriplesMap ;
28+
rdfs:label "MG-ParticipationCondition";
29+
rml:logicalSource
30+
[
31+
rml:source "data/source.xml" ;
32+
rml:iterator "/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cac:TenderingTerms/cac:TendererQualificationRequest[not(cbc:CompanyLegalFormCode)][not(cac:SpecificTendererRequirement/cbc:TendererRequirementTypeCode[@listName='missing-info-submission'])]/cac:SpecificTendererRequirement[cbc:TendererRequirementTypeCode/@listName='reserved-procurement']";
33+
rml:referenceFormulation ql:XPath
34+
];
35+
rr:predicateObjectMap
36+
[
37+
# VERINFO: SDK v1.4-1.7 from v1.3 contains only node change with stylistic XPath changes yielding the same effective XPaths, along with repeatable=false
38+
# VERINFO: SDK v1.8-1.11 contains only stylistic XPath changes yielding the same effective XPaths, along with introduction of List attribute
39+
rdfs:label "BT-71-Lot";
40+
rdfs:comment "Reserved Participation of MG-ParticipationCondition under ND-LotReservedProcurement (v1.4+), ND-LotReservedParticipation (v1.3)";
41+
rr:predicate epo:hasReservedProcurement ;
42+
rr:objectMap
43+
[
44+
tedm:minSDKVersion "1.3" ;
45+
tedm:minSDKVersion "1.11" ;
46+
rdfs:label "at-voc:reserved-procurement" ;
47+
rr:parentTriplesMap tedm:reserved-procurement ;
48+
rr:joinCondition [
49+
rr:child "cbc:TendererRequirementTypeCode";
50+
rr:parent "code.value" ;
51+
] ;
52+
] ;
53+
];
54+
.
55+
56+
tedm:MG-langString-hasNonElectronicSubmissionDescription-SubmissionTerm-isSubjectToLotSpecificTerm-Lot_ND-NonEsubmission a rr:TriplesMap ;
57+
# VERINFO: SDK v1.8-1.11 from 1.3-1.7 contain only node name change, along with introduction of Language attribute and other mapping-irrelevant changes
58+
# VERINFO: the iterator of this mapping is actually wrong up to v1.11, but old mappings are to be untouched (a v1.11 is created separately for this)
59+
rml:logicalSource [
60+
rml:source "data/source.xml" ;
61+
rml:iterator "/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cac:TenderingProcess/cac:ProcessJustification/cbc:Description" ;
62+
rml:referenceFormulation ql:XPath ;
63+
] ;
64+
rr:subjectMap [
65+
rr:class epo-not:SubmissionTerm ;
66+
rdfs:label "ND-NonEsubmission" ;
67+
rml:reference "'http://data.europa.eu/a4g/resource/id_' || replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '_SubmissionTerm_' || unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path(../../..)) || '?response_type=raw')" ;
68+
] ;
69+
rr:predicateObjectMap [
70+
rr:predicate epo-not:hasNonElectronicSubmissionDescription ;
71+
rr:objectMap [
72+
rml:reference "if(exists(@languageID)) then . else null" ;
73+
rml:languageMap [
74+
fnml:functionValue [
75+
rr:predicateObjectMap [
76+
rr:predicate idlab-fn:str ;
77+
rr:objectMap [
78+
rml:reference "@languageID" ;
79+
] ;
80+
] ;
81+
rr:predicateObjectMap tedm:idlab-fn_executes_lookup ;
82+
rr:predicateObjectMap tedm:idlab-fn_fromColumn_code ;
83+
rr:predicateObjectMap tedm:idlab-fn_inputFile_language ;
84+
rr:predicateObjectMap tedm:idlab-fn_toColumn_code ;
85+
] ;
86+
] ;
87+
rdfs:comment "Language of Submission Nonelectronic Description of MG-SubmissionTerm under ND-NonEsubmission" ;
88+
rdfs:label "BT-745-Lot-Language" ;
89+
] ;
90+
rdfs:comment "Submission Nonelectronic Description of MG-SubmissionTerm under ND-NonEsubmission (v1.8+), ND-NoESubmission (v1.3-1.7)" ;
91+
rdfs:label "BT-745-Lot" ;
92+
] ;
93+
rdfs:label "MG-SubmissionTerm" .
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
#--- MG-Lot version-specific SDK v1.3-1.11 ---
2+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
3+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
4+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
5+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
6+
@prefix rr: <http://www.w3.org/ns/r2rml#> .
7+
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
8+
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
9+
@prefix locn: <http://www.w3.org/ns/locn#> .
10+
@prefix dct: <http://purl.org/dc/terms/> .
11+
@prefix tedm: <http://data.europa.eu/a4g/mapping/sf-rml/> .
12+
@prefix epd: <http://data.europa.eu/a4g/resource/> .
13+
@prefix epo: <http://data.europa.eu/a4g/ontology#> .
14+
@prefix epo-not: <http://data.europa.eu/a4g/ontology#>.
15+
@prefix cv: <http://data.europa.eu/m8g/> .
16+
@prefix cccev: <http://data.europa.eu/m8g/> .
17+
@prefix org: <http://www.w3.org/ns/org#> .
18+
@prefix cpov: <http://data.europa.eu/m8g/> .
19+
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
20+
@prefix time: <http://www.w3.org/2006/time#>.
21+
@prefix adms: <http://www.w3.org/ns/adms#> .
22+
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
23+
@prefix fnml: <http://semweb.mmlab.be/ns/fnml#> .
24+
@prefix fno: <https://w3id.org/function/ontology#> .
25+
@prefix idlab-fn: <http://example.com/idlab/function/> .
26+
27+
tedm:MG-ParticipationCondition-specifiesProcurementCriterion-Lot_ND-LotReservedParticipation a rr:TriplesMap ;
28+
rdfs:label "MG-ParticipationCondition";
29+
rml:logicalSource
30+
[
31+
rml:source "data/source.xml" ;
32+
rml:iterator "/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cac:TenderingTerms/cac:TendererQualificationRequest[not(cbc:CompanyLegalFormCode)][not(cac:SpecificTendererRequirement/cbc:TendererRequirementTypeCode[@listName='missing-info-submission'])]/cac:SpecificTendererRequirement[cbc:TendererRequirementTypeCode/@listName='reserved-procurement']";
33+
rml:referenceFormulation ql:XPath
34+
];
35+
rr:predicateObjectMap
36+
[
37+
# VERINFO: SDK v1.4-1.7 from v1.3 contains only node change with stylistic XPath changes yielding the same effective XPaths, along with repeatable=false
38+
# VERINFO: SDK v1.8-1.11 contains only stylistic XPath changes yielding the same effective XPaths, along with introduction of List attribute
39+
rdfs:label "BT-71-Lot";
40+
rdfs:comment "Reserved Participation of MG-ParticipationCondition under ND-LotReservedProcurement (v1.4+), ND-LotReservedParticipation (v1.3)";
41+
rr:predicate epo:hasReservedProcurement ;
42+
rr:objectMap
43+
[
44+
tedm:minSDKVersion "1.3" ;
45+
tedm:minSDKVersion "1.11" ;
46+
rdfs:label "at-voc:reserved-procurement" ;
47+
rr:parentTriplesMap tedm:reserved-procurement ;
48+
rr:joinCondition [
49+
rr:child "cbc:TendererRequirementTypeCode";
50+
rr:parent "code.value" ;
51+
] ;
52+
] ;
53+
];
54+
.
55+
56+
tedm:MG-langString-hasNonElectronicSubmissionDescription-SubmissionTerm-isSubjectToLotSpecificTerm-Lot_ND-NonEsubmission a rr:TriplesMap ;
57+
# VERINFO: SDK v1.8-1.11 from 1.3-1.7 contain only node name change, along with introduction of Language attribute and other mapping-irrelevant changes
58+
# VERINFO: the iterator of this mapping is actually wrong up to v1.11, but old mappings are to be untouched (a v1.11 is created separately for this)
59+
rml:logicalSource [
60+
rml:source "data/source.xml" ;
61+
rml:iterator "/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cac:TenderingProcess/cac:ProcessJustification/cbc:Description" ;
62+
rml:referenceFormulation ql:XPath ;
63+
] ;
64+
rr:subjectMap [
65+
rr:class epo-not:SubmissionTerm ;
66+
rdfs:label "ND-NonEsubmission" ;
67+
rml:reference "'http://data.europa.eu/a4g/resource/id_' || replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-') || '_SubmissionTerm_' || unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path(../../..)) || '?response_type=raw')" ;
68+
] ;
69+
rr:predicateObjectMap [
70+
rr:predicate epo-not:hasNonElectronicSubmissionDescription ;
71+
rr:objectMap [
72+
rml:reference "if(exists(@languageID)) then . else null" ;
73+
rml:languageMap [
74+
fnml:functionValue [
75+
rr:predicateObjectMap [
76+
rr:predicate idlab-fn:str ;
77+
rr:objectMap [
78+
rml:reference "@languageID" ;
79+
] ;
80+
] ;
81+
rr:predicateObjectMap tedm:idlab-fn_executes_lookup ;
82+
rr:predicateObjectMap tedm:idlab-fn_fromColumn_code ;
83+
rr:predicateObjectMap tedm:idlab-fn_inputFile_language ;
84+
rr:predicateObjectMap tedm:idlab-fn_toColumn_code ;
85+
] ;
86+
] ;
87+
rdfs:comment "Language of Submission Nonelectronic Description of MG-SubmissionTerm under ND-NonEsubmission" ;
88+
rdfs:label "BT-745-Lot-Language" ;
89+
] ;
90+
rdfs:comment "Submission Nonelectronic Description of MG-SubmissionTerm under ND-NonEsubmission (v1.8+), ND-NoESubmission (v1.3-1.7)" ;
91+
rdfs:label "BT-745-Lot" ;
92+
] ;
93+
rdfs:label "MG-SubmissionTerm" .

mappings/package_eforms_sdk1.6_epo4.0/transformation/mappings/Lot_v1.3-1.11.rml.ttl

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)