|
| 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 | +# this is an example of an object referred to by multiple top-level subjects (all Lots) at orthogonal XPaths |
| 52 | +tedm:MG-ExclusionGround-specifiesProcurementCriterion-Lot_ND-ExclusionGrounds a rr:TriplesMap ; |
| 53 | + rdfs:label "MG-ExclusionGround" ; |
| 54 | + rml:logicalSource |
| 55 | + [ |
| 56 | + rml:source "data/source.xml" ; |
| 57 | + rml:iterator "/*/cac:TenderingTerms/cac:TendererQualificationRequest/cac:SpecificTendererRequirement" ; |
| 58 | + rml:referenceFormulation ql:XPath |
| 59 | + ] ; |
| 60 | + rr:subjectMap |
| 61 | + [ |
| 62 | + rdfs:label "ND-ExclusionGrounds" ; |
| 63 | + rml:reference "if(exists(cbc:Description) or exists(cbc:TendererRequirementTypeCode[@listName='exclusion-ground'])) then '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') else null" ; |
| 64 | + rr:class epo:ExclusionGround |
| 65 | + ] ; |
| 66 | + rr:predicateObjectMap |
| 67 | + [ |
| 68 | + rdfs:label "BT-67(a)-Procedure" ; |
| 69 | + rdfs:comment "Exclusion Grounds of MG-ExclusionGround under ND-ExclusionGrounds" ; |
| 70 | + rr:predicate dct:type ; |
| 71 | + rr:objectMap |
| 72 | + [ |
| 73 | + tedm:maxSDKVersion "1.11" ; |
| 74 | + rdfs:label "at-voc:criterion" ; |
| 75 | + rr:parentTriplesMap tedm:criterion ; |
| 76 | + rr:joinCondition [ |
| 77 | + rr:child "cbc:TendererRequirementTypeCode[@listName='exclusion-ground']" ; |
| 78 | + rr:parent "code.value" ; |
| 79 | + ] ; |
| 80 | + ] ; |
| 81 | + ] ; |
| 82 | +# BT-67(b)-Procedure is in dedicated language TMap |
| 83 | +# rr:predicateObjectMap |
| 84 | +# [ |
| 85 | +# rdfs:label "BT-67(b)-Procedure"; |
| 86 | +# rdfs:comment "Exclusion Grounds of MG-ExclusionGround under ND-ExclusionGrounds"; |
| 87 | +# rr:predicate dct:description; |
| 88 | +# rr:objectMap |
| 89 | +# [ |
| 90 | +# rdfs:label "BT-67(b)-Procedure-Language"; |
| 91 | +# rdfs:comment "Language of Exclusion Grounds of MG-ExclusionGround under ND-ExclusionGrounds"; |
| 92 | +# rml:reference "cbc:Description"; |
| 93 | +# rml:languageMap [ |
| 94 | +# fnml:functionValue [ |
| 95 | +# rr:predicateObjectMap [ |
| 96 | +# rr:predicate idlab-fn:str ; |
| 97 | +# rr:objectMap [ rml:reference "cbc:Description/@languageID" ] |
| 98 | +# ] , |
| 99 | +# tedm:idlab-fn_executes_lookup , |
| 100 | +# tedm:idlab-fn_inputFile_language , |
| 101 | +# tedm:idlab-fn_fromColumn_code , |
| 102 | +# tedm:idlab-fn_toColumn_code |
| 103 | +# ] |
| 104 | +# ] ; |
| 105 | +# ] ; |
| 106 | +# ] ; |
| 107 | +. |
| 108 | + |
| 109 | +tedm:MG-langString-description-ExclusionGround-specifiesProcurementCriterion-Lot_ND-ExclusionGrounds a rr:TriplesMap ; |
| 110 | + rml:logicalSource [ |
| 111 | + rml:source "data/source.xml" ; |
| 112 | + rml:iterator "/*/cac:TenderingTerms/cac:TendererQualificationRequest/cac:SpecificTendererRequirement/cbc:Description" ; |
| 113 | + rml:referenceFormulation ql:XPath ; |
| 114 | + ] ; |
| 115 | + rr:subjectMap [ |
| 116 | + rr:class epo-not:ExclusionGround ; |
| 117 | + rdfs:label "ND-ExclusionGrounds" ; |
| 118 | + 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')}" ; |
| 119 | + ] ; |
| 120 | + rr:predicateObjectMap [ |
| 121 | + rr:predicate dct:description ; |
| 122 | + rr:objectMap [ |
| 123 | + rml:reference "." ; |
| 124 | + rml:languageMap [ |
| 125 | + fnml:functionValue [ |
| 126 | + rr:predicateObjectMap [ |
| 127 | + rr:predicate idlab-fn:str ; |
| 128 | + rr:objectMap [ |
| 129 | + rml:reference "@languageID" ; |
| 130 | + ] ; |
| 131 | + ] ; |
| 132 | + rr:predicateObjectMap tedm:idlab-fn_executes_lookup ; |
| 133 | + rr:predicateObjectMap tedm:idlab-fn_fromColumn_code ; |
| 134 | + rr:predicateObjectMap tedm:idlab-fn_inputFile_language ; |
| 135 | + rr:predicateObjectMap tedm:idlab-fn_toColumn_code ; |
| 136 | + ] ; |
| 137 | + ] ; |
| 138 | + rdfs:comment "Language of Exclusion Grounds of MG-ExclusionGround under ND-ExclusionGrounds" ; |
| 139 | + rdfs:label "BT-67(b)-Procedure-Language" ; |
| 140 | + ] ; |
| 141 | + rdfs:comment "Exclusion Grounds of MG-ExclusionGround under ND-ExclusionGrounds" ; |
| 142 | + rdfs:label "BT-67(b)-Procedure" ; |
| 143 | + ] ; |
| 144 | + rdfs:label "MG-ExclusionGround" . |
0 commit comments