|
| 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" . |
0 commit comments