Skip to content

Commit 2ac9bd6

Browse files
committed
Fix ExclusionGround type mapping for v1.12+, new vocab resource
The `dct:type` of an epo:ExclusionGround has used the `criterion` controlled list (an EU Vocabulary "authority table", or AT) so far. However, this is only applicable up to SDK v1.11. From v1.12 onwards, a new AT `exclusion-ground` becomes applicable, that is no longer a "sublist" of `criterion` and has the new `exg-` codes used in newer notices. Fixes TEDSWS-314.
1 parent fdc3c63 commit 2ac9bd6

46 files changed

Lines changed: 4560 additions & 203 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

mappings/package_eforms_sdk1.10_epo4.0/transformation/mappings/Lot.rml.ttl

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3861,24 +3861,8 @@ tedm:MG-ExclusionGround-specifiesProcurementCriterion-Lot_ND-ExclusionGrounds a
38613861
rdfs:label "ND-ExclusionGrounds";
38623862
rr:template "http://data.europa.eu/a4g/resource/id_{replace(replace(/*/cbc:ID[@schemeName='notice-id'], ' ', '-' ), '/' , '-')}_ExclusionGround_{unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path()) || '?response_type=raw')}" ;
38633863
rr:class epo:ExclusionGround
3864-
3865-
] ;
3866-
rr:predicateObjectMap
3867-
[
3868-
rdfs:label "BT-67(a)-Procedure";
3869-
rdfs:comment "Exclusion Grounds of MG-ExclusionGround under ND-ExclusionGrounds";
3870-
rr:predicate dct:type;
3871-
rr:objectMap
3872-
[
3873-
rml:reference "cbc:TendererRequirementTypeCode[@listName='exclusion-ground']";
3874-
rdfs:label "at-voc:criterion" ;
3875-
rr:parentTriplesMap tedm:criterion ;
3876-
rr:joinCondition [
3877-
rr:child "cbc:TendererRequirementTypeCode[@listName='exclusion-ground']" ;
3878-
rr:parent "code.value" ;
3879-
] ;
3880-
] ;
38813864
] ;
3865+
# BT-67(a)-Procedure is in versioned files due to different vocabulary resource files (criterion vs. exclusion-ground v1.12+)
38823866
# rr:predicateObjectMap
38833867
# [
38843868
# rdfs:label "BT-67(b)-Procedure";
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
#--- MG-Lot version-specific SDK v0-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-GreenProcurement-fulfillsStrategicProcurement-Lot_ND-StrategicProcurementLot a rr:TriplesMap;
28+
rml:logicalSource
29+
[
30+
rml:source "data/source.xml" ;
31+
rml:iterator "/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cac:TenderingTerms/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:StrategicProcurement";
32+
rml:referenceFormulation ql:XPath
33+
];
34+
rr:predicateObjectMap
35+
[
36+
rdfs:label "BT-717-Lot";
37+
rdfs:comment "CleanVehiclesDirective of MG-GreenProcurement under ND-StrategicProcurementLot";
38+
rr:predicate epo:usesCleanVehicleDirective ;
39+
rr:objectMap
40+
[
41+
# while this field is introduced in 1.9,
42+
# the mapping is applicable since time immemorial
43+
# tedm:minSDKVersion "1.9.1" ;
44+
tedm:maxSDKVersion "1.12" ;
45+
rml:reference "efbc:ApplicableLegalBasis";
46+
rr:datatype xsd:boolean
47+
] ;
48+
]
49+
.
50+
51+
tedm:MG-ExclusionGround-specifiesProcurementCriterion-Lot_ND-ExclusionGrounds a rr:TriplesMap ;
52+
rr:predicateObjectMap
53+
[
54+
rdfs:label "BT-67(a)-Procedure" ;
55+
rdfs:comment "Exclusion Grounds of MG-ExclusionGround under ND-ExclusionGrounds" ;
56+
rr:predicate dct:type ;
57+
rr:objectMap
58+
[
59+
tedm:maxSDKVersion "1.11" ;
60+
rml:reference "cbc:TendererRequirementTypeCode[@listName='exclusion-ground']" ;
61+
rdfs:label "at-voc:criterion" ;
62+
rr:parentTriplesMap tedm:criterion ;
63+
rr:joinCondition [
64+
rr:child "cbc:TendererRequirementTypeCode[@listName='exclusion-ground']" ;
65+
rr:parent "code.value" ;
66+
] ;
67+
] ;
68+
] ;
69+
.

mappings/package_eforms_sdk1.10_epo4.0/transformation/mappings/controlled-lists.rml.ttl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,20 @@ tedm:award-criterion-type a rr:TriplesMap ;
349349
]
350350
.
351351

352+
tedm:exclusion-ground a rr:TriplesMap ;
353+
rml:logicalSource
354+
[
355+
rml:source "transformation/resources/exclusion-ground.json" ;
356+
rml:iterator "$.results.bindings[*]" ;
357+
rml:referenceFormulation ql:JSONPath
358+
] ;
359+
rr:subjectMap
360+
[
361+
rml:reference
362+
"conceptURI.value" ;
363+
]
364+
.
365+
352366
tedm:number-fixed a rr:TriplesMap ;
353367
rml:logicalSource
354368
[

0 commit comments

Comments
 (0)