From b60255c54b0b50c73502ab7d09727bea5c9f17ee Mon Sep 17 00:00:00 2001 From: Julian Rojas Date: Tue, 14 Sep 2021 00:45:26 +0200 Subject: [PATCH] Bring up to v2.3.0! --- CHANGELOG.md | 45 +- conf.env | 2 +- data/index_predicate_mappings.csv | 221 ++ map-turtle.sh | 11 +- mappings/ERATV-manufacturers.yml | 16 +- mappings/ERATV-vehicle-types.yml | 2292 ++++++++++++++++----- mappings/RINF-ERATV-skos-concepts.yml | 1181 +++++++---- mappings/RINF-contact-line-systems.yml | 184 ++ mappings/RINF-etcs-levels.yml | 46 + mappings/RINF-line-national-ids.yml | 44 - mappings/RINF-link-meso-micro.yml | 40 +- mappings/RINF-meso-net-elements.yml | 18 +- mappings/RINF-meso-net-relations.yml | 22 +- mappings/RINF-micro-net-elements.yml | 30 +- mappings/RINF-micro-net-relations.yml | 82 +- mappings/RINF-national-lines.yml | 73 + mappings/RINF-op-applicability.yml | 58 + mappings/RINF-op-tracks.yml | 150 ++ mappings/RINF-operational-points.yml | 125 +- mappings/RINF-platforms.yml | 130 ++ mappings/RINF-sections-of-line.yml | 1193 +---------- mappings/RINF-sidings.yml | 343 +++ mappings/RINF-sol-not-applicable.yml | 38 + mappings/RINF-sol-not-yet-available.yml | 38 + mappings/RINF-sol-tracks.yml | 1945 +++++++++++++++++ mappings/RINF-train-detection-systems.yml | 408 ++++ mappings/RINF-tunnels.yml | 521 ++++- mappings/test.yml.bkp | 11 + run.sh | 12 +- 29 files changed, 6906 insertions(+), 2373 deletions(-) create mode 100644 data/index_predicate_mappings.csv create mode 100644 mappings/RINF-contact-line-systems.yml create mode 100644 mappings/RINF-etcs-levels.yml delete mode 100644 mappings/RINF-line-national-ids.yml create mode 100644 mappings/RINF-national-lines.yml create mode 100644 mappings/RINF-op-applicability.yml create mode 100644 mappings/RINF-op-tracks.yml create mode 100644 mappings/RINF-platforms.yml create mode 100644 mappings/RINF-sidings.yml create mode 100644 mappings/RINF-sol-not-applicable.yml create mode 100644 mappings/RINF-sol-not-yet-available.yml create mode 100644 mappings/RINF-sol-tracks.yml create mode 100644 mappings/RINF-train-detection-systems.yml create mode 100644 mappings/test.yml.bkp diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b12651..93fc2aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,50 @@ All notable changes to this project will be documented in this file. -## [v2.0.0](https://github.com/julianrojas87/era-data-mappings/compare/v1.2.1...v2.0.0) (2021-06-15) +## [v2.3.0](https://git.fpfis.eu/datateam/ERA/era-data-mappings/-/releases/v2.3.0) (2021-09-13) + +### Raw Data: [ERA-KG-v2.3.0](https://cloud.ilabt.imec.be/index.php/s/gtz9RjQ5fGMB4TQ) + +### Features and Bug Fixes + +* Fix for #33 +* Fix for #34 +* Add local ID predicates for platforms, tunnels and sidings +* Add name predicate for Operational Points +* Fix prefixes URIs + +## [v2.2.0](https://git.fpfis.eu/datateam/ERA/era-data-mappings/-/releases/v2.2.0) (2021-09-01) + +### Raw Data: [ERA-KG-v2.2.0](https://cloud.ilabt.imec.be/index.php/s/DyaZpqkrJpfPz73) + +### Features and Bug Fixes + +* annotations of RINF and ERATV property codes +* cleanup of unnecessary reference dataset mappings +* adjust remianing TRIM SQL functions +* fully map ERATV properties +* full refactoring to use new official URI http://data.europa.eu/949/ +* Add missing rdf:type mapping for train detection systems +* Comment labels to SoL properties +* Adjust mappings for verification and demonstration params +* Corrected various errors +* Added mappings for nominal track gauges concepts +* Added full mappings for OPTracks +* Added mappings for OPTracks tunnels and properties +* Added full mappings for Sidings +* Added mappings for Siding tunnels and properties +* Added OP missing parameters +* Adjusted SoL mappings +* Adjusted Platforms mappings +* added mappings for SoL natures +* mappings for complete set of SoL parameters +* adjust all TSI compliance mappings +* added mappings for skos concept schemes era-tdssc, era-malvc and era-mas +* removed skos concept scheme era-minwidhtrim +* added all mappings for SET-based properties +* added various properties for SoLs, Tunnels and National Lines + +## [v2.0.0](https://git.fpfis.eu/datateam/ERA/era-data-mappings/-/releases#v2.0.0) (2021-04-12) ### Raw Data: [ERA-KG-v2.0.0](https://cloud.ilabt.imec.be/index.php/s/PogwXPSr8yEkKmo) diff --git a/conf.env b/conf.env index e723506..fdbae53 100644 --- a/conf.env +++ b/conf.env @@ -1,4 +1,4 @@ -KG_VERSION=2.0.0 +KG_VERSION=2.3.0 NAMED_GRAPH=http://era.europa.eu/knowledge-graph RINF_HOST=//10.10.160.21:1433 RINF_USER=SA diff --git a/data/index_predicate_mappings.csv b/data/index_predicate_mappings.csv new file mode 100644 index 0000000..1608b8c --- /dev/null +++ b/data/index_predicate_mappings.csv @@ -0,0 +1,221 @@ +index,predicate +1.1.0.0.0.1,http://data.europa.eu/949/imCode +1.1.0.0.0.2,http://data.europa.eu/949/lineNationalId +1.1.0.0.0.3,http://data.europa.eu/949/opStart +1.1.0.0.0.4,http://data.europa.eu/949/opEnd +1.1.0.0.0.5,http://data.europa.eu/949/length +1.1.0.0.0.6,http://data.europa.eu/949/solNature +1.1.1.0.0.1,http://data.europa.eu/949/trackId +1.1.1.0.0.2,http://data.europa.eu/949/trackDirection +1.1.1.1.1.1,http://data.europa.eu/949/verificationINF +1.1.1.1.1.2,http://data.europa.eu/949/demonstrationINF +1.1.1.1.2.1,http://data.europa.eu/949/tenClassification +1.1.1.1.2.1.2,http://data.europa.eu/949/tenGISId +1.1.1.1.2.2,http://data.europa.eu/949/lineCategory +1.1.1.1.2.3,http://data.europa.eu/949/freightCorridor +1.1.1.1.2.4,http://data.europa.eu/949/loadCapability +1.1.1.1.2.4.1,http://data.europa.eu/949/nationalLoadCapability +1.1.1.1.2.4.2,http://data.europa.eu/949/highSpeedLoadModelCompliance +1.1.1.1.2.4.3,http://data.europa.eu/949/structureCheckLocation +1.1.1.1.2.4.4,http://data.europa.eu/949/compatibilityProcedureDocument +1.1.1.1.2.5,http://data.europa.eu/949/maximumPermittedSpeed +1.1.1.1.2.6,http://data.europa.eu/949/minimumTemperature +1.1.1.1.2.6,http://data.europa.eu/949/maximumTemperature +1.1.1.1.2.7,http://data.europa.eu/949/maximumAltitude +1.1.1.1.2.8,http://data.europa.eu/949/hasSevereWeatherConditions +1.1.1.1.3.1.1,http://data.europa.eu/949/gaugingProfile +1.1.1.1.3.1.2,http://data.europa.eu/949/gaugingCheckLocation +1.1.1.1.3.1.3,http://data.europa.eu/949/gaugingTransversalDocument +1.1.1.1.3.4,http://data.europa.eu/949/profileNumberSwapBodies +1.1.1.1.3.5,http://data.europa.eu/949/profileNumberSemiTrailers +1.1.1.1.3.5.1,http://data.europa.eu/949/specificInformation +1.1.1.1.3.6,http://data.europa.eu/949/gradientProfile +1.1.1.1.3.7,http://data.europa.eu/949/minimumHorizontalRadius +1.1.1.1.4.1,http://data.europa.eu/949/wheelSetGauge +1.1.1.1.4.2,http://data.europa.eu/949/cantDeficiency +1.1.1.1.4.3,http://data.europa.eu/949/railInclination +1.1.1.1.4.4,http://data.europa.eu/949/hasBallast +1.1.1.1.5.1,http://data.europa.eu/949/tsiSwitchCrossing +1.1.1.1.5.2,http://data.europa.eu/949/minimumWheelDiameter +1.1.1.1.6.1,http://data.europa.eu/949/maximumTrainDeceleration +1.1.1.1.6.2,http://data.europa.eu/949/eddyCurrentBraking +1.1.1.1.6.3,http://data.europa.eu/949/magneticBraking +1.1.1.1.6.4,http://data.europa.eu/949/eddyCurrentBrakingConditionsDocument +1.1.1.1.6.5,http://data.europa.eu/949/magneticBrakingConditionsDocument +1.1.1.1.7.1,http://data.europa.eu/949/flangeLubeForbidden +1.1.1.1.7.2,http://data.europa.eu/949/hasLevelCrossings +1.1.1.1.7.3,http://data.europa.eu/949/accelerationLevelCrossing +1.1.1.1.7.4,http://data.europa.eu/949/hasHotAxleBoxDetector +1.1.1.1.7.5,http://data.europa.eu/949/hotAxleBoxDetectorTSICompliant +1.1.1.1.7.6,http://data.europa.eu/949/hotAxleBoxDetectorIdentification +1.1.1.1.7.7,http://data.europa.eu/949/hotAxleBoxDetectorGeneration +1.1.1.1.7.8,http://data.europa.eu/949/hotAxleBoxDetectorLocation +1.1.1.1.7.9,http://data.europa.eu/949/hotAxleBoxDetectorDirection +1.1.1.1.7.10,http://data.europa.eu/949/redLightsRequired +1.1.1.1.7.11,http://data.europa.eu/949/isQuietRoute +1.1.1.1.8.1,http://data.europa.eu/949/imCode +1.1.1.1.8.2,http://data.europa.eu/949/tunnelIdentification +1.1.1.1.8.3,http://data.europa.eu/949/startLocation +1.1.1.1.8.4,http://data.europa.eu/949/endLocation +1.1.1.1.8.5,http://data.europa.eu/949/verificationSRT +1.1.1.1.8.6,http://data.europa.eu/949/demonstrationSRT +1.1.1.1.8.7,http://data.europa.eu/949/length +1.1.1.1.8.8,http://data.europa.eu/949/crossSectionArea +1.1.1.1.8.8.1,http://data.europa.eu/949/complianceInfTsi +1.1.1.1.8.8.2,http://data.europa.eu/949/tunnelDocRef +1.1.1.1.8.9,http://data.europa.eu/949/hasEmergencyPlan +1.1.1.1.8.10,http://data.europa.eu/949/rollingStockFireCategory +1.1.1.1.8.11,http://data.europa.eu/949/nationalRollingStockFireCategory +1.1.1.2.1.1,http://data.europa.eu/949/verificationENE +1.1.1.2.1.2,http://data.europa.eu/949/demonstrationENE +1.1.1.2.2.1.1,http://data.europa.eu/949/contactLineSystemType +1.1.1.2.2.1.2,http://data.europa.eu/949/energySupplySystem +1.1.1.2.2.1.2.1,http://data.europa.eu/949/energySupplySystemTSICompliant +1.1.1.2.2.1.3,http://data.europa.eu/949/umax2 +1.1.1.2.2.2,http://data.europa.eu/949/maxTrainCurrent +1.1.1.2.2.3,http://data.europa.eu/949/maxCurrentStandstillPantograph +1.1.1.2.2.4,http://data.europa.eu/949/hasRegenerativeBrake +1.1.1.2.2.4,http://data.europa.eu/949/conditionalRegenerativeBrake +1.1.1.2.2.5,http://data.europa.eu/949/maximumContactWireHeight +1.1.1.2.2.6,http://data.europa.eu/949/minimumContactWireHeight +1.1.1.2.3.1,http://data.europa.eu/949/pantographHead +1.1.1.2.3.2,http://data.europa.eu/949/pantographHead +1.1.1.2.3.3,http://data.europa.eu/949/raisedPantographsDistanceAndSpeed +1.1.1.2.3.4,http://data.europa.eu/949/contactStripMaterial +1.1.1.2.4.1.1,http://data.europa.eu/949/phaseSeparation +1.1.1.2.4.1.2,http://data.europa.eu/949/phaseInfo +1.1.1.2.4.2.1,http://data.europa.eu/949/hasSystemSeparation +1.1.1.2.4.2.2,http://data.europa.eu/949/systemSeparationInfo +1.1.1.2.4.3,http://data.europa.eu/949/distSignToPhaseEnd +1.1.1.2.5.1,http://data.europa.eu/949/currentLimitationRequired +1.1.1.2.5.2,http://data.europa.eu/949/permittedContactForce +1.1.1.2.5.3,http://data.europa.eu/949/automaticDroppingDeviceRequired +1.1.1.3.1.1,http://data.europa.eu/949/verificationCSS +1.1.1.3.2.1,http://data.europa.eu/949/etcsLevelType +1.1.1.3.2.2,http://data.europa.eu/949/etcsBaseline +1.1.1.3.2.3,http://data.europa.eu/949/etcsInfillLineAccess +1.1.1.3.2.4,http://data.europa.eu/949/etcsInfill +1.1.1.3.2.5,http://data.europa.eu/949/etcsNationalPacket44 +1.1.1.3.2.6,http://data.europa.eu/949/hasETCSRestrictionsConditions +1.1.1.3.2.7,http://data.europa.eu/949/etcsOptionalFunctions +1.1.1.3.2.8,http://data.europa.eu/949/trainIntegrityOnBoardRequired +1.1.1.3.2.9,http://data.europa.eu/949/etcsSystemCompatibility +1.1.1.3.2.10,http://data.europa.eu/949/etcsMVersion +1.1.1.3.3.1,http://data.europa.eu/949/gsmRVersion +1.1.1.3.3.2,http://data.europa.eu/949/gsmRActiveMobiles +1.1.1.3.3.3,http://data.europa.eu/949/gsmROptionalFunctions +1.1.1.3.3.3.1,http://data.europa.eu/949/gsmRAdditionalInfo +1.1.1.3.3.3.2,http://data.europa.eu/949/gprsForETCS +1.1.1.3.3.3.3,http://data.europa.eu/949/gprsImplementationArea +1.1.1.3.3.4,http://data.europa.eu/949/usesGroup555 +1.1.1.3.3.5,http://data.europa.eu/949/gsmrNetworkCoverage +1.1.1.3.3.6,http://data.europa.eu/949/publicNetworkRoaming +1.1.1.3.3.7,http://data.europa.eu/949/publicNetworkRoamingDetails +1.1.1.3.3.8,http://data.europa.eu/949/gsmRNoCoverage +1.1.1.3.3.9,http://data.europa.eu/949/voiceRadioCompatible +1.1.1.3.3.10,http://data.europa.eu/949/dataRadioCompatible +1.1.1.3.4.1,http://data.europa.eu/949/hasTSITrainDetection +1.1.1.3.5.1,http://data.europa.eu/949/hasOtherTrainProtection +1.1.1.3.5.2,http://data.europa.eu/949/multipleTrainProtectionRequired +1.1.1.3.5.3,http://data.europa.eu/949/protectionLegacySystem +1.1.1.3.6.1,http://data.europa.eu/949/legacyRadioSystem +1.1.1.3.7.1.1,http://data.europa.eu/949/trainDetectionSystemType +1.1.1.3.7.1.2,http://data.europa.eu/949/trainDetectionSystemSpecificCheck +1.1.1.3.7.1.3,http://data.europa.eu/949/trainDetectionSystemSpecificCheckDocument +1.1.1.3.7.1.4,http://data.europa.eu/949/frenchTrainDetectionSystemLimitation +1.1.1.3.7.2.1,http://data.europa.eu/949/tsiCompliantMaxDistConsecutiveAxles +1.1.1.3.7.2.2,http://data.europa.eu/949/maxDistConsecutiveAxles +1.1.1.3.7.3,http://data.europa.eu/949/minDistConsecutiveAxles +1.1.1.3.7.4,http://data.europa.eu/949/minDistFirstLastAxle +1.1.1.3.7.5,http://data.europa.eu/949/maxDistEndTrainFirstAxle +1.1.1.3.7.6,http://data.europa.eu/949/minRimWidth +1.1.1.3.7.7,http://data.europa.eu/949/minWheelDiameter +1.1.1.3.7.8,http://data.europa.eu/949/minFlangeThickness +1.1.1.3.7.9,http://data.europa.eu/949/minFlangeHeight +1.1.1.3.7.10,http://data.europa.eu/949/maxFlangeHeight +1.1.1.3.7.11,http://data.europa.eu/949/minAxleLoad +1.1.1.3.7.11.1,http://data.europa.eu/949/minAxleLoadVehicleCategory +1.1.1.3.7.12,http://data.europa.eu/949/tsiCompliantMetalFreeSpace +1.1.1.3.7.13,http://data.europa.eu/949/tsiCompliantMetalConstruction +1.1.1.3.7.14,http://data.europa.eu/949/tsiCompliantFerromagneticWheel +1.1.1.3.7.15.1,http://data.europa.eu/949/tsiCompliantMaxImpedanceWheelset +1.1.1.3.7.15.2,http://data.europa.eu/949/maxImpedanceWheelset +1.1.1.3.7.16,http://data.europa.eu/949/tsiCompliantSanding +1.1.1.3.7.17,http://data.europa.eu/949/maxSandingOutput +1.1.1.3.7.18,http://data.europa.eu/949/requiredSandingOverride +1.1.1.3.7.19,http://data.europa.eu/949/tsiCompliantSandCharacteristics +1.1.1.3.7.20,http://data.europa.eu/949/flangeLubeRules +1.1.1.3.7.21,http://data.europa.eu/949/tsiCompliantCompositeBrakeBlocks +1.1.1.3.7.22,http://data.europa.eu/949/tsiCompliantShuntDevices +1.1.1.3.7.23,http://data.europa.eu/949/tsiCompliantRSTShuntImpedance +1.1.1.3.8.1,http://data.europa.eu/949/switchProtectControlWarning +1.1.1.3.8.2,http://data.europa.eu/949/switchRadioSystem +1.1.1.3.9.1,http://data.europa.eu/949/TSIMagneticFields +1.1.1.3.9.2,http://data.europa.eu/949/TSITractionHarmonics +1.1.1.3.10.1,http://data.europa.eu/949/etcsDegradedSituation +1.1.1.3.10.2,http://data.europa.eu/949/otherTrainProtection +1.1.1.3.11.1,http://data.europa.eu/949/maximumBrakingDistance +1.1.1.3.11.2,http://data.europa.eu/949/hasAdditionalBrakingInformation +1.1.1.3.11.3,http://data.europa.eu/949/additionalBrakingInformationDocument +1.1.1.3.12.1,http://data.europa.eu/949/tiltingSupported +1.1.1.4.1,http://data.europa.eu/949/localRulesOrRestrictions +1.1.1.4.2,http://data.europa.eu/949/localRulesOrRestrictionsDoc +1.2.0.0.0.1,http://data.europa.eu/949/opName +1.2.0.0.0.2,http://data.europa.eu/949/uopid +1.2.0.0.0.3,http://data.europa.eu/949/tafTAPCode +1.2.0.0.0.4,http://data.europa.eu/949/opType +1.2.0.0.0.4.1,http://data.europa.eu/949/opTypeGaugeChangeover +1.2.0.0.0.6,http://data.europa.eu/949/lineReference +1.2.1.0.0.1,http://data.europa.eu/949/imCode +1.2.1.0.0.2,http://data.europa.eu/949/trackId +1.2.1.0.1.1,http://data.europa.eu/949/verificationINF +1.2.1.0.1.2,http://data.europa.eu/949/demonstrationINF +1.2.1.0.2.1,http://data.europa.eu/949/tenClassification +1.2.1.0.2.2,http://data.europa.eu/949/lineCategory +1.2.1.0.2.3,http://data.europa.eu/949/freightCorridor +1.2.1.0.3.4,http://data.europa.eu/949/gaugingProfile +1.2.1.0.3.5,http://data.europa.eu/949/gaugingCheckLocation +1.2.1.0.3.6,http://data.europa.eu/949/gaugingTransversalDocument +1.2.1.0.4.1,http://data.europa.eu/949/wheelSetGauge +1.2.1.0.5.1,http://data.europa.eu/949/imCode +1.2.1.0.5.2,http://data.europa.eu/949/tunnelIdentification +1.2.1.0.5.3,http://data.europa.eu/949/verificationSRT +1.2.1.0.5.4,http://data.europa.eu/949/demonstrationSRT +1.2.1.0.5.5,http://data.europa.eu/949/length +1.2.1.0.5.6,http://data.europa.eu/949/hasEmergencyPlan +1.2.1.0.5.7,http://data.europa.eu/949/rollingStockFireCategory +1.2.1.0.5.8,http://data.europa.eu/949/nationalRollingStockFireCategory +1.2.1.0.5.9,http://data.europa.eu/949/dieselThermalAllowed +1.2.1.0.6.1,http://data.europa.eu/949/imCode +1.2.1.0.6.2,http://data.europa.eu/949/platformId +1.2.1.0.6.3,http://data.europa.eu/949/tenClassification +1.2.1.0.6.4,http://data.europa.eu/949/length +1.2.1.0.6.5,http://data.europa.eu/949/platformHeight +1.2.1.0.6.6,http://data.europa.eu/949/assistanceStartingTrain +1.2.1.0.6.7,http://data.europa.eu/949/areaBoardingAid +1.2.2.0.0.1,http://data.europa.eu/949/imCode +1.2.2.0.0.2,http://data.europa.eu/949/sidingId +1.2.2.0.0.3,http://data.europa.eu/949/tenClassification +1.2.2.0.1.1,http://data.europa.eu/949/verificationINF +1.2.2.0.1.2,http://data.europa.eu/949/demonstrationINF +1.2.2.0.2.1,http://data.europa.eu/949/length +1.2.2.0.3.1,http://data.europa.eu/949/gradient +1.2.2.0.3.2,http://data.europa.eu/949/minimumHorizontalRadius +1.2.2.0.3.3,http://data.europa.eu/949/minimumVerticalRadius +1.2.2.0.4.1,http://data.europa.eu/949/hasToiletDischarge +1.2.2.0.4.2,http://data.europa.eu/949/hasExternalCleaning +1.2.2.0.4.3,http://data.europa.eu/949/hasWaterRestocking +1.2.2.0.4.4,http://data.europa.eu/949/hasRefuelling +1.2.2.0.4.5,http://data.europa.eu/949/hasSandRestocking +1.2.2.0.4.6,http://data.europa.eu/949/hasElectricShoreSupply +1.2.2.0.5.1,http://data.europa.eu/949/imCode +1.2.2.0.5.2,http://data.europa.eu/949/tunnelIdentification +1.2.2.0.5.3,http://data.europa.eu/949/verificationSRT +1.2.2.0.5.4,http://data.europa.eu/949/demonstrationSRT +1.2.2.0.5.5,http://data.europa.eu/949/length +1.2.2.0.5.6,http://data.europa.eu/949/hasEmergencyPlan +1.2.2.0.5.7,http://data.europa.eu/949/rollingStockFireCategory +1.2.2.0.5.8,http://data.europa.eu/949/nationalRollingStockFireCategory +1.2.2.0.6.1,http://data.europa.eu/949/maxCurrentStandstillPantograph +1.2.3.1,http://data.europa.eu/949/localRulesOrRestrictions +1.2.3.2,http://data.europa.eu/949/localRulesOrRestrictionsDoc diff --git a/map-turtle.sh b/map-turtle.sh index 1adc1a3..df8d93d 100755 --- a/map-turtle.sh +++ b/map-turtle.sh @@ -42,12 +42,19 @@ mapRML() { local file_path=$1 local file=${file_path##*/} local output_file="knowledge-graph/${file%_rml*}.nq" + local format="nquads" if [ $(stat -c %s $output_file 2>/dev/null || echo -e 0) -gt 0 ]; then echo "$file_path has already been mapped" else + # Map SKOS terms to turtle + if [ "${file%_rml*}" = "RINF-ERATV-skos-concepts" ]; then + format="turtle" + output_file="knowledge-graph/RINF-ERATV-skos-concepts.ttl" + fi + # Map the rest to N-Quads echo "Mapping '$file_path' and storing output in '$output_file'" - time java -Xmx4096m -cp rmlmapper-4.10.0.jar:mssql-jdbc-8.2.0.jre11.jar be.ugent.rml.cli.Main -m $file_path > $output_file + time java -Xmx4096m -cp rmlmapper-4.10.0.jar:mssql-jdbc-8.2.0.jre11.jar be.ugent.rml.cli.Main -s $format -m $file_path > $output_file fi } # Export the mapRML function so it can be seen by parallel @@ -70,7 +77,7 @@ ls ${rml_directory}/*.ttl | parallel -j+0 'mapRML {}' # Merge resulting RDF (nquads) files into one echo "Merging mapped ERA RDF files into a single file for version $1" -find ${output_directory}/ -iname '*.nq' -not -name 'RINF-ERATV-skos-concepts.nq' -exec cat {} +> ${output_directory}/${knowledge_graph}$1.nq +find ${output_directory}/ -iname '*.nq' -exec cat {} +> ${output_directory}/${knowledge_graph}$1.nq #cat ${output_directory}/* > ${output_directory}/${knowledge_graph}$1.nq echo "Compressing resulting RDF file" gzip ${output_directory}/${knowledge_graph}$1.nq diff --git a/mappings/ERATV-manufacturers.yml b/mappings/ERATV-manufacturers.yml index bf2f7b2..a4d2b69 100644 --- a/mappings/ERATV-manufacturers.yml +++ b/mappings/ERATV-manufacturers.yml @@ -3,8 +3,8 @@ prefixes: grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" rdfs: "http://www.w3.org/2000/01/rdf-schema#" schema: "https://schema.org/" - era: "http://era.europa.eu/ns#" - era-manufacturers: "http://era.europa.eu/manufacturers#" + era: "http://data.europa.eu/949/" + era-manufacturers: "http://data.europa.eu/949/manufacturers/" xsd: "http://www.w3.org/2001/XMLSchema#" variables: connection: @@ -28,27 +28,27 @@ mappings: s: era-manufacturers:$(UriName) po: - [a, era:Manufacturer] - - [schema:name, $(Name)] - - [rdfs:label, $(Name)] - - p: schema:email + - [schema:name, $(Name)] # 1.3.1.1 + - [rdfs:label, $(Name)] # 1.3.1.1 + - p: schema:email # 1.3.2.5 o: $(EmailAddress) condition: function: idlab-fn:notEqual parameters: - [grel:valueParameter, $(EmailAddress)] - [grel:valueParameter2, ""] - - p: schema:address + - p: schema:address # 1.3.2.1 o: $(PostAddress) condition: function: idlab-fn:notEqual parameters: - [grel:valueParameter, $(PostAddress)] - [grel:valueParameter2, ""] - - p: schema:taxID + - p: schema:taxID # 1.3.1.2 o: $(RegisteredBusinessNumber) condition: function: idlab-fn:notEqual parameters: - [grel:valueParameter, $(RegisteredBusinessNumber)] - [grel:valueParameter2, ""] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} diff --git a/mappings/ERATV-vehicle-types.yml b/mappings/ERATV-vehicle-types.yml index 2c07e9f..4771fb6 100644 --- a/mappings/ERATV-vehicle-types.yml +++ b/mappings/ERATV-vehicle-types.yml @@ -4,29 +4,35 @@ prefixes: grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" rdfs: "http://www.w3.org/2000/01/rdf-schema#" eu-country: "http://publications.europa.eu/resource/authority/country/" - era: "http://era.europa.eu/ns#" - era-vehicle-types: "http://era.europa.eu/concepts/vehicle-types#" - era-manufacturers: "http://era.europa.eu/manufacturers#" - era-gaugings: "http://era.europa.eu/concepts/gaugings#" - era-ap: "http://era.europa.eu/concepts/axle-positions#" - era-am: "http://era.europa.eu/concepts/axle-monitoring#" - era-mscd: "http://era.europa.eu/concepts/max-speed-cant-deficiency#" - era-tds: "http://era.europa.eu/concepts/train-detection#" - era-ri: "http://era.europa.eu/concepts/rail-inclinations#" - era-gcf: "http://era.europa.eu/concepts/gauge-changeover-facilities#" - era-ebp: "http://era.europa.eu/concepts/emergency-braking-profiles#" - era-bwp: "http://era.europa.eu/concepts/brake-weight-percentages#" - era-ess: "http://era.europa.eu/concepts/energy-supply-systems#" - era-tc: "http://era.europa.eu/concepts/thermal-capacity#" - era-ic: "http://era.europa.eu/concepts/ice-conditions#" - era-csm: "http://era.europa.eu/concepts/contact-strip-materials#" - era-rsf: "http://era.europa.eu/concepts/rolling-stock-fire#" - era-ph: "http://era.europa.eu/concepts/platform-heights#" - era-esc: "http://era.europa.eu/concepts/etcs-system-compatibilities#" - era-gsmr: "http://era.europa.eu/concepts/gsmr-networks#" - era-rsc: "http://era.europa.eu/concepts/radio-system-compatibilities#" - era-tpls: "http://era.europa.eu/concepts/train-protection-legacy-systems#" - era-lrs: "http://era.europa.eu/concepts/legacy-radio-systems#" + era: "http://data.europa.eu/949/" + era-vehicle-types: "http://data.europa.eu/949/concepts/vehicle-types/" + era-manufacturers: "http://data.europa.eu/949/manufacturers/" + era-gaugings: "http://data.europa.eu/949/concepts/gaugings/" + era-ntg: "http://data.europa.eu/949/concepts/nominal-track-gauges/" + era-am: "http://data.europa.eu/949/concepts/axle-monitoring/" + era-tds: "http://data.europa.eu/949/concepts/train-detection/" + era-ri: "http://data.europa.eu/949/concepts/rail-inclinations/" + era-gcf: "http://data.europa.eu/949/concepts/gauge-changeover-facilities/" + era-bwp: "http://data.europa.eu/949/concepts/brake-weight-percentages/" + era-ess: "http://data.europa.eu/949/concepts/energy-supply-systems/" + era-tc: "http://data.europa.eu/949/concepts/thermal-capacity/" + era-ic: "http://data.europa.eu/949/concepts/ice-conditions/" + era-csm: "http://data.europa.eu/949/concepts/contact-strip-materials/" + era-rsf: "http://data.europa.eu/949/concepts/rolling-stock-fire/" + era-ph: "http://data.europa.eu/949/concepts/platform-heights/" + era-esc: "http://data.europa.eu/949/concepts/etcs-system-compatibilities/" + era-gsmr: "http://data.europa.eu/949/concepts/gsmr-networks/" + era-gsmrev: "http://data.europa.eu/949/concepts/gsm-r-equipment-version/" + era-gsmrrdc: "http://data.europa.eu/949/concepts/gsm-r-radio-data-communication/" + era-rsc: "http://data.europa.eu/949/concepts/radio-system-compatibilities/" + era-tpls: "http://data.europa.eu/949/concepts/train-protection-legacy-systems/" + era-lrs: "http://data.europa.eu/949/concepts/legacy-radio-systems/" + era-bpt: "http://data.europa.eu/949/concepts/brake-parking-type/" + era-ect: "http://data.europa.eu/949/concepts/end-coupling-type/" + era-eeobl: "http://data.europa.eu/949/concepts/etcs-equipment-on-board-level/" + era-etcsbaseline: "http://data.europa.eu/949/concepts/etcs-baselines/" + era-etcsinfill: "http://data.europa.eu/949/concepts/etcs-infills/" + variables: connection: access: &host ${ERATV_HOST} @@ -46,19 +52,19 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT VehicleTypes.TypeVersionNumber, VehicleTypes.TypeName, VehicleTypes.AlternativeTypeName, Categories.Code AS CategoryCode, Categories.Name AS Category, SubCategories.Code AS SubCategoryCode, SubCategories.Name AS SubCategory, Countries.Name AS Country, Countries.Code AS CountryCode, Manufacturers.Name AS Manufacturer FROM ERATV.dbo.VehicleTypes, ERATV.dbo.Categories, ERATV.dbo.SubCategories, ERATV.dbo.Countries, ERATV.dbo.Manufacturers WHERE VehicleTypes.CategoriesId = Categories.Id AND VehicleTypes.SubCategoriesId = SubCategories.Id AND VehicleTypes.CountriesId = Countries.Id AND VehicleTypes.ManufacturersId = Manufacturers.Id AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - [a, era:VehicleType] - - [era:manufacturer, era-manufacturers:$(Manufacturer)~iri] - - [era:typeVersionNumber, $(TypeVersionNumber)] - - p: rdfs:label + - [era:manufacturer, era-manufacturers:$(Manufacturer)~iri] # 1.3 + - [era:typeVersionNumber, $(TypeVersionNumber)] # 0.1 + - p: rdfs:label # 1.1 o: $(TypeName) condition: function: idlab-fn:notEqual parameters: - [grel:valueParameter, $(TypeName)] - [grel:valueParameter2, ""] - - p: era:manufacturingCountry + - p: era:manufacturingCountry # 1.3.2.3 o: - mapping: eu-country condition: @@ -66,14 +72,14 @@ mappings: parameters: - [str1, $(CountryCode)] - [str2, $(code)] - - p: era:alternativeName + - p: era:alternativeName # 1.2 o: $(AlternativeTypeName) condition: function: idlab-fn:notEqual parameters: - [grel:valueParameter, $(AlternativeTypeName)] - [grel:valueParameter2, ""] - - p: era:category + - p: era:category # 1.4 o: era-vehicle-types:tractionVehicles~iri condition: function: idlab-fn:equal @@ -101,7 +107,7 @@ mappings: parameters: - [grel:valueParameter, $(CategoryCode)] - [grel:valueParameter2, "71"] - - p: era:subCategory + - p: era:subCategory # 1.5 o: era-vehicle-types:locomotive~iri condition: function: idlab-fn:equal @@ -206,7 +212,7 @@ mappings: parameters: - [grel:valueParameter, $(SubCategoryCode)] - [grel:valueParameter2, "73"] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} authorized-countries: sources: @@ -215,8 +221,8 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, Countries.Code FROM ERATV.dbo.VehicleTypes, ERATV.dbo.Authorisations, ERATV.dbo.AuthorisationMemberStates, ERATV.dbo.Countries WHERE VehicleTypes.Id = Authorisations.VehicleTypeId AND Authorisations.Id = AuthorisationMemberStates.AuthorisationId AND AuthorisationMemberStates.CountryId = Countries.Id; - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, Countries.Code FROM ERATV.dbo.VehicleTypes, ERATV.dbo.Authorisations, ERATV.dbo.AuthorisationMemberStates, ERATV.dbo.Countries WHERE VehicleTypes.Id = Authorisations.VehicleTypeId AND Authorisations.Id = AuthorisationMemberStates.AuthorisationId AND AuthorisationMemberStates.CountryId = Countries.Id AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - p: era:authorizedCountry o: @@ -226,494 +232,546 @@ mappings: parameters: - [str1, $(Code)] - [str2, $(code)] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} eu-country: sources: - ["data/countries.csv~csv"] s: $(eu) - # ------------Traffic loads and load carrying capacity of infrastructure-------------- + # ------------General technical characteristics-------------- - static-axle-load-in-working-order: # 4.5.3.1 + driving-cabs: # 4.1.1 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.3.1')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, DrivingCabs.Name FROM ERATV.dbo.VehicleTypes, ERATV.dbo.DrivingCabs WHERE VehicleTypes.DrivingCabsId = DrivingCabs.Id AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - [era:staticAxleLoadWorkingOrder, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} + - [era:drivingCabs, $(Name), xsd:integer] + graph: ${NAMED_GRAPH} - static-axle-load-under-normal-payload: # 4.5.3.2 + # ------------Speed-------------- + + maximum-design-speed: # 4.1.2.1 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.3.2')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.2.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - [era:staticAxleLoadNormalPayload, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} - - static-axle-load-under-exceptional-payload: # 4.5.3.3 + - [era:maximumDesignSpeed, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + maximum-speed-empty: # 4.1.2.2 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.3.3')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.2.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:staticAxleLoadExceptionalPayload, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} + - [era:maximumSpeedEmpty, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} - design-mass-in-working-order: # 4.5.2.1 + wheelset-gauge: # 4.1.3 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.2.1')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, Parameters.Code, Parameters.Name AS ParameterName, REVERSE(SUBSTRING(REVERSE(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId))), 3, 10)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - [era:designMassWorkingOrder, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} - - design-mass-under-normal-payload: # 4.5.2.2 + - [era:wheelSetGauge, era-ntg:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + wheelset-gauge-transformation-method: # 4.1.3.b sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.2.2')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.3.b')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:designMassNormalPayload, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} - - design-mass-under-exceptional-payload: # 4.5.2.3 + - [era:wheelSetGaugeTransformationMethod, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + conditions-regarding-train-formation: # 4.1.4 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.2.3')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.4')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:designMassExceptionalPayload, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} + - [era:conditionsTrainFormation, $(ParameterValue)] + graph: ${NAMED_GRAPH} - maximum-design-speed: # 4.1.2.1 + maximum-trainsets-locomotives-coupled: # 4.1.5 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.2.1')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.5')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:maximumDesignSpeed, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} - - vehicle-length: # 4.8.1 + - [era:maximumLocomotivesCoupled, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + number-elements-rake-freight-wagons: # 4.1.6 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.8.1')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.6')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:vehicleLength, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} - - axle-spacing: # 4.5.3.4 + - [era:numberElementsRakeFreightWagons, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + letter-marking: # 4.1.7 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, REPLACE(RegistrationParameters.Value, ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.3.4')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.7')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:axleSpacing, era-ap:$(ParameterURI)~iri] - graphs: ${NAMED_GRAPH} - - permissible-payload: # 4.5.1 + - [era:letterMarking, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + meets-requirement-vehicle-authorisation-member-state: # 4.1.8 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND RegistrationParameters.Value != '' AND (Parameters.Code IN ('4.5.1')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.8')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:permissiblePayload, $(ParameterValue)] - graphs: ${NAMED_GRAPH} + - [era:meetsRequirementVehicleAuthorisation, $(ParameterValue)] + graph: ${NAMED_GRAPH} - # -----------------Gauging-------------------- - - vehicle-gauge: # 4.2.1 + dangerous-goods-tank-code: # 4.1.9 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.2.1')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.9')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - p: era:gaugingProfile - o: era-gaugings:$(ParameterURI)~iri - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - - p: era:gaugingProfile - o: era-gaugings:$(OtherURI)~iri - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - graphs: ${NAMED_GRAPH} - - # -----------------Vertical radius-------------------- - - minimum-vertical-convex-radius: # 4.8.5 + - [era:dangerousGoodsTankCode, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + structural-category: # 4.1.10 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.8.5')); + query: SELECT VehicleTypes.TypeVersionNumber, CASE WHEN RegistrationParameters.OtherValue IS NOT NULL THEN RegistrationParameters.OtherValue ELSE ReferenceListValues.[Name] END AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters, ERATV.dbo.ReferenceListValues WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.10')) AND RegistrationParameters.ReferenceListValueId = ReferenceListValues.Id AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:minimumConvexVerticalRadius, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} + - [era:structuralCategory, $(ParameterValue)] + graph: ${NAMED_GRAPH} - minimum-vertical-concave-radius: # 4.8.6 + wheelset-gauge-changeover-facility: # 4.1.11 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.8.6')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.11')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - [era:minimumConcaveVerticalRadius, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} - - # -----------------Train detection systems-------------------- + - p: era:wheelSetGaugeChangeoverFacility + o: era-gcf:$(ParameterURI)~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + - p: era:wheelSetGaugeChangeoverFacility + o: era-gcf:$(OtherURI)~iri + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + graph: ${NAMED_GRAPH} - train-detection-system-type: # 4.14.1 + vehicles-composing-fixed-formation: # 4.1.12 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, REPLACE(LOWER(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId))), ' ', '') AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.1')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.12')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - p: era:trainDetectionSystem - o: era-tds:track_circuit~iri - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "trackcircuits"] - - p: era:trainDetectionSystem - o: era-tds:wheel_detector~iri - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "axlecounters"] - - p: era:trainDetectionSystem - o: era-tds:loop~iri - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "loops"] - graphs: ${NAMED_GRAPH} + - [era:vehiclesComposingFixedFormation, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} - # -----------------Hot axle box detection-------------------- + # ------------Vehicle gauge-------------- - axle-bearing-condition-monitoring: # 4.9.2 + vehicle-gauge: # 4.2.1 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.9.2')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.2.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - p: era:axleBearingConditionMonitoring - o: era-am:$(ParameterURI)~iri + - p: era:gaugingProfile + o: era-gaugings:$(ParameterURI)~iri condition: function: idlab-fn:equal parameters: - [grel:valueParameter, $(OtherURI)] - [grel:valueParameter2, ""] - - p: era:axleBearingConditionMonitoring - o: era-am:$(OtherURI)~iri + - p: era:gaugingProfile + o: era-gaugings:$(OtherURI)~iri condition: function: idlab-fn:notEqual parameters: - [grel:valueParameter, $(OtherURI)] - [grel:valueParameter2, ""] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} - # -----------------Running characteristics-------------------- - - maximum-speed-and-cant-deficiency: # 4.6.4 + other-vehicle-gauge: # 4.2.2 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, REPLACE(RegistrationParameters.Value, ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.6.4')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.2.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - [era:maximumSpeedAndCantDeficiency, era-mscd:$(ParameterURI)~iri] - graphs: ${NAMED_GRAPH} + - [era:gaugingProfile, era-gaugings:$(ParameterURI)~iri] + graph: ${NAMED_GRAPH} - rail-inclination: # 4.6.5 + # ------------Environmental conditions-------------- + + temperature-range: # 4.3.1 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.6.5')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT * FROM (SELECT VehicleTypes.TypeVersionNumber, SUBSTRING(REPLACE(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', ''), PATINDEX('%-[0-9][0-9]%', REPLACE(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', '')), 3) AS MinimumTemperature, SUBSTRING(REPLACE(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', ''), PATINDEX('%+[0-9][0-9]%', REPLACE(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', '')) + 1, 2) AS MaximumTemperature FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != '' AND (Parameters.Code IN ('4.3.1'))) VirtualTable WHERE PATINDEX('%[0-9]%', MinimumTemperature) > 0; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - p: era:railInclination - o: era-ri:$(ParameterURI)~iri - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - - p: era:railInclination - o: era-ri:$(OtherURI)~iri - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - graphs: ${NAMED_GRAPH} - - # -----------------Wheelset-------------------- + - [era:minimumTemperature, $(MinimumTemperature), xsd:integer] + - [era:maximumTemperature, $(MaximumTemperature), xsd:integer] + graph: ${NAMED_GRAPH} - wheelset-gauge: # 4.1.3 + altitude-range: # 4.3.2 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, Parameters.Code, Parameters.Name AS ParameterName, REVERSE(SUBSTRING(REVERSE(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId))), 3, 10)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.3')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.3.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:wheelSetGauge, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} - - minimum-wheel-diameter: # 4.8.2 + - [era:altitudeRange, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + altitude-range-detail: # 4.3.2.1 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.8.2')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.3.2.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:minimumWheelDiameter, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} + - [era:altitudeRangeDetail, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} - wheelset-gauge-changeover-facility: # 4.1.11 + snow-ice-hail-conditions: # 4.3.3 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.11')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.3.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - p: era:wheelSetGaugeChangeoverFacility - o: era-gcf:$(ParameterURI)~iri + - p: era:snowIceHailConditions + o: era-ic:$(ParameterURI)~iri condition: function: idlab-fn:equal parameters: - [grel:valueParameter, $(OtherURI)] - [grel:valueParameter2, ""] - - p: era:wheelSetGaugeChangeoverFacility - o: era-gcf:$(OtherURI)~iri + - p: era:snowIceHailConditions + o: era-ic:$(OtherURI)~iri condition: function: idlab-fn:notEqual parameters: - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - graphs: ${NAMED_GRAPH} + - [grel:valueParameter2, ""] + graph: ${NAMED_GRAPH} - # -----------------Minimum curve-------------------- + # ------------Fire safety-------------- - minimum-horizontal-curve-radius: # 4.8.4 + fire-safety-category: # 4.4.1 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.8.4')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.4.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - [era:minimumHorizontalRadius, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} + - p: era:fireSafetyCategory + o: era-rsf:a~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "A"] + - p: era:fireSafetyCategory + o: era-rsf:b~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "B"] + - p: era:fireSafetyCategory + o: era-rsf:none~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "no category, acceptable in tunnels shorter then 1km"] + - p: era:fireSafetyCategory + o: era-rsf:otm~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "OTM as defined in 4.2.10.1.2"] + - p: era:fireSafetyCategory + o: era-rsf:srt-tsi~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "SRT TSI Freight Locomotive as defined in 4.2.10.1.2"] + graph: ${NAMED_GRAPH} - # -------------------Braking----------------------- + # ------------Design mass and loads-------------- - emergency-braking: # 4.7.5 + permissible-payload: # 4.5.1 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, RegistrationParameters.Value AS ParameterValue, REPLACE(RegistrationParameters.Value, ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.5')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND RegistrationParameters.Value != '' AND (Parameters.Code IN ('4.5.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - [era:emergencyBrake, era-ebp:$(ParameterURI)~iri] - graphs: ${NAMED_GRAPH} + - [era:permissiblePayload, $(ParameterValue)] + graph: ${NAMED_GRAPH} - brake-weight-percentage: # 4.7.6 + # ------------Design mass-------------- + + design-mass-in-working-order: # 4.5.2.1 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, RegistrationParameters.Value AS ParameterValue, REPLACE(RegistrationParameters.Value, ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.6')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.2.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - [era:brakeWeightPercentage, era-bwp:$(ParameterURI)~iri] - graphs: ${NAMED_GRAPH} + - [era:designMassWorkingOrder, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} - thermal-capacity-tsi-reference-case: # 4.7.2.1.1 + design-mass-under-normal-payload: # 4.5.2.2 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, REPLACE(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', '_') AS UriName FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.2.1.1')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.2.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - [era:thermalCapacityTSIReference, era-tc:$(UriName)~iri] - graphs: ${NAMED_GRAPH} + - [era:designMassNormalPayload, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} - thermal-capacity-speed: # 4.7.2.1.2 + design-mass-under-exceptional-payload: # 4.5.2.3 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.2.1.2')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.2.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - [era:thermalCapacitySpeed, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} - - thermal-capacity-gradient: # 4.7.2.1.3 + - [era:designMassExceptionalPayload, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + # ------------Static axle load-------------- + + static-axle-load-in-working-order: # 4.5.3.1 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.2.1.3')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.3.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - [era:thermalCapacityGradient, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} + - [era:staticAxleLoadWorkingOrder, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} - thermal-capacity-distance: # 4.7.2.1.4 + static-axle-load-under-normal-payload: # 4.5.3.2 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.2.1.4')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.3.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - [era:thermalCapacityDistance, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} - - thermal-capacity-time: # 4.7.2.1.5 + - [era:staticAxleLoadNormalPayload, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + static-axle-load-under-exceptional-payload: # 4.5.3.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.3.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:staticAxleLoadExceptionalPayload, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + axle-spacing: # 4.5.3.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, RegistrationParameters.Value AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.3.4')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:axleSpacing, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + quasi-static-guiding-force: # 4.5.4 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.2.1.5')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.4')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:thermalCapacityTime, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} - - parking-brake-maximum-gradient: # 4.7.3.3 + - [era:quasiStaticGuidingForce, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + total-vehicle-mass: # 4.5.5 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.3.3')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.5')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:parkingBrakeMaximumGradient, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} - - # -------------------Magnetic track brake----------------------- + - [era:totalVehicleMass, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} - magnetic-brake-fitted: # 4.7.4.2.1 + mass-per-wheel: # 4.5.6 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.4.2.1')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.6')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - p: era:magneticBraking - o: + - [era:massPerWheel, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + # ------------Rolling stock dynamic behavior-------------- + + cant-defficiency: # 4.6.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.6.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:cantDefficiency, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + has-cant-defficiency-compensation: # 4.6.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.6.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:hasCantDefficiencyCompensation + o: value: "true" datatype: xsd:boolean condition: @@ -721,7 +779,7 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "True"] - - p: era:magneticBraking + - p: era:hasCantDefficiencyCompensation o: value: "false" datatype: xsd:boolean @@ -730,19 +788,149 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "False"] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} - magnetic-brake-prevention: # 4.7.4.2.2 + maximum-speed-and-cant-deficiency: # 4.6.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, RegistrationParameters.Value AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.6.4')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:maximumSpeedAndCantDeficiency, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + rail-inclination: # 4.6.5 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.4.2.2')); + query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.6.5')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:railInclination + o: era-ri:$(ParameterURI)~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + - p: era:railInclination + o: era-ri:$(OtherURI)~iri + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + graph: ${NAMED_GRAPH} + + maximum-average-deceleration: # 4.7.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - p: era:magneticBrakePrevention + - [era:maximumAverageDeceleration, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + thermal-capacity-tsi-reference-case: # 4.7.2.1.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', '_') AS UriName FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.2.1.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:thermalCapacityTSIReference, era-tc:$(UriName)~iri] + graph: ${NAMED_GRAPH} + + thermal-capacity-speed: # 4.7.2.1.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.2.1.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:thermalCapacitySpeed, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + thermal-capacity-gradient: # 4.7.2.1.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.2.1.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:thermalCapacityGradient, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + thermal-capacity-distance: # 4.7.2.1.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.2.1.4')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:thermalCapacityDistance, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + thermal-capacity-time: # 4.7.2.1.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.2.1.5')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:thermalCapacityTime, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + maximum-brake-thermal-energy-capacity: # 4.7.2.1.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.2.1.6')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:maximumBrakeThermalEnergyCapacity, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + parking-brake-mandatory: # 4.7.3.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.3.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:parkingBrakeMandatory o: value: "true" datatype: xsd:boolean @@ -751,7 +939,7 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "True"] - - p: era:magneticBrakePrevention + - p: era:parkingBrakeMandatory o: value: "false" datatype: xsd:boolean @@ -760,21 +948,45 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "False"] - graphs: ${NAMED_GRAPH} - - # -------------------Eddy current track brake----------------------- + graph: ${NAMED_GRAPH} - eddy-current-brake-fitted: # 4.7.4.1.1 + parking-brake-type: # 4.7.3.2 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.4.1.1')); + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE(ReferenceListValues.[Name], ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters, ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID = RegistrationParameters.ReferenceListValueId AND VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.3.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - p: era:eddyCurrentBraking + - [era:parkingBrakeType, era-bpt:$(ParameterURI)~iri)] + graph: ${NAMED_GRAPH} + + parking-brake-maximum-gradient: # 4.7.3.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.3.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:parkingBrakeMaximumGradient, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + parking-brake: # 4.7.3.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.3.4')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:parkingBrake o: value: "true" datatype: xsd:boolean @@ -783,7 +995,7 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "True"] - - p: era:eddyCurrentBraking + - p: era:parkingBrake o: value: "false" datatype: xsd:boolean @@ -792,19 +1004,21 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "False"] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} - eddy-current-brake-prevention: # 4.7.4.1.2 + # -----------------Eddy current brake-------------------- + + eddy-current-brake-fitted: # 4.7.4.1.1 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.4.1.2')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.4.1.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - p: era:eddyCurrentBrakePrevention + - p: era:eddyCurrentBraking o: value: "true" datatype: xsd:boolean @@ -813,7 +1027,7 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "True"] - - p: era:eddyCurrentBrakePrevention + - p: era:eddyCurrentBraking o: value: "false" datatype: xsd:boolean @@ -822,91 +1036,81 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "False"] - graphs: ${NAMED_GRAPH} - - # -------------------Weather conditions----------------------- + graph: ${NAMED_GRAPH} - temperature-range: # 4.3.1 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT * FROM (SELECT VehicleTypes.TypeVersionNumber, SUBSTRING(REPLACE(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', ''), PATINDEX('%-[0-9][0-9]%', REPLACE(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', '')), 3) AS MinimumTemperature, SUBSTRING(REPLACE(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', ''), PATINDEX('%+[0-9][0-9]%', REPLACE(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', '')) + 1, 2) AS MaximumTemperature FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.3.1'))) VirtualTable WHERE PATINDEX('%[0-9]%', MinimumTemperature) > 0; - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) - po: - - [era:minimumTemperature, $(MinimumTemperature), xsd:integer] - - [era:maximumTemperature, $(MaximumTemperature), xsd:integer] - graphs: ${NAMED_GRAPH} - - snow-ice-hail-conditions: # 4.3.3 + eddy-current-brake-prevention: # 4.7.4.1.2 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.3.3')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.4.1.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - p: era:snowIceHailConditions - o: era-ic:$(ParameterURI)~iri + - p: era:eddyCurrentBrakePrevention + o: + value: "true" + datatype: xsd:boolean condition: function: idlab-fn:equal parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - - p: era:snowIceHailConditions - o: era-ic:$(OtherURI)~iri + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "True"] + - p: era:eddyCurrentBrakePrevention + o: + value: "false" + datatype: xsd:boolean condition: - function: idlab-fn:notEqual + function: idlab-fn:equal parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - graphs: ${NAMED_GRAPH} + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "False"] + graph: ${NAMED_GRAPH} - # -------------------Voltages and frequencies----------------------- + # -------------------Magnetic track brake----------------------- - energy-supply-system: # 4.10.1 + magnetic-brake-fitted: # 4.7.4.2.1 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.1')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.4.2.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - p: era:energySupplySystem - o: era-ess:$(ParameterURI)~iri + - p: era:magneticBraking + o: + value: "true" + datatype: xsd:boolean condition: function: idlab-fn:equal parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - - p: era:energySupplySystem - o: era-ess:$(OtherURI)~iri + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "True"] + - p: era:magneticBraking + o: + value: "false" + datatype: xsd:boolean condition: - function: idlab-fn:notEqual + function: idlab-fn:equal parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - graphs: ${NAMED_GRAPH} - - # -------------------Regenerative brake---------------------- + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "False"] + graph: ${NAMED_GRAPH} - regenerative-brake-fitted: # 4.7.4.3.1 + magnetic-brake-prevention: # 4.7.4.2.2 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.4.3.1')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.4.2.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - p: era:hasRegenerativeBrake + - p: era:magneticBrakePrevention o: value: "true" datatype: xsd:boolean @@ -915,7 +1119,7 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "True"] - - p: era:hasRegenerativeBrake + - p: era:magneticBrakePrevention o: value: "false" datatype: xsd:boolean @@ -924,19 +1128,21 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "False"] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} - prevent-regenerative-break: # 4.7.4.3.2 + # -------------------Regenerative brake---------------------- + + regenerative-brake-fitted: # 4.7.4.3.1 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.4.3.1')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.4.3.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - p: era:preventRegenerativeBrakeUse + - p: era:hasRegenerativeBrake o: value: "true" datatype: xsd:boolean @@ -945,7 +1151,7 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "True"] - - p: era:preventRegenerativeBrakeUse + - p: era:hasRegenerativeBrake o: value: "false" datatype: xsd:boolean @@ -954,21 +1160,19 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "False"] - graphs: ${NAMED_GRAPH} - - # -------------------Current limitation---------------------- + graph: ${NAMED_GRAPH} - current-limitation: # 4.10.14 + prevent-regenerative-break: # 4.7.4.3.2 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.14')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.4.3.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - p: era:hasCurrentLimitation + - p: era:preventRegenerativeBrakeUse o: value: "true" datatype: xsd:boolean @@ -976,8 +1180,8 @@ mappings: function: idlab-fn:equal parameters: - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "True"] - - p: era:hasCurrentLimitation + - [grel:valueParameter2, "True"] + - p: era:preventRegenerativeBrakeUse o: value: "false" datatype: xsd:boolean @@ -986,155 +1190,1143 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "False"] - graphs: ${NAMED_GRAPH} - - # -------------------Pantograph---------------------- + graph: ${NAMED_GRAPH} - maximum-current-standstill: # 4.10.4 + emergency-braking: # 4.7.5 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.4')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, RegistrationParameters.Value AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.5')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - [era:maxCurrentStandstillPantograph, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} + - [era:emergencyBrake, $(ParameterValue)] + graph: ${NAMED_GRAPH} - wire-contact-height: # 4.10.5 + brake-weight-percentage: # 4.7.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, RegistrationParameters.Value AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.6')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:brakeWeightPercentage, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + maximum-service-brake: # 4.7.7 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.7')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:maximumServiceBrake, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + wheel-slide-protection-system: # 4.7.8 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.8')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:hasWheelSlideProtectionSystem + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "True"] + - p: era:hasWheelSlideProtectionSystem + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "False"] + graph: ${NAMED_GRAPH} + + # -----------------Geometrical characteristics-------------------- + + vehicle-length: # 4.8.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.8.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:length, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + minimum-wheel-diameter: # 4.8.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.8.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:minimumWheelDiameter, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + shunting-restrictions: # 4.8.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.8.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:hasShuntingRestrictions + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "True"] + - p: era:hasShuntingRestrictions + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "False"] + graph: ${NAMED_GRAPH} + + minimum-horizontal-curve-radius: # 4.8.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.8.4')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:minimumHorizontalRadius, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + minimum-vertical-convex-radius: # 4.8.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.8.5')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:minimumConvexVerticalRadius, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + minimum-vertical-concave-radius: # 4.8.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.8.6')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:minimumConcaveVerticalRadius, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + loading-platform-height: # 4.8.7 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.8.7')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:loadingPlatformHeight, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + suited-for-ferry-transport: # 4.8.8 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.8.8')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:transportableOnFerry + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "True"] + - p: era:transportableOnFerry + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "False"] + graph: ${NAMED_GRAPH} + + # -----------------Equipment-------------------- + + end-coupling-type: # 4.9.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.9.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:endCouplingType + o: era-ect:$(ParameterURI)~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + - p: era:endCouplingType + o: era-ect:$(OtherURI)~iri + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + graph: ${NAMED_GRAPH} + + axle-bearing-condition-monitoring: # 4.9.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.9.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:axleBearingConditionMonitoring + o: era-am:$(ParameterURI)~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + - p: era:axleBearingConditionMonitoring + o: era-am:$(OtherURI)~iri + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + graph: ${NAMED_GRAPH} + + flange-lubrication-fitted: # 4.9.3.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND RegistrationParameters.Value != '' AND (Parameters.Code IN ('4.9.3.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:flangeLubricationFitted + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "True"] + - p: era:flangeLubricationFitted + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "False"] + graph: ${NAMED_GRAPH} + + preventing-use-lubrication-device: # 4.9.3.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND RegistrationParameters.Value != '' AND (Parameters.Code IN ('4.9.3.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:hasLubricationDevicePrevention + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "True"] + - p: era:hasLubricationDevicePrevention + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "False"] + graph: ${NAMED_GRAPH} + + # -----------------Energy supply-------------------- + + energy-supply-system: # 4.10.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:energySupplySystem + o: era-ess:$(ParameterURI)~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + - p: era:energySupplySystem + o: era-ess:$(OtherURI)~iri + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + graph: ${NAMED_GRAPH} + + energy-supply-system-max-power: # 4.10.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:energySupplyMaxPower, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + max-rated-current-catenary: # 4.10.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:catenaryMaxRatedCurrent, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + maximum-current-standstill: # 4.10.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.4')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:maxCurrentStandstillPantograph, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + wire-contact-height: # 4.10.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, MinimumHeight = CASE WHEN ISNUMERIC(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 0, 8)) = 1 THEN CASE WHEN CAST(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 0, 8) AS float) > 10 THEN CAST(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 0, 8) AS float) / 1000 ELSE CAST(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 0, 8) AS float) END ELSE NULL END, MaximumHeight = CASE WHEN ISNUMERIC(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 14, 8)) = 1 THEN CASE WHEN CAST(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 14, 8) AS float) > 10 THEN CAST(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 14, 8) AS float) / 1000 ELSE CAST(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 14, 8) AS float) END ELSE NULL END FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.5')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:maximumContactWireHeight + o: + value: $(MaximumHeight) + datatype: xsd:double + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(MaximumHeight)] + - [grel:valueParameter2, ""] + - p: era:minimumContactWireHeight + o: + value: $(MinimumHeight) + datatype: xsd:double + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(MinimumHeight)] + - [grel:valueParameter2, ""] + graph: ${NAMED_GRAPH} + + pantograph-head: # 4.10.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.6')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:vehiclePantographHead, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + pantograph-number: # 4.10.7 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.7')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:numberOfPantographsInContactWithOCL, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + shortest-distance-between-pantograph: # 4.10.8 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.8')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:shortestDistanceBetweenPantographsInContactWithOCL, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + ocl-type: # 4.10.9 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.9')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:oclType, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + contact-strip-material: # 4.10.10 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE(LOWER((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.10')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:contactStripMaterial + o: era-csm:$(ParameterURI)~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + - p: era:contactStripMaterial + o: era-csm:$(OtherURI)~iri + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + graph: ${NAMED_GRAPH} + + automatic-dropping-device-fitted: # 4.10.11 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.11')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:hasAutomaticDroppingDevice + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "True"] + - p: era:hasAutomaticDroppingDevice + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "False"] + graph: ${NAMED_GRAPH} + + energy-meter-installed: # 4.10.12 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.11')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:energyMeterInstalled + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "True"] + - p: era:energyMeterInstalled + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "False"] + graph: ${NAMED_GRAPH} + + current-limitation: # 4.10.14 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.14')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:hasCurrentLimitation + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "True"] + - p: era:hasCurrentLimitation + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "False"] + graph: ${NAMED_GRAPH} + + contact-force: # 4.10.15 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.15')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:vehicleContactForce, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + # -----------------Noise-------------------- + + pass-by-noise-level: # 4.11.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.11.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:passByNoiseLevel, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + reference-pass-by-noise-level: # 4.11.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.11.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:referencePassByNoiseLevel + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "True"] + - p: era:referencePassByNoiseLevel + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "False"] + graph: ${NAMED_GRAPH} + + stationary-noise-level: # 4.11.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.11.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:stationaryNoiseLevel, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + starting-noise-level: # 4.11.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.11.4')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:startingNoiseLevel, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + # -----------------Passenger related characteristics-------------- + + fixed-seats: # 4.12.1.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.1.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:fixedSeats, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + number-of-toilets: # 4.12.1.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.1.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:numberOfToilets, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + sleeping-places: # 4.12.1.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.1.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:sleepingPlaces, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + priority-seats: # 4.12.2.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.2.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:prioritySeats, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + wheelchair-spaces: # 4.12.2.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.2.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:wheelchairSpaces, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + prm-accessible-toilets: # 4.12.2.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.2.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:prmAccessibleToilets, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + wheelchair-sleeping-places: # 4.12.2.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.2.4')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:wheelchairSleepingPlaces, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + platform-height: # 4.12.3.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, SUBSTRING(LTRIM(RTRIM(((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)))), 1, 3) AS ParameterValue, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.3.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:supportedPlatformHeight + o: era-ph:$(ParameterValue)~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + - p: era:supportedPlatformHeight + o: era-ph:$(OtherURI)~iri + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + graph: ${NAMED_GRAPH} + + boarding-aids: # 4.12.3.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.3.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:boardingAids, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + portable-boarding-aids: # 4.12.3.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.3.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:portableBoardingAids, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + # -----------------Signalling-------------------- + + etcs-equipment-on-board-level: # 4.13.1.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:etcsEquipmentOnBoardLevel, era-eeobl:$(ParameterURI)~iri] + graph: ${NAMED_GRAPH} + + etcs-baseline: # 4.13.1.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:etcsBaseline, era-etcsbaseline:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + etcs-reception-infill: # 4.13.1.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:etcsInfill, era-etcsinfill:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + etcs-national-applications: # 4.13.1.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.4')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:etcsNationalApplications, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + protection-legacy-system: # 4.13.1.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.5')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:protectionLegacySystem + o: era-tpls:$(ParameterURI)~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + - p: era:protectionLegacySystem + o: era-tpls:$(OtherURI)~iri + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherURI)] + - [grel:valueParameter2, ""] + graph: ${NAMED_GRAPH} + + train-control-switch-over-special-conditions: # 4.13.1.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.6')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:trainControlSwitchOverSpecialConditions, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + etcs-on-board-implementation: # 4.13.1.7 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.7')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:etcsOnBoardImplementation, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + etcs-compatible: # 4.13.1.8 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.8')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:etcsSystemCompatibility, era-esc:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + train-integrity: # 4.13.1.9 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.9')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:hasTrainIntegrityConfirmation + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "True"] + - p: era:hasTrainIntegrityConfirmation + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "False"] + graph: ${NAMED_GRAPH} + + # -----------------Radio-------------------- + + gsm-r-equipment-version: # 4.13.2.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:gsmRVersion, era-gsmrev:$(ParameterURI)~iri] + graph: ${NAMED_GRAPH} + + gsm-r-sets-driving-cab: # 4.13.2.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:gsmRSetsInDrivingCab, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + radio-legacy-system: # 4.13.2.3 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, MinimumHeight = CASE WHEN ISNUMERIC(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 0, 8)) = 1 THEN CASE WHEN CAST(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 0, 8) AS float) > 10 THEN CAST(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 0, 8) AS float) / 1000 ELSE CAST(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 0, 8) AS float) END ELSE NULL END, MaximumHeight = CASE WHEN ISNUMERIC(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 14, 8)) = 1 THEN CASE WHEN CAST(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 14, 8) AS float) > 10 THEN CAST(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 14, 8) AS float) / 1000 ELSE CAST(SUBSTRING(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 14, 8) AS float) END ELSE NULL END FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.5')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - p: era:maximumContactWireHeight - o: - value: $(MaximumHeight) - datatype: xsd:double + - p: era:legacyRadioSystem + o: era-tpls:$(ParameterURI)~iri condition: - function: idlab-fn:notEqual + function: idlab-fn:equal parameters: - - [grel:valueParameter, $(MaximumHeight)] + - [grel:valueParameter, $(OtherURI)] - [grel:valueParameter2, ""] - - p: era:minimumContactWireHeight - o: - value: $(MinimumHeight) - datatype: xsd:double + - p: era:legacyRadioSystem + o: era-tpls:$(OtherURI)~iri condition: function: idlab-fn:notEqual parameters: - - [grel:valueParameter, $(MinimumHeight)] + - [grel:valueParameter, $(OtherURI)] - [grel:valueParameter2, ""] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} - pantograph-head: # 4.10.6 + radio-switch-over-special-conditions: # 4.13.2.4 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.6')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.4')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:vehiclePantographHead, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - contact-strip-material: # 4.10.10 + - [era:radioSwitchOverSpecialConditions, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + voice-radio-compatible: # 4.13.2.5 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, REPLACE(LOWER((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.10')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.5')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - p: era:contactStripMaterial - o: era-csm:$(ParameterURI)~iri - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - - p: era:contactStripMaterial - o: era-csm:$(OtherURI)~iri - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - graphs: ${NAMED_GRAPH} + - [era:voiceRadioCompatible, era-rsc:$(ParameterURI)~iri] + graph: ${NAMED_GRAPH} - contact-force: # 4.10.15 + voice-operational-communication-implementation: # 4.13.2.6 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.15')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.6')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:vehicleContactForce, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} + - [era:voiceOperationalCommImpl, $(ParameterValue)] + graph: ${NAMED_GRAPH} - pantograph-number: # 4.10.7 + gsm-r-radio-data-communication: # 4.13.2.7 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.7')); + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.7')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:numberOfPantographsInContactWithOCL, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} + - [era:gsmRRadioDataCommunication, era-gsmrrdc:$(ParameterURI)~iri] + graph: ${NAMED_GRAPH} + + data-radio-compatible: # 4.13.2.8 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.8')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - [era:dataRadioCompatible, era-rsc:$(ParameterURI)~iri] + graph: ${NAMED_GRAPH} - shortest-distance-between-pantographs: # 4.10.8 + data-communication-aplication-etcs-impl: # 4.13.2.9 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.8')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.9')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:shortestDistanceBetweenPantographsInContactWithOCL, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} + - [era:etcsDataCommApp, $(ParameterValue)] + graph: ${NAMED_GRAPH} - ocl-type: # 4.10.9 + voice-gsm-r-home-network: # 4.13.2.10 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.9')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.10')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - [era:oclType, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - automatic-dropping-device-fitted: # 4.10.11 + - [era:voiceGSMRNetwork, era-gsmr:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + data-gsm-r-home-network: # 4.13.2.11 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.11')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.11')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - p: era:hasAutomaticDroppingDevice + - [era:dataGSMRNetwork, era-gsmr:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + group-555-support: # 4.13.2.12 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.12')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:usesGroup555 o: value: "true" datatype: xsd:boolean @@ -1143,7 +2335,7 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "True"] - - p: era:hasAutomaticDroppingDevice + - p: era:usesGroup555 o: value: "false" datatype: xsd:boolean @@ -1152,179 +2344,184 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "False"] - graphs: ${NAMED_GRAPH} - - # -------------------Tunnel---------------------- + graph: ${NAMED_GRAPH} - fire-safety-category: # 4.4.1 + # -----------------Compatibility with train detection systems-------------------- + + train-detection-system-type: # 4.14.1 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.4.1')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, REPLACE(LOWER(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId))), ' ', '') AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.1')); + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - p: era:fireSafetyCategory - o: era-rsf:a~iri - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "A"] - - p: era:fireSafetyCategory - o: era-rsf:b~iri - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "B"] - - p: era:fireSafetyCategory - o: era-rsf:none~iri + - p: era:trainDetectionSystemType + o: era-tds:track_circuit~iri condition: function: idlab-fn:equal parameters: - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "no category, acceptable in tunnels shorter then 1km"] - - p: era:fireSafetyCategory - o: era-rsf:otm~iri + - [grel:valueParameter2, "trackcircuits"] + - p: era:trainDetectionSystemType + o: era-tds:wheel_detector~iri condition: function: idlab-fn:equal parameters: - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "OTM as defined in 4.2.10.1.2"] - - p: era:fireSafetyCategory - o: era-rsf:srt-tsi~iri + - [grel:valueParameter2, "axlecounters"] + - p: era:trainDetectionSystemType + o: era-tds:loop~iri condition: function: idlab-fn:equal parameters: - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "SRT TSI Freight Locomotive as defined in 4.2.10.1.2"] - graphs: ${NAMED_GRAPH} - - # -------------------Train length---------------------- - # 4.8.1 mapped among traffic load parameters - - # -----------Platform height and access and egress-------- + - [grel:valueParameter2, "loops"] + graph: ${NAMED_GRAPH} - platform-height: # 4.12.3.1 + max-distance-consecutive-axles: # 4.14.2.1 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, SUBSTRING(TRIM((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 1, 3) AS ParameterValue, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.3.1')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - p: era:platformHeight - o: era-ph:$(ParameterValue)~iri - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - - p: era:platformHeight - o: era-ph:$(OtherURI)~iri - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - graphs: ${NAMED_GRAPH} - - # -----------------------ETCS-------------------------- + - [era:maxDistConsecutiveAxles, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + min-distance-consecutive-axles: # 4.14.2.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.2')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:minDistConsecutiveAxles, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} - etcs-compatible: # 4.13.1.8 + distance-first-last-axles: # 4.14.2.3 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.8')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.3')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - p: era:etcsSystemCompatibility - o: era-esc:$(ParameterValue)~iri - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Not applicable"] - graphs: ${NAMED_GRAPH} + - [era:minDistFirstLastAxle, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + max-length-vehicle-nose: # 4.14.2.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.4')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:maxLengthVehicleNose, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} - train-integrity: # 4.13.1.9 not sure about this parameter + min-rim-width: # 4.14.2.5 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.9')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.5')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - p: era:hasTrainIntegrityConfirmation - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "True"] - - p: era:hasTrainIntegrityConfirmation - o: - value: "false" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "False"] - graphs: ${NAMED_GRAPH} + - [era:minRimWidth, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} - # -----------------------GSM-R-------------------------- + min-wheel-diameter: # 4.14.2.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.6')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:minWheelDiameter, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} - voice-gsm-r-home-network: # 4.13.2.10 + min-flange-thickness: # 4.14.2.7 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.10')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.7')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:voiceGSMRNetwork, era-gsmr:$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} + - [era:minFlangeThickness, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} - data-gsm-r-home-network: # 4.13.2.11 + min-flange-height: # 4.14.2.8 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.11')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.8')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - [era:dataGSMRNetwork, era-gsmr:$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} + - [era:minFlangeHeight, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + max-flange-height: # 4.14.2.9 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.9')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + po: + - [era:maxFlangeHeight, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} - group-555-support: # 4.13.2.12 + min-axle-load: # 4.14.2.10 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.12')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.10')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - p: era:usesGroup555 + - [era:minAxleLoad, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + ferromagnetic-wheel-material: # 4.14.2.12 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.12')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) + po: + - p: era:ferromagneticWheelMaterial o: value: "true" datatype: xsd:boolean @@ -1333,7 +2530,7 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "True"] - - p: era:usesGroup555 + - p: era:ferromagneticWheelMaterial o: value: "false" datatype: xsd:boolean @@ -1342,98 +2539,73 @@ mappings: parameters: - [grel:valueParameter, $(ParameterValue)] - [grel:valueParameter2, "False"] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} - voice-radio-compatible: # 4.13.2.5 + max-sanding-output: # 4.14.2.13 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.5')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.13')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - p: era:voiceRadioCompatible - o: era-rsc:$(ParameterValue)~iri - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Not applicable"] - graphs: ${NAMED_GRAPH} - - data-radio-compatible: # 4.13.2.8 + - [era:vehicleMaxSandingOutput, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + sanding-prevention: # 4.14.2.14 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.8')); - s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.14')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: http://data.europa.eu/949/vehicleTypes#$(TypeVersionNumber) po: - - p: era:dataRadioCompatible - o: era-rsc:$(ParameterValue)~iri + - p: era:hasSandingPrevention + o: + value: "true" + datatype: xsd:boolean condition: - function: idlab-fn:notEqual + function: idlab-fn:equal parameters: - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Not applicable"] - graphs: ${NAMED_GRAPH} - - # -----------------------Class B-------------------------- + - [grel:valueParameter2, "True"] + - p: era:hasSandingPrevention + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "False"] + graph: ${NAMED_GRAPH} - protection-legacy-system: # 4.13.1.5 + max-impedance-opposite-wheels: # 4.14.2.16 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.5')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.16')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - p: era:protectionLegacySystem - o: era-tpls:$(ParameterURI)~iri - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - - p: era:protectionLegacySystem - o: era-tpls:$(OtherURI)~iri - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - graphs: ${NAMED_GRAPH} + - [era:maxImpedanceWheelset, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} - radio-legacy-system: # 4.13.2.3 + min-vehicle-impedance: # 4.14.2.17 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT VehicleTypes.TypeVersionNumber, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.3')); + query: SELECT VehicleTypes.TypeVersionNumber, CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.14.2.17')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; s: http://era.europa.eu/vehicleTypes#$(TypeVersionNumber) po: - - p: era:legacyRadioSystem - o: era-tpls:$(ParameterURI)~iri - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - - p: era:legacyRadioSystem - o: era-tpls:$(OtherURI)~iri - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherURI)] - - [grel:valueParameter2, ""] - graphs: ${NAMED_GRAPH} - - \ No newline at end of file + - [era:minVehicleImpedance, $(ParameterValue)] + graph: ${NAMED_GRAPH} \ No newline at end of file diff --git a/mappings/RINF-ERATV-skos-concepts.yml b/mappings/RINF-ERATV-skos-concepts.yml index 38288d5..a85ef28 100644 --- a/mappings/RINF-ERATV-skos-concepts.yml +++ b/mappings/RINF-ERATV-skos-concepts.yml @@ -4,27 +4,50 @@ prefixes: skos: "http://www.w3.org/2004/02/skos/core#" idlab-fn: "http://example.com/idlab/function/" grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" - era: "http://era.europa.eu/ns#" - era-lc: "http://era.europa.eu/concepts/load-capabilities#" - era-gaugings: "http://era.europa.eu/concepts/gaugings#" - era-ap: "http://era.europa.eu/concepts/axle-positions#" - era-tds: "http://era.europa.eu/concepts/train-detection#" - era-am: "http://era.europa.eu/concepts/axle-monitoring#" - era-mscd: "http://era.europa.eu/concepts/max-speed-cant-deficiency#" - era-ri: "http://era.europa.eu/concepts/rail-inclinations#" - era-gcf: "http://era.europa.eu/concepts/gauge-changeover-facilities#" - era-ebp: "http://era.europa.eu/concepts/emergency-braking-profiles#" - era-bwp: "http://era.europa.eu/concepts/brake-weight-percentages#" - era-tc: "http://era.europa.eu/concepts/thermal-capacity#" - era-ic: "http://era.europa.eu/concepts/ice-conditions#" - era-cls: "http://era.europa.eu/concepts/contact-line-systems#" - era-ess: "http://era.europa.eu/concepts/energy-supply-systems#" - era-pth: "http://era.europa.eu/concepts/pantograph-heads#" - era-csm: "http://era.europa.eu/concepts/contact-strip-materials#" - era-ph: "http://era.europa.eu/concepts/platform-heights#" - era-gsmr: "http://era.europa.eu/concepts/gsmr-networks#" - era-tpls: "http://era.europa.eu/concepts/train-protection-legacy-systems#" - era-lrs: "http://era.europa.eu/concepts/legacy-radio-systems#" + era: "http://data.europa.eu/949/" + era-sn: "http://data.europa.eu/949/concepts/sol-natures/" + era-lc: "http://data.europa.eu/949/concepts/load-capabilities/" + era-gaugings: "http://data.europa.eu/949/concepts/gaugings/" + era-ntg: "http://data.europa.eu/949/concepts/nominal-track-gauges/" + era-tds: "http://data.europa.eu/949/concepts/train-detection/" + era-tdssc: "http://data.europa.eu/949/concepts/train-detection-specific-checks/" + era-malvc: "http://data.europa.eu/949/concepts/min-axle-loads-per-vehicle-category/" + era-mas: "http://data.europa.eu/949/concepts/max-amount-sandings/" + era-am: "http://data.europa.eu/949/concepts/axle-monitoring/" + era-ri: "http://data.europa.eu/949/concepts/rail-inclinations/" + era-gcf: "http://data.europa.eu/949/concepts/gauge-changeover-facilities/" + era-tc: "http://data.europa.eu/949/concepts/thermal-capacity/" + era-ic: "http://data.europa.eu/949/concepts/ice-conditions/" + era-cls: "http://data.europa.eu/949/concepts/contact-line-systems/" + era-ess: "http://data.europa.eu/949/concepts/energy-supply-systems/" + era-pth: "http://data.europa.eu/949/concepts/pantograph-heads/" + era-csm: "http://data.europa.eu/949/concepts/contact-strip-materials/" + era-ph: "http://data.europa.eu/949/concepts/platform-heights/" + era-gsmrev: "http://data.europa.eu/949/concepts/gsm-r-equipment-version#" + era-gsmr: "http://data.europa.eu/949/concepts/gsmr-networks/" + era-gsmrv: "http://data.europa.eu/949/concepts/gsmr-versions/" + era-gsmrnumactivemob: "http://data.europa.eu/949/concepts/gsmr-number-active-mobiles/" + era-gsmroptfunc: "http://data.europa.eu/949/concepts/gsmr-optional-functions/" + era-gsmrrdc: "http://data.europa.eu/949/concepts/gsm-r-radio-data-communication/" + era-tenclass: "http://data.europa.eu/949/concepts/ten-classifications/" + era-linecat: "http://data.europa.eu/949/concepts/line-category/" + era-pnsb: "http://data.europa.eu/949/concepts/profile-num-swap-bodies/" + era-pnst: "http://data.europa.eu/949/concepts/profile-num-semi-trailers/" + era-fc: "http://data.europa.eu/949/concepts/freight-corridor/" + era-etcslevel: "http://data.europa.eu/949/concepts/etcs-levels/" + era-etcsinfill: "http://data.europa.eu/949/concepts/etcs-infills/" + era-etcsbaseline: "http://data.europa.eu/949/concepts/etcs-baselines/" + era-etcsmvers: "http://data.europa.eu/949/concepts/etcs-m-versions/" + era-tpls: "http://data.europa.eu/949/concepts/train-protection-legacy-systems/" + era-lrs: "http://data.europa.eu/949/concepts/legacy-radio-systems/" + era-etcssituation: "http://data.europa.eu/949/concepts/etcs-situation/" + era-opcw: "http://data.europa.eu/949/concepts/other-protection-control-warning/" + era-esc: "http://data.europa.eu/949/concepts/etcs-system-compatibilities/" + era-rsc: "http://data.europa.eu/949/concepts/radio-system-compatibilities/" + era-bpt: "http://data.europa.eu/949/concepts/brake-parking-type/" + era-ect: "http://data.europa.eu/949/concepts/end-coupling-type/" + era-eeobl: "http://data.europa.eu/949/concepts/etcs-equipment-on-board-level/" + variables: connection: accessRinf: &hostRinf ${RINF_HOST} @@ -40,6 +63,20 @@ variables: referenceFormulation: &referenceFormulation csv mappings: + sol-natures: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT LookupValues.[Value] AS Label, REPLACE(LookupValues.[Value], ' ', '_') AS Value FROM RINF.dbo.LookupValues, RINF.dbo.SectionOfLines WHERE SectionOfLines.SOLNature = LookupValues.ID; + s: era-sn:$(Value) + po: + - [a, skos:Concept] + - [skos:inScheme, era-sn:SoLNatures~iri] + - [skos:prefLabel, $(Label)] + load-capability: sources: - access: *hostRinf @@ -48,9 +85,10 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT CONCAT(LookupValues.[Value], '-' , TrackParameters.Value) AS ParameterValue FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.LookupValues WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.2.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/concepts/load-capabilities#$(ParameterValue) + s: era-lc:$(ParameterValue) po: - - [a, era-lc:LoadCapability] + - [a, skos:Concept] + - [skos:inScheme, era-lc:LoadCapabilities~iri] - [skos:prefLabel, $(ParameterValue)] gauging-profile-rinf: @@ -61,9 +99,10 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT LookupValues.[Value] FROM RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE Parameters.[Index] IN ('1.1.1.1.3.1.1') AND Parameters.ID = LookupValues.ParameterId; - s: http://era.europa.eu/concepts/gaugings#$(Value) + s: era-gaugings:$(Value) po: - - [a, era-gaugings:GaugingProfile] + - [a, skos:Concept] + - [skos:inScheme, era-gaugings:GaugingProfiles~iri] - [skos:prefLabel, $(Value)] gauging-profile-eratv: @@ -74,22 +113,16 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.2.1')); - s: http://era.europa.eu/concepts/gaugings#$(ParameterURI) - po: - - p: a - o: era-gaugings:GaugingProfile - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] + s: era-gaugings:$(ParameterURI) + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-gaugings:GaugingProfiles~iri] + - [skos:prefLabel, $(ParameterValue)] other-gauging-profile-eratv: sources: @@ -99,35 +132,44 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.2.1')); - s: http://era.europa.eu/concepts/gaugings#$(OtherURI) - po: - - p: a - o: era-gaugings:GaugingProfile - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - - p: skos:prefLabel - o: $(OtherValue) - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - - axle-positions: + s: era-gaugings:$(OtherURI) + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-gaugings:GaugingProfiles~iri] + - [skos:prefLabel, $(OtherValue)] + + other-other-gauging-profile-eratv: sources: - access: *hostEratv type: *typeMSSQL credentials: *credentialsEratv queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT DISTINCT RegistrationParameters.Value AS ParameterValue, REPLACE(RegistrationParameters.Value, ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.5.3.4')); - s: http://era.europa.eu/concepts/axle-positions#$(ParameterURI) + query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.2.2')); + s: era-gaugings:$(ParameterURI) po: - - [a, era-ap:AxlePosition] + - [a, skos:Concept] + - [skos:inScheme, era-gaugings:GaugingProfiles~iri] - [skos:prefLabel, $(ParameterValue)] + + nominal-track-gauges: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LookupValues.[Value] FROM RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE Parameters.[Index] IN ('1.1.1.1.4.1') AND Parameters.ID = LookupValues.ParameterId; + s: era-ntg:$(Value) + po: + - [a, skos:Concept] + - [skos:inScheme, era-ntg:NominalTrackGauges~iri] + - [skos:prefLabel, $(Value)] train-detection-system: sources: @@ -137,37 +179,83 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT LookupValues.[Value] AS Label, REPLACE(LookupValues.[Value], ' ', '_') AS Value FROM RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE Parameters.[Index] IN ('1.1.1.3.7.1.1') AND Parameters.ID = LookupValues.ParameterId; - s: http://era.europa.eu/concepts/train-detection#$(Value) + s: era-tds:$(Value) + po: + - [a, skos:Concept] + - [skos:inScheme, era-tds:TrainDetectionSystems~iri] + - [skos:prefLabel, $(Label)] + + train-detection-system-specific-checks: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LookupValues.[Value] AS Label, REPLACE(LookupValues.[Value], ' ', '_') AS Value FROM RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE Parameters.[Index] IN ('1.1.1.3.7.1.2') AND Parameters.ID = LookupValues.ParameterId; + s: era-tdssc:$(Value) po: - - [a, era-tds:TrainDetectionSystem] + - [a, skos:Concept] + - [skos:inScheme, era-tdssc:TrainDetectionSystemsSpecificChecks~iri] - [skos:prefLabel, $(Label)] - axle-bearing-monitoring: + min-axle-loads-vehicle-category: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT TrackParameters.[Value] AS Label, REPLACE(TrackParameters.[Value], ' ', '_') AS Value FROM RINF.dbo.Parameters, RINF.dbo.TrackParameters WHERE Parameters.[Index] IN ('1.1.1.3.7.11.1') AND Parameters.ID = TrackParameters.ParameterID AND TrackParameters.[Value] IS NOT NULL; + s: era-malvc:$(Value) + po: + - [a, skos:Concept] + - [skos:inScheme, era-malvc:MinAxleLoadsPerVehicleCategory~iri] + - [skos:prefLabel, $(Label)] + + max-amount-sandings: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LookupValues.[Value] AS Label, REPLACE(LookupValues.[Value], ' ', '_') AS Value FROM RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE Parameters.[Index] IN ('1.1.1.3.7.17') AND Parameters.ID = LookupValues.ParameterId; + s: era-mas:$(Value) + po: + - [a, skos:Concept] + - [skos:inScheme, era-mas:MaxAmountSandings~iri] + - [skos:prefLabel, $(Label)] + + end-coupling-type: sources: - access: *hostEratv type: *typeMSSQL credentials: *credentialsEratv queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.9.2')); - s: http://era.europa.eu/concepts/axle-monitoring#$(ParameterURI) - po: - - p: a - o: era-am:AxleBearingMonitoring - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] + query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.9.1')); + s: era-ect:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-ect:EndCouplingType~iri] + - [skos:prefLabel, $(ParameterValue)] + + other-end-coupling-type: + sources: + - access: *hostEratv + type: *typeMSSQL + credentials: *credentialsEratv + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT LTRIM(RTRIM((RegistrationParameters.OtherValue))) AS OtherValue, REPLACE(LTRIM(RTRIM((RegistrationParameters.OtherValue))), ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.9.1')) AND RegistrationParameters.OtherValue IS NOT NULL; + s: era-ect:$(OtherURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-ect:EndCouplingType~iri] + - [skos:prefLabel, $(OtherValue)] - other-axle-bearing-monitoring: + axle-bearing-monitoring: sources: - access: *hostEratv type: *typeMSSQL @@ -175,29 +263,35 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.9.2')); - s: http://era.europa.eu/concepts/axle-monitoring#$(OtherURI) - po: - - [a, era-am:AxleBearingMonitoring] - - p: skos:prefLabel - o: $(OtherValue) - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] + s: era-am:$(ParameterURI) + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-am:AxleBearingMonitoring~iri] + - [skos:prefLabel, $(ParameterValue)] - max-speed-cant-deficiency: + other-axle-bearing-monitoring: sources: - access: *hostEratv type: *typeMSSQL credentials: *credentialsEratv queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT DISTINCT RegistrationParameters.Value AS ParameterValue, REPLACE(RegistrationParameters.Value, ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.6.4')); - s: http://era.europa.eu/concepts/max-speed-cant-deficiency#$(ParameterURI) + query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.9.2')); + s: era-am:$(OtherURI) + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] po: - - [a, era-mscd:MaxSpeedCantDeficiency] - - [skos:prefLabel, $(ParameterValue)] + - [a, skos:Concept] + - [skos:inScheme, era-am:AxleBearingMonitoring~iri] + - [skos:prefLabel, $(OtherValue)] rail-inclinations-eratv: sources: @@ -207,22 +301,16 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.6.5')); - s: http://era.europa.eu/concepts/rail-inclinations#$(ParameterURI) - po: - - p: a - o: era-ri:RailInclination - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] + s: era-ri:$(ParameterURI) + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-ri:RailInclinations~iri] + - [skos:prefLabel, $(ParameterValue)] rail-inclinations-rinf: sources: @@ -234,7 +322,8 @@ mappings: query: SELECT DISTINCT TrackParameters.Value AS ParameterValue FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.1.4.3') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; s: era-ri:1%2F$(ParameterValue) po: - - [a, era-ri:RailInclination] + - [a, skos:Concept] + - [skos:inScheme, era-ri:RailInclinations~iri] - [skos:prefLabel, "1/$(ParameterValue)"] other-rail-inclinations: @@ -245,16 +334,16 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.6.5')); - s: http://era.europa.eu/concepts/rail-inclinations#$(OtherURI) + s: era-ri:$(OtherURI) + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] po: - - [a, era-ri:RailInclination] - - p: skos:prefLabel - o: $(OtherValue) - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] + - [a, skos:Concept] + - [skos:inScheme, era-ri:RailInclinations~iri] + - [skos:prefLabel, $(OtherValue)] gauge-changeover-facilities-eratv: sources: @@ -264,22 +353,16 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.11')); - s: http://era.europa.eu/concepts/gauge-changeover-facilities#$(ParameterURI) - po: - - p: a - o: era-gcf:GaugeChangeoverFacility - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] + s: era-gcf:$(ParameterURI) + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-gcf:GaugeChangeoverFacilities~iri] + - [skos:prefLabel, $(ParameterValue)] other-gauge-changeover-facilities: sources: @@ -289,41 +372,29 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.1.11')); - s: http://era.europa.eu/concepts/gauge-changeover-facilities#$(OtherURI) - po: - - [a, era-gcf:GaugeChangeoverFacility] - - p: skos:prefLabel - o: $(OtherValue) - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - - emergency-braking-profiles: - sources: - - access: *hostEratv - type: *typeMSSQL - credentials: *credentialsEratv - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT DISTINCT RegistrationParameters.Value AS ParameterValue, REPLACE(RegistrationParameters.Value, ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.5')); - s: http://era.europa.eu/concepts/emergency-braking-profiles#$(ParameterURI) + s: era-gcf:$(OtherURI) + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] po: - - [a, era-ebp:EmergencyBrakingProfile] - - [skos:prefLabel, $(ParameterValue)] - - brake-weight-percentages: + - [a, skos:Concept] + - [skos:inScheme, era-gcf:GaugeChangeoverFacilities~iri] + - [skos:prefLabel, $(OtherValue)] + + brake-parking-type: # 4.7.3.2 sources: - access: *hostEratv type: *typeMSSQL credentials: *credentialsEratv queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT DISTINCT RegistrationParameters.Value AS ParameterValue, REPLACE(RegistrationParameters.Value, ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.6')); - s: http://era.europa.eu/concepts/brake-weight-percentages#$(ParameterURI) + query: SELECT DISTINCT CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue) ,(SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue, REPLACE(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue) , (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', '_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.3.2')); + s: era-bpt:$(ParameterURI) po: - - [a, era-bwp:BrakeWeightPercentage] + - [a, skos:Concept] + - [skos:inScheme, era-bpt:BrakeParkingType~iri] - [skos:prefLabel, $(ParameterValue)] thermal-capacity-tsi: @@ -334,9 +405,10 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)) AS ParameterValue, REPLACE(CONCAT(CONCAT(RegistrationParameters.Value, RegistrationParameters.OtherValue), (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', '_') AS UriName FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.7.2.1.1')); - s: http://era.europa.eu/concepts/thermal-capacity#$(UriName) + s: era-tc:$(UriName) po: - - [a, era-tc:ThermalCapacityTSIReference] + - [a, skos:Concept] + - [skos:inScheme, era-tc:ThermalCapacityTSIReferences~iri] - [skos:prefLabel, $(ParameterValue)] snow-ice-hail-conditions: @@ -347,23 +419,17 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.3.3')); - s: http://era.europa.eu/concepts/ice-conditions#$(ParameterURI) - po: - - p: a - o: era-ic:IceCondition - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - + s: era-ic:$(ParameterURI) + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-ic:IceConditions~iri] + - [skos:prefLabel, $(ParameterValue)] + other-snow-ice-hail-conditions: sources: - access: *hostEratv @@ -372,16 +438,17 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.3.3')); - s: http://era.europa.eu/concepts/ice-conditions#$(OtherURI) - po: - - [a, era-ic:IceCondition] - - p: skos:prefLabel - o: $(OtherValue) - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] + s: era-ic:$(OtherURI) + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-ic:IceConditions~iri] + - [skos:prefLabel, $(OtherValue)] + contact-line-systems: sources: @@ -391,9 +458,10 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS UriName FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.2.2.1.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/concepts/contact-line-systems#$(UriName) + s: era-cls:$(UriName) po: - - [a, era-cls:ContactLineSystem] + - [a, skos:Concept] + - [skos:inScheme, era-cls:ContactLineSystems~iri] - [skos:prefLabel, $(ParameterValue)] energy-supply-systems-eratv: @@ -404,22 +472,17 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.1')); - s: http://era.europa.eu/concepts/energy-supply-systems#$(ParameterURI) - po: - - p: a - o: era-ess:EnergySupplySystem - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] + s: era-ess:$(ParameterURI) + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-ess:EnergySupplySystems~iri] + - [skos:prefLabel, $(ParameterValue)] + energy-supply-systems-rinf: sources: @@ -429,22 +492,17 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID) AS ParameterValue, REPLACE((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), ' ', '_') AS ParameterURI FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.2.2.1.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/concepts/energy-supply-systems#$(ParameterURI) - po: - - p: a - o: era-ess:EnergySupplySystem - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "other"] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "other"] + s: era-ess:$(ParameterURI) + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "other"] + po: + - [a, skos:Concept] + - [skos:inScheme, era-ess:EnergySupplySystems~iri] + - [skos:prefLabel, $(ParameterValue)] + other-energy-supply-systems-eratv: sources: @@ -454,16 +512,17 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.1')); - s: http://era.europa.eu/concepts/energy-supply-systems#$(OtherURI) - po: - - [a, era-ess:EnergySupplySystem] - - p: skos:prefLabel - o: $(OtherValue) - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] + s: era-ess:$(OtherURI) + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-ess:EnergySupplySystems~iri] + - [skos:prefLabel, $(OtherValue)] + tsi-pantograph-heads: sources: @@ -475,7 +534,8 @@ mappings: query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS UriName FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.2.3.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; s: era-pth:$(UriName) po: - - [a, era-pth:PantographHead] + - [a, skos:Concept] + - [skos:inScheme, era-pth:PantographHeads~iri] - [skos:prefLabel, $(ParameterValue)] - [era:tsiCompliant, "true", xsd:boolean] @@ -489,7 +549,8 @@ mappings: query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS UriName FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.2.3.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; s: era-pth:$(UriName) po: - - [a, era-pth:PantographHead] + - [a, skos:Concept] + - [skos:inScheme, era-pth:PantographHeads~iri] - [skos:prefLabel, $(ParameterValue)] - [era:tsiCompliant, "false", xsd:boolean] @@ -501,23 +562,17 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE(LOWER((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.10')); - s: http://era.europa.eu/concepts/contact-strip-materials#$(ParameterURI) - po: - - p: a - o: era-csm:ContactStripMaterial - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - + s: era-csm:$(ParameterURI) + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-csm:ContactStripMaterials~iri] + - [skos:prefLabel, $(ParameterValue)] + contact-strip-materials-rinf: sources: - access: *hostRinf @@ -526,22 +581,11 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID) AS ParameterValue, REPLACE((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), ' ', '_') AS ParameterURI FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.2.3.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/concepts/contact-strip-materials#$(ParameterURI) - po: - - p: a - o: era-csm:ContactStripMaterial - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "other"] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "other"] + s: era-csm:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-csm:ContactStripMaterials~iri] + - [skos:prefLabel, $(ParameterValue)] other-contact-strip-materials-eratv: sources: @@ -551,17 +595,17 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.10.10')); - s: http://era.europa.eu/concepts/contact-strip-materials#$(OtherURI) - po: - - [a, era-csm:ContactStripMaterial] - - p: skos:prefLabel - o: $(OtherValue) - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - + s: era-csm:$(OtherURI) + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-csm:ContactStripMaterials~iri] + - [skos:prefLabel, $(OtherValue)] + platform-heights-eratv: sources: - access: *hostEratv @@ -569,23 +613,17 @@ mappings: credentials: *credentialsEratv queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT DISTINCT SUBSTRING(TRIM((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 1, 3) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.3.1')); - s: http://era.europa.eu/concepts/platform-heights#$(ParameterValue) + query: SELECT DISTINCT SUBSTRING(LTRIM(RTRIM((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId))), 1, 3) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.3.1')); + s: era-ph:$(ParameterValue) + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] po: - - p: a - o: era-ph:PlatformHeight - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] + - [a, skos:Concept] + - [skos:inScheme, era-ph:PlatformHeights~iri] + - [skos:prefLabel, $(ParameterValue)] platform-heights-rinf: sources: @@ -595,22 +633,16 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT LookupValues.[Value] AS ParameterValue FROM RINF.dbo.Parameters, RINF.dbo.PlatformParameters, RINF.dbo.LookupValues WHERE PlatformParameters.ParameterID = Parameters.ID AND PlatformParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.2.1.0.6.5'); - s: http://era.europa.eu/concepts/platform-heights#$(ParameterValue) - po: - - p: a - o: era-ph:PlatformHeight - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "other"] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "other"] + s: era-ph:$(ParameterValue) + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "other"] + po: + - [a, skos:Concept] + - [skos:inScheme, era-ph:PlatformHeights~iri] + - [skos:prefLabel, $(ParameterValue)] other-platform-heights-eratv: sources: @@ -619,19 +651,61 @@ mappings: credentials: *credentialsEratv queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT DISTINCT SUBSTRING(TRIM((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId)), 1, 3) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.3.1')); - s: http://era.europa.eu/concepts/platform-heights#$(OtherURI) + query: SELECT DISTINCT SUBSTRING(LTRIM(RTRIM((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId))), 1, 3) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.12.3.1')); + s: era-ph:$(OtherURI) + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] po: - - [a, era-ph:PlatformHeight] - - p: skos:prefLabel - o: $(OtherValue) - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - - gsm-r-networks: + - [a, skos:Concept] + - [skos:inScheme, era-ph:PlatformHeights~iri] + - [skos:prefLabel, $(OtherValue)] + + gsm-r-equipment-version-rinf: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS ParameterURI FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.3.3.5') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: era-gsmrev:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-gsmrev:GSMREquipmentVersion~iri] + - [skos:prefLabel, $(ParameterValue)] + + gsm-r-equipment-version-eratv: + sources: + - access: *hostEratv + type: *typeMSSQL + credentials: *credentialsEratv + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.1')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: era-gsmrev:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-gsmrev:GSMREquipmentVersion~iri] + - [skos:prefLabel, $(ParameterValue)] + + gsm-r-radio-data-communication: + sources: + - access: *hostEratv + type: *typeMSSQL + credentials: *credentialsEratv + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, replace((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ','_') AS ParameterURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.7')); + s: era-gsmrrdc:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-gsmrrdc:GSMRRadioDataCommunications~iri] + - [skos:prefLabel, $(ParameterValue)] + + gsm-r-networks-rinf: sources: - access: *hostRinf type: *typeMSSQL @@ -639,9 +713,66 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS ParameterURI FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.3.3.5') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/concepts/gsmr-networks#$(ParameterURI) + s: era-gsmr:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-gsmr:GSMRNetworks~iri] + - [skos:prefLabel, $(ParameterValue)] + + gsm-r-networks-eratv: + sources: + - access: *hostEratv + type: *typeMSSQL + credentials: *credentialsEratv + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.10', '4.13.2.11')) AND VehicleTypes.TypeVersionNumber IS NOT NULL AND VehicleTypes.TypeVersionNumber != ''; + s: era-gsmr:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-gsmr:GSMRNetworks~iri] + - [skos:prefLabel, $(ParameterValue)] + + gsm-r-versions: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS ParameterURI FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.3.3.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: era-gsmrv:$(ParameterURI) po: - - [a, era-gsmr:GSMRNetwork] + - [a, skos:Concept] + - [skos:inScheme, era-gsmrv:GSMRVersions~iri] + - [skos:prefLabel, $(ParameterValue)] + + gsm-r-number-active-mobiles: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS ParameterURI FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.3.3.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: era-gsmrnumactivemob:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-gsmrnumactivemob:NumberActiveMobiles~iri] + - [skos:prefLabel, $(ParameterValue)] + + gsm-r-optional-functions: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS ParameterURI FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.3.3.3') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: era-gsmroptfunc:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-gsmroptfunc:OptionalFunctions~iri] - [skos:prefLabel, $(ParameterValue)] train-protection-legacy-systems-rinf: @@ -652,11 +783,209 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS ParameterURI FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.3.5.3') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/concepts/train-protection-legacy-systems#$(ParameterURI) + s: era-tpls:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-tpls:TrainProtectionLegacySystems~iri] + - [skos:prefLabel, $(ParameterValue)] + + ten-classification-of-platform: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: select result.item as ParameterValue, replace(item, ' ', '_') as ParameterURI from (SELECT distinct RINF.dbo.LookupValues.Value as item FROM RINF.dbo.Parameters, RINF.dbo.PlatformParameters, RINF.dbo.LookupValues WHERE PlatformParameters.ParameterID = Parameters.ID and PlatformParameters.LookupValueID = LookupValues.ID and Parameters.[Index] IN ('1.2.1.0.6.3')) as result; + s: era-tenclass:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-tenclass:TENClassifications~iri] + - [skos:prefLabel, $(ParameterValue)] + + line-category: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS ParameterURI FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.1.2.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: era-linecat:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-linecat:LineCategories~iri] + - [skos:prefLabel, $(ParameterValue)] + + freight-corridor: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LookupValues.[Value] as ParameterValue, REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') as ParameterURI FROM RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE Parameters.[Index] IN ('1.1.1.1.2.3') AND Parameters.ID = LookupValues.ParameterId; + s: era-fc:$(ParameterURI) po: - - [a, era-tpls:TrainProtectionLegacySystem] + - [a, skos:Concept] + - [skos:inScheme, era-fc:FreightCorridors~iri] - [skos:prefLabel, $(ParameterValue)] + + profile-number-swap-bodies: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: select distinct LTRIM(RTRIM([Value])) as ParameterValue, replace(LTRIM(RTRIM([Value])), ' ', '_') as ParameterURI from rinf.dbo.parameters, rinf.dbo.LookupValues where LookupValues.ParameterId = Parameters.ID and Parameters.[Index] = '1.1.1.1.3.4' + s: era-pnsb:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-pnsb:ProfileNumbersSwapBodies~iri] + - [skos:prefLabel, $(ParameterValue)] + + profile-number-semi-trailers: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: select distinct LTRIM(RTRIM([Value])) as ParameterValue, replace(LTRIM(RTRIM([Value])), ' ', '_') as ParameterURI from rinf.dbo.parameters, rinf.dbo.LookupValues where LookupValues.ParameterId = Parameters.ID and Parameters.[Index] = '1.1.1.1.3.5' + s: era-pnst:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-pnst:ProfileNumbersSemiTrailers~iri] + - [skos:prefLabel, $(ParameterValue)] + etcs-equipment-on-board-level: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') as ParameterURI, (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.1')); + s: era-eeobl:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-eeobl:ETCSEquipmentLevels~iri] + - [skos:prefLabel, $(ParameterValue)] + + etcs-level: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: select distinct REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterURI, LTRIM(RTRIM(LookupValues.[Value])) AS ParameterValue from rinf.dbo.LookupValues, rinf.dbo.Parameters where LookupValues.ParameterId = Parameters.ID and Parameters.[Index] = '1.1.1.3.2.1' + s: era-etcslevel:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-etcslevel:ETCSLevels~iri] + - [skos:prefLabel, $(ParameterValue)] + + etcs-baseline-rinf: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: select distinct REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterURI, LTRIM(RTRIM(LookupValues.[Value])) AS ParameterValue from rinf.dbo.LookupValues, rinf.dbo.Parameters where LookupValues.ParameterId = Parameters.ID and Parameters.[Index] = '1.1.1.3.2.2' + s: era-etcsbaseline:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-etcsbaseline:ETCSBaselines~iri] + - [skos:prefLabel, $(ParameterValue)] + + etcs-baseline-eratv: + sources: + - access: *hostEratv + type: *typeMSSQL + credentials: *credentialsEratv + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.2')); + s: era-etcsbaseline:$(ParameterValue) + po: + - [a, skos:Concept] + - [skos:inScheme, era-etcsbaseline:ETCSBaselines~iri] + - [skos:prefLabel, $(ParameterValue)] + + etcs-infill-rinf: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: select distinct REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterURI, LTRIM(RTRIM(LookupValues.[Value])) AS ParameterValue from rinf.dbo.LookupValues, rinf.dbo.Parameters where LookupValues.ParameterId = Parameters.ID and Parameters.[Index] = '1.1.1.3.2.4' + s: era-etcsinfill:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-etcsinfill:ETCSInfills~iri] + - [skos:prefLabel, $(ParameterValue)] + + etcs-infill-eratv: + sources: + - access: *hostEratv + type: *typeMSSQL + credentials: *credentialsEratv + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.3')); + s: era-etcsinfill:$(ParameterValue) + po: + - [a, skos:Concept] + - [skos:inScheme, era-etcsinfill:ETCSInfills~iri] + - [skos:prefLabel, $(ParameterValue)] + + etcs-m-version: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: select distinct REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterURI, LTRIM(RTRIM(LookupValues.[Value])) AS ParameterValue from rinf.dbo.LookupValues, rinf.dbo.Parameters where LookupValues.ParameterId = Parameters.ID and Parameters.[Index] = '1.1.1.3.2.10' + s: era-etcsmvers:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-etcsmvers:ETCSMVersions~iri] + - [skos:prefLabel, $(ParameterValue)] + + etcs-situations: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS ParameterURI FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.3.10.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: era-etcssituation:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-etcssituation:ETCSSituations~iri] + - [skos:prefLabel, $(ParameterValue)] + + other-protection-control-warning: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS ParameterURI FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.3.10.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: era-opcw:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-opcw:OtherProtectionControlWarnings~iri] + - [skos:prefLabel, $(ParameterValue)] + + train-protection-legacy-systems-eratv: sources: - access: *hostEratv @@ -665,22 +994,17 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.5')); - s: http://era.europa.eu/concepts/train-protection-legacy-systems#$(ParameterURI) - po: - - p: a - o: era-tpls:TrainProtectionLegacySystem - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] + s: era-tpls:$(ParameterURI) + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-tpls:TrainProtectionLegacySystems~iri] + - [skos:prefLabel, $(ParameterValue)] + other-train-protection-legacy-systems: sources: @@ -690,16 +1014,16 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.5')); - s: http://era.europa.eu/concepts/train-protection-legacy-systems#$(OtherURI) - po: - - [a, era-tpls:TrainProtectionLegacySystem] - - p: skos:prefLabel - o: $(OtherValue) - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] + s: era-tpls:$(OtherURI) + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-tpls:TrainProtectionLegacySystems~iri] + - [skos:prefLabel, $(OtherValue)] legacy-radio-systems-rinf: sources: @@ -709,36 +1033,11 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS ParameterURI FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.3.6.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/concepts/legacy-radio-systems#$(ParameterURI) - po: - - p: a - o: era-lrs:LegacyRadioSystem - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterURI)] - - [grel:valueParameter2, "Analogue_Radio_Germany_-_UIC_751"] - - p: a - o: era-lrs:LegacyRadioSystem - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterURI)] - - [grel:valueParameter2, "RETB_(voice)"] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterURI)] - - [grel:valueParameter2, "Analogue_Radio_Germany_-_UIC_751"] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterURI)] - - [grel:valueParameter2, "RETB_(voice)"] + s: era-lrs:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-lrs:LegacyRadioSystems~iri] + - [skos:prefLabel, $(ParameterValue)] legacy-radio-systems-eratv: sources: @@ -748,22 +1047,16 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.3')); - s: http://era.europa.eu/concepts/legacy-radio-systems#$(ParameterURI) - po: - - p: a - o: era-lrs:LegacyRadioSystem - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] - - p: skos:prefLabel - o: $(ParameterValue) - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] + s: era-lrs:$(ParameterURI) + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-lrs:LegacyRadioSystems~iri] + - [skos:prefLabel, $(ParameterValue)] other-legacy-radio-systems: sources: @@ -773,13 +1066,69 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.5')); - s: http://era.europa.eu/concepts/legacy-radio-systems#$(OtherURI) - po: - - [a, era-lrs:LegacyRadioSystem] - - p: skos:prefLabel - o: $(OtherValue) - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(OtherValue)] - - [grel:valueParameter2, ""] \ No newline at end of file + s: era-lrs:$(OtherURI) + condition: + function: idlab-fn:notEqual + parameters: + - [grel:valueParameter, $(OtherValue)] + - [grel:valueParameter2, ""] + po: + - [a, skos:Concept] + - [skos:inScheme, era-lrs:LegacyRadioSystems~iri] + - [skos:prefLabel, $(OtherValue)] + + etcs-system-compatibility-eratv: + sources: + - access: *hostEratv + type: *typeMSSQL + credentials: *credentialsEratv + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.1.8')); + s: era-esc:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-esc:ETCSSystemCompatibilities~iri] + - [skos:prefLabel, $(ParameterValue)] + + etcs-system-compatibility-rinf: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS ParameterURI FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.3.2.9') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: era-esc:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-esc:ETCSSystemCompatibilities~iri] + - [skos:prefLabel, $(ParameterValue)] + + radio-system-compatibility-eratv: + sources: + - access: *hostEratv + type: *typeMSSQL + credentials: *credentialsEratv + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT (SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId) AS ParameterValue, RegistrationParameters.OtherValue, REPLACE((SELECT "Name" FROM ERATV.dbo.ReferenceListValues WHERE ReferenceListValues.ID=RegistrationParameters.ReferenceListValueId), ' ', '_') AS ParameterURI, REPLACE(RegistrationParameters.OtherValue, ' ', '_') AS OtherURI FROM ERATV.dbo.VehicleTypes, ERATV.dbo.RegistrationParameters, ERATV.dbo.Parameters WHERE VehicleTypes.ID = RegistrationParameters.VehicleTypesId AND RegistrationParameters.ParametersId = Parameters.ID AND (Parameters.Code IN ('4.13.2.5', '4.13.2.8')); + s: era-rsc:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-rsc:RadioSystemCompatibilities~iri] + - [skos:prefLabel, $(ParameterValue)] + + radio-system-compatibility-rinf: + sources: + - access: *hostRinf + type: *typeMSSQL + credentials: *credentialsRinf + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, '') AS ParameterValue, REPLACE(CONCAT((SELECT LookupValues.[Value] FROM RINF.dbo.LookupValues WHERE LookupValues.ID = TrackParameters.LookupValueID), TrackParameters.Value, ''), ' ', '_') AS ParameterURI FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines WHERE SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND (TrackParameters.[Value] IS NOT NULL OR TrackParameters.LookupValueID IS NOT NULL) AND "Index" IN ('1.1.1.3.3.9', '1.1.1.3.3.10') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: era-rsc:$(ParameterURI) + po: + - [a, skos:Concept] + - [skos:inScheme, era-rsc:RadioSystemCompatibilities~iri] + - [skos:prefLabel, $(ParameterValue)] \ No newline at end of file diff --git a/mappings/RINF-contact-line-systems.yml b/mappings/RINF-contact-line-systems.yml new file mode 100644 index 0000000..ae29ed5 --- /dev/null +++ b/mappings/RINF-contact-line-systems.yml @@ -0,0 +1,184 @@ +prefixes: + idlab-fn: "http://example.com/idlab/function/" + grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" + rdfs: "http://www.w3.org/2000/01/rdf-schema#" + era: "http://data.europa.eu/949/" + xsd: "http://www.w3.org/2001/XMLSchema#" + era-cls: "http://data.europa.eu/949/concepts/contact-line-systems/" + era-ess: "http://data.europa.eu/949/concepts/energy-supply-systems/" + +variables: + connection: + access: &host ${RINF_HOST} + type: &typeMSSQL mssql + credentials: &credentials + username: ${RINF_USER} + password: ${RINF_PWD} + queryFormulation: &queryFormulation sql2008 + referenceFormulation: &referenceFormulation csv + +mappings: + contact-line-systems: # 1.1.1.2.2.1.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.LookupValueID = LookupValues.ID AND TrackParameters.ParameterId = Parameters.ID AND Parameters.[Index] IN ('1.1.1.2.2.1.1') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/contactLineSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [a, era:ContactLineSystem] + - [era:contactLineSystemType, era-cls:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + energy-supply-system: # 1.1.1.2.2.1.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.LookupValueID = LookupValues.ID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.[Set] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.2.1.2') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/contactLineSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:energySupplySystem, era-ess:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + energy-supply-system-tsi-compliant: # 1.1.1.2.2.1.2.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.LookupValueID = LookupValues.ID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.[Set] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.2.1.2.1') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/contactLineSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - p: era:energySupplySystemTSICompliant + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:energySupplySystemTSICompliant + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + umax2: # 1.1.1.2.2.1.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND TrackParameters.[Set] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.2.1.3') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/contactLineSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:umax2, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + maximum-train-current: # 1.1.1.2.2.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND TrackParameters.[Set] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.2.2') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/contactLineSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:maxTrainCurrent, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + maximum-current-standstill: # 1.1.1.2.2.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND TrackParameters.[Set] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.2.3') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/contactLineSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:maxCurrentStandstillPantograph, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + regenerative-braking: # 1.1.1.2.2.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.2.4') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/contactLineSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - p: era:hasRegenerativeBrake + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasRegenerativeBrake + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + - p: era:conditionalRegenerativeBrake + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "allowed under conditions"] + graph: ${NAMED_GRAPH} + + current-limitation: # 1.1.1.2.5.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.5.1') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/contactLineSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - p: era:currentLimitationRequired + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:currentLimitationRequired + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} \ No newline at end of file diff --git a/mappings/RINF-etcs-levels.yml b/mappings/RINF-etcs-levels.yml new file mode 100644 index 0000000..2959846 --- /dev/null +++ b/mappings/RINF-etcs-levels.yml @@ -0,0 +1,46 @@ +prefixes: + idlab-fn: "http://example.com/idlab/function/" + grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" + rdfs: "http://www.w3.org/2000/01/rdf-schema#" + era: "http://data.europa.eu/949/" + xsd: "http://www.w3.org/2001/XMLSchema#" + era-etcslevel: "http://data.europa.eu/949/concepts/etcs-levels/" + era-etcsbaseline: "http://data.europa.eu/949/concepts/etcs-baselines/" + +variables: + connection: + access: &host ${RINF_HOST} + type: &typeMSSQL mssql + credentials: &credentials + username: ${RINF_USER} + password: ${RINF_PWD} + queryFormulation: &queryFormulation sql2008 + referenceFormulation: &referenceFormulation csv + +mappings: + etcs-level: # 1.1.1.3.2.1 points to SET parameter-based entity + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.2.1') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/etcsLevels/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [a, era:ETCSLevel] + - [era:etcsLevelType, era-etcslevel:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + etcs-baseline: # 1.1.1.3.2.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(TRIM(LookupValues.[Value]), ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.Tracks, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.2.2') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/etcsLevels/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:etcsBaseline, era-etcsbaseline:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} \ No newline at end of file diff --git a/mappings/RINF-line-national-ids.yml b/mappings/RINF-line-national-ids.yml deleted file mode 100644 index 8db6525..0000000 --- a/mappings/RINF-line-national-ids.yml +++ /dev/null @@ -1,44 +0,0 @@ -prefixes: - idlab-fn: "http://example.com/idlab/function/" - grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" - eu-country: "http://publications.europa.eu/resource/authority/country/" - rdfs: "http://www.w3.org/2000/01/rdf-schema#" - era: "http://era.europa.eu/ns#" - xsd: "http://www.w3.org/2001/XMLSchema#" -variables: - connection: - access: &host ${RINF_HOST} - type: &typeMSSQL mssql - credentials: &credentials - username: ${RINF_USER} - password: ${RINF_PWD} - queryFormulation: &queryFormulation sql2008 - referenceFormulation: &referenceFormulation csv - -mappings: - line-national-ids: - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT DISTINCT UICLines.UICCode, MemberStates.Code FROM RINF.dbo.UICLines, RINF.dbo.MemberStates, RINF.dbo.MemberStateVersions WHERE UICLines.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; - s: http://era.europa.eu/functionalInfrastructure/lineNationalIds#$(UICCode) - po: - - [a, era:LineNationalId] - - [rdfs:label, $(UICCode)] - - p: era:inCountry - o: - - mapping: eu-country - condition: - function: equal - parameters: - - [str1, $(Code)] - - [str2, $(code)] - graphs: ${NAMED_GRAPH} - - eu-country: - sources: - - ["data/countries.csv~csv"] - s: $(eu) \ No newline at end of file diff --git a/mappings/RINF-link-meso-micro.yml b/mappings/RINF-link-meso-micro.yml index 9be8e26..7776849 100644 --- a/mappings/RINF-link-meso-micro.yml +++ b/mappings/RINF-link-meso-micro.yml @@ -4,7 +4,7 @@ prefixes: grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" rdfs: "http://www.w3.org/2000/01/rdf-schema#" eu-country: "http://publications.europa.eu/resource/authority/country/" - era: "http://era.europa.eu/ns#" + era: "http://data.europa.eu/949/" variables: connection: @@ -27,11 +27,11 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT Tracks.UUID, (SectionOfLines.Length * 1000) AS Length, UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.Tracks, RINF.dbo.UICLines, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.IsFuturePlanning = 0 AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND Tracks.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; - s: http://era.europa.eu/topology/netElements#$(UICCode)_$(FROM_NODE)_$(TO_NODE) + query: SELECT Tracks.UUID, (SectionOfLines.Length * 1000) AS Length, UICLines.UICCode, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.Tracks, RINF.dbo.UICLines, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.IsFuturePlanning = 0 AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND Tracks.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; + s: http://data.europa.eu/949/topology/netElements/$(UICCode)_$(FROM_NODE)_$(TO_NODE) po: - - [era:elementPart, http://era.europa.eu/topology/netElements#$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)~iri] - graphs: ${NAMED_GRAPH} + - [era:elementPart, http://data.europa.eu/949/topology/netElements/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)~iri] + graph: ${NAMED_GRAPH} aggregation-internal-node-link-in-out: sources: @@ -40,11 +40,11 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.VersionID AS INVersion, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, TRIM(OP2.UOPID) AS UOPID, Tracks1.VersionID AS OUTVersion, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SOLTracks2.VersionID = SectionOfLines2.VersionID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SOLTracks1.VersionID = SectionOfLines1.VersionID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineEdges1.ID != LineEdges2.ID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); - s: http://era.europa.eu/topology/netElements#$(UOPID) + query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.VersionID AS INVersion, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, LTRIM(RTRIM(OP2.UOPID)) AS UOPID, Tracks1.VersionID AS OUTVersion, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SOLTracks2.VersionID = SectionOfLines2.VersionID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SOLTracks1.VersionID = SectionOfLines1.VersionID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineEdges1.ID != LineEdges2.ID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); + s: http://data.europa.eu/949/topology/netElements/$(UOPID) po: - - [era:elementPart, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] - graphs: ${NAMED_GRAPH} + - [era:elementPart, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] + graph: ${NAMED_GRAPH} aggregation-internal-node-link-no-out: sources: @@ -53,11 +53,11 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, TRIM(OP2.UOPID) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeEndID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); - s: http://era.europa.eu/topology/netElements#$(UOPID) + query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, LTRIM(RTRIM(OP2.UOPID)) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeEndID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); + s: http://data.europa.eu/949/topology/netElements/$(UOPID) po: - - [era:elementPart, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] - graphs: ${NAMED_GRAPH} + - [era:elementPart, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] + graph: ${NAMED_GRAPH} aggregation-internal-node-link-no-in: sources: @@ -66,21 +66,21 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, TRIM(OP2.UOPID) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeStartID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); - s: http://era.europa.eu/topology/netElements#$(UOPID) + query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, LTRIM(RTRIM(OP2.UOPID)) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeStartID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); + s: http://data.europa.eu/949/topology/netElements/$(UOPID) po: - - [era:elementPart, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] - graphs: ${NAMED_GRAPH} + - [era:elementPart, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] + graph: ${NAMED_GRAPH} aggregation-internal-node-link-connectivity-table: sources: - ["data/op_internal_connectivity.csv~csv"] - s: http://era.europa.eu/topology/netElements#$(UOPID) + s: http://data.europa.eu/949/topology/netElements/$(UOPID) condition: function: idlab-fn:equal parameters: - [grel:valueParameter, $(Connected)] - [grel:valueParameter2, "YES"] po: - - [era:elementPart, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] - graphs: ${NAMED_GRAPH} + - [era:elementPart, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] + graph: ${NAMED_GRAPH} diff --git a/mappings/RINF-meso-net-elements.yml b/mappings/RINF-meso-net-elements.yml index 8f5bb4a..da2d517 100644 --- a/mappings/RINF-meso-net-elements.yml +++ b/mappings/RINF-meso-net-elements.yml @@ -4,7 +4,7 @@ prefixes: grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" rdfs: "http://www.w3.org/2000/01/rdf-schema#" eu-country: "http://publications.europa.eu/resource/authority/country/" - era: "http://era.europa.eu/ns#" + era: "http://data.europa.eu/949/" variables: connection: @@ -27,13 +27,13 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT TRIM(UOPID) AS UOPID, TRIM(OperationalPoints.Name) AS OPName FROM RINF.dbo.OperationalPoints, RINF.dbo.MemberStates, RINF.dbo.MemberStateVersions WHERE OperationalPoints.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; - s: http://era.europa.eu/topology/netElements#$(UOPID) + query: SELECT LTRIM(RTRIM(UOPID)) AS UOPID, LTRIM(RTRIM(OperationalPoints.Name)) AS OPName FROM RINF.dbo.OperationalPoints, RINF.dbo.MemberStates, RINF.dbo.MemberStateVersions WHERE OperationalPoints.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; + s: http://data.europa.eu/949/topology/netElements/$(UOPID) po: - [a, era:NetElement] - [rdfs:label, $(OPName)] - - [era:hasImplementation, http://era.europa.eu/funtionalInfrastructure/operationalPoints#$(UOPID)~iri] - graphs: ${NAMED_GRAPH} + - [era:hasImplementation, http://data.europa.eu/949/functionalInfrastructure/operationalPoints/$(UOPID)~iri] + graph: ${NAMED_GRAPH} # ----------------------Define Meso NetElements from Sections of Line--------------------- @@ -44,10 +44,10 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE FROM RINF.dbo.LineEdges, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SectionOfLines.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; - s: http://era.europa.eu/topology/netElements#$(UICCode)_$(FROM_NODE)_$(TO_NODE) + query: SELECT UICLines.UICCode, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE FROM RINF.dbo.LineEdges, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SectionOfLines.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; + s: http://data.europa.eu/949/topology/netElements/$(UICCode)_$(FROM_NODE)_$(TO_NODE) po: - [a, era:NetElement] - [rdfs:label, $(UICCode)_$(FROM_NODE)_$(TO_NODE)] - - [era:hasImplementation, http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE)~iri] - graphs: ${NAMED_GRAPH} \ No newline at end of file + - [era:hasImplementation, http://data.europa.eu/949/functionalInfrastructure/sectionsOfLine/$(UICCode)_$(FROM_NODE)_$(TO_NODE)~iri] + graph: ${NAMED_GRAPH} \ No newline at end of file diff --git a/mappings/RINF-meso-net-relations.yml b/mappings/RINF-meso-net-relations.yml index ceac3e8..5eb538d 100644 --- a/mappings/RINF-meso-net-relations.yml +++ b/mappings/RINF-meso-net-relations.yml @@ -4,7 +4,7 @@ prefixes: grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" rdfs: "http://www.w3.org/2000/01/rdf-schema#" eu-country: "http://publications.europa.eu/resource/authority/country/" - era: "http://era.europa.eu/ns#" + era: "http://data.europa.eu/949/" variables: connection: @@ -27,13 +27,13 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT Tracks.UUID, (SectionOfLines.Length * 1000) AS Length, UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.Tracks, RINF.dbo.UICLines, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.IsFuturePlanning = 0 AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND Tracks.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; - s: http://era.europa.eu/topology/netRelations#$(FROM_NODE)_$(UICCode)_$(FROM_NODE)_$(TO_NODE) + query: SELECT Tracks.UUID, (SectionOfLines.Length * 1000) AS Length, UICLines.UICCode, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.Tracks, RINF.dbo.UICLines, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.IsFuturePlanning = 0 AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND Tracks.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; + s: http://data.europa.eu/949/topology/netRelations/$(FROM_NODE)_$(UICCode)_$(FROM_NODE)_$(TO_NODE) po: - [a, era:NetRelation] - - [era:elementA, http://era.europa.eu/topology/netElements#$(FROM_NODE)~iri] - - [era:elementB, http://era.europa.eu/topology/netElements#$(UICCode)_$(FROM_NODE)_$(TO_NODE)~iri] - graphs: ${NAMED_GRAPH} + - [era:elementA, http://data.europa.eu/949/topology/netElements/$(FROM_NODE)~iri] + - [era:elementB, http://data.europa.eu/949/topology/netElements/$(UICCode)_$(FROM_NODE)_$(TO_NODE)~iri] + graph: ${NAMED_GRAPH} sol-end: sources: @@ -42,10 +42,10 @@ sol-end: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT Tracks.UUID, (SectionOfLines.Length * 1000) AS Length, UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.Tracks, RINF.dbo.UICLines, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.IsFuturePlanning = 0 AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND Tracks.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; - s: http://era.europa.eu/topology/netRelations#$(UICCode)_$(FROM_NODE)_$(TO_NODE)_$(TO_NODE) + query: SELECT Tracks.UUID, (SectionOfLines.Length * 1000) AS Length, UICLines.UICCode, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.Tracks, RINF.dbo.UICLines, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.IsFuturePlanning = 0 AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND Tracks.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; + s: http://data.europa.eu/949/topology/netRelations/$(UICCode)_$(FROM_NODE)_$(TO_NODE)_$(TO_NODE) po: - [a, era:NetRelation] - - [era:elementA, http://era.europa.eu/topology/netElements#$(UICCode)_$(FROM_NODE)_$(TO_NODE)~iri] - - [era:elementB, http://era.europa.eu/topology/netElements#$(TO_NODE)~iri] - graphs: ${NAMED_GRAPH} + - [era:elementA, http://data.europa.eu/949/topology/netElements/$(UICCode)_$(FROM_NODE)_$(TO_NODE)~iri] + - [era:elementB, http://data.europa.eu/949/topology/netElements/$(TO_NODE)~iri] + graph: ${NAMED_GRAPH} diff --git a/mappings/RINF-micro-net-elements.yml b/mappings/RINF-micro-net-elements.yml index 8126834..ddef7dc 100644 --- a/mappings/RINF-micro-net-elements.yml +++ b/mappings/RINF-micro-net-elements.yml @@ -4,7 +4,7 @@ prefixes: grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" rdfs: "http://www.w3.org/2000/01/rdf-schema#" eu-country: "http://publications.europa.eu/resource/authority/country/" - era: "http://era.europa.eu/ns#" + era: "http://data.europa.eu/949/" variables: connection: @@ -26,13 +26,13 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT Tracks.UUID, (SectionOfLines.Length * 1000) AS Length, UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.Tracks, RINF.dbo.UICLines, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.IsFuturePlanning = 0 AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND Tracks.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; - s: http://era.europa.eu/topology/netElements#$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + query: SELECT Tracks.UUID, (SectionOfLines.Length * 1000) AS Length, UICLines.UICCode, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.Tracks, RINF.dbo.UICLines, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.IsFuturePlanning = 0 AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND Tracks.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; + s: http://data.europa.eu/949/topology/netElements/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) po: - [a, era:NetElement] - [rdfs:label, $(UUID)] - [era:length, $(Length), xsd:double] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} # ----------------------Define Micro NetElements from artificial internal links in operational points--------------------- @@ -45,12 +45,12 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.VersionID AS INVersion, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, TRIM(OP2.UOPID) AS UOPID, Tracks1.VersionID AS OUTVersion, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SOLTracks2.VersionID = SectionOfLines2.VersionID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SOLTracks1.VersionID = SectionOfLines1.VersionID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineEdges1.ID != LineEdges2.ID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); - s: http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) + query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.VersionID AS INVersion, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, LTRIM(RTRIM(OP2.UOPID)) AS UOPID, Tracks1.VersionID AS OUTVersion, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SOLTracks2.VersionID = SectionOfLines2.VersionID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SOLTracks1.VersionID = SectionOfLines1.VersionID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineEdges1.ID != LineEdges2.ID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); + s: http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) po: - [a, era:NetElement] - [rdfs:label, "$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)"] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} internal-node-link-no-out: sources: @@ -59,12 +59,12 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, TRIM(OP2.UOPID) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeEndID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); - s: http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) + query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, LTRIM(RTRIM(OP2.UOPID)) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeEndID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); + s: http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) po: - [a, era:NetElement] - [rdfs:label, "$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)"] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} internal-node-link-no-in: sources: @@ -73,12 +73,12 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, TRIM(OP2.UOPID) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeStartID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); - s: http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) + query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, LTRIM(RTRIM(OP2.UOPID)) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeStartID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); + s: http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) po: - [a, era:NetElement] - [rdfs:label, "$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)"] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} # ----------------------Define Micro NetElements from real internal links in operational points--------------------- @@ -87,7 +87,7 @@ mappings: internal-node-link-connectivity-table: sources: - ["data/op_internal_connectivity.csv~csv"] - s: http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) + s: http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) condition: function: idlab-fn:equal parameters: @@ -96,4 +96,4 @@ mappings: po: - [a, era:NetElement] - [rdfs:label, $(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)] - graphs: ${NAMED_GRAPH} \ No newline at end of file + graph: ${NAMED_GRAPH} \ No newline at end of file diff --git a/mappings/RINF-micro-net-relations.yml b/mappings/RINF-micro-net-relations.yml index 6866a09..ba5b946 100644 --- a/mappings/RINF-micro-net-relations.yml +++ b/mappings/RINF-micro-net-relations.yml @@ -4,9 +4,9 @@ prefixes: grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" rdfs: "http://www.w3.org/2000/01/rdf-schema#" eu-country: "http://publications.europa.eu/resource/authority/country/" - era: "http://era.europa.eu/ns#" - era-nv: "http://era.europa.eu/concepts/navigabilities#" - era-pos: "http://era.europa.eu/concepts/relation-positions#" + era: "http://data.europa.eu/949/" + era-nv: "http://data.europa.eu/949/concepts/navigabilities/" + era-pos: "http://data.europa.eu/949/concepts/relation-positions/" variables: connection: @@ -29,12 +29,12 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, TRIM(OP2.UOPID) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineEdges1.ID != LineEdges2.ID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); - s: http://era.europa.eu/topology/netRelations#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) + query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, LTRIM(RTRIM(OP2.UOPID)) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineEdges1.ID != LineEdges2.ID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); + s: http://data.europa.eu/949/topology/netRelations/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) po: - [a, era:NetRelation] - - [era:elementA, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)~iri] - - [era:elementB, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] + - [era:elementA, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)~iri] + - [era:elementB, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] - p: era:navigability o: era-nv:AB~iri condition: @@ -96,7 +96,7 @@ mappings: parameters: - [grel:valueParameter, "O"] - [grel:valueParameter2, "$(OUTGOING_DIRECTION)"] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} net-relations-in-out-2: sources: @@ -105,12 +105,12 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, TRIM(OP2.UOPID) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineEdges1.ID != LineEdges2.ID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); - s: http://era.europa.eu/topology/netRelations#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)_$(OUTGOING_LINE)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP) + query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, LTRIM(RTRIM(OP2.UOPID)) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineEdges1.ID != LineEdges2.ID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN'); + s: http://data.europa.eu/949/topology/netRelations/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)_$(OUTGOING_LINE)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP) po: - [a, era:NetRelation] - - [era:elementA, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] - - [era:elementB, http://era.europa.eu/topology/netElements#$(OUTGOING_LINE)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)~iri] + - [era:elementA, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] + - [era:elementB, http://data.europa.eu/949/topology/netElements/$(OUTGOING_LINE)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)~iri] - p: era:navigability o: era-nv:AB~iri condition: @@ -172,7 +172,7 @@ mappings: parameters: - [grel:valueParameter, "O"] - [grel:valueParameter2, "$(OUTGOING_DIRECTION)"] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} net-relations-no-out-1: sources: @@ -181,12 +181,12 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, TRIM(OP2.UOPID) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeEndID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN') - s: http://era.europa.eu/topology/netRelations#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) + query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, LTRIM(RTRIM(OP2.UOPID)) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeEndID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN') + s: http://data.europa.eu/949/topology/netRelations/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) po: - [a, era:NetRelation] - - [era:elementA, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)~iri] - - [era:elementB, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] + - [era:elementA, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)~iri] + - [era:elementB, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] - p: era:navigability o: era-nv:AB~iri condition: @@ -248,7 +248,7 @@ mappings: - [idlab-fn:str, "N,B"] - [idlab-fn:otherStr, "$(OUTGOING_DIRECTION)"] - [idlab-fn:delimiter, ","] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} net-relations-no-out-2: sources: @@ -257,12 +257,12 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, TRIM(OP2.UOPID) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeEndID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN') - s: http://era.europa.eu/topology/netRelations#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)_$(OUTGOING_LINE)_$(OUTGOING_REMOTE_OP)_$(OUTGOING)_$(UOPID) + query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, LTRIM(RTRIM(OP2.UOPID)) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeEndID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeEndID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN') + s: http://data.europa.eu/949/topology/netRelations/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)_$(OUTGOING_LINE)_$(OUTGOING_REMOTE_OP)_$(OUTGOING)_$(UOPID) po: - [a, era:NetRelation] - - [era:elementA, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] - - [era:elementB, http://era.europa.eu/topology/netElements#$(OUTGOING_LINE)_$(OUTGOING_REMOTE_OP)_$(OUTGOING)_$(UOPID)~iri] + - [era:elementA, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] + - [era:elementB, http://data.europa.eu/949/topology/netElements/$(OUTGOING_LINE)_$(OUTGOING_REMOTE_OP)_$(OUTGOING)_$(UOPID)~iri] - p: era:navigability o: era-nv:AB~iri condition: @@ -324,7 +324,7 @@ mappings: - [idlab-fn:str, "N,B"] - [idlab-fn:otherStr, "$(OUTGOING_DIRECTION)"] - [idlab-fn:delimiter, ","] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} net-relations-no-in-1: sources: @@ -333,12 +333,12 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, TRIM(OP2.UOPID) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeStartID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN') - s: http://era.europa.eu/topology/netRelations#$(INCOMING_LINE)_$(UOPID)_$(INCOMING)_$(INCOMING_REMOTE_OP)_$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) + query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, LTRIM(RTRIM(OP2.UOPID)) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeStartID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN') + s: http://data.europa.eu/949/topology/netRelations/$(INCOMING_LINE)_$(UOPID)_$(INCOMING)_$(INCOMING_REMOTE_OP)_$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) po: - [a, era:NetRelation] - - [era:elementA, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(UOPID)_$(INCOMING)_$(INCOMING_REMOTE_OP)~iri] - - [era:elementB, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] + - [era:elementA, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(UOPID)_$(INCOMING)_$(INCOMING_REMOTE_OP)~iri] + - [era:elementB, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] - p: era:navigability o: era-nv:AB~iri condition: @@ -400,7 +400,7 @@ mappings: parameters: - [grel:valueParameter, "O"] - [grel:valueParameter2, "$(OUTGOING_DIRECTION)"] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} net-relations-no-in-2: sources: @@ -409,12 +409,12 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, TRIM(OP2.UOPID) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeStartID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN') - s: http://era.europa.eu/topology/netRelations#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)_$(OUTGOING_LINE)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP) + query: SELECT UICLines2.UICCode AS INCOMING_LINE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges2.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS INCOMING_REMOTE_OP, Tracks2.UUID AS INCOMING, LookupValues2.[Value] AS INCOMING_DIRECTION, LTRIM(RTRIM(OP2.UOPID)) AS UOPID, Tracks1.UUID AS OUTGOING, LookupValues1.[Value] AS OUTGOING_DIRECTION, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE LineNodes.OperationalPointID = OperationalPoints.ID AND LineNodes.ID = LineEdges1.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS OUTGOING_REMOTE_OP, UICLines1.UICCode AS OUTGOING_LINE FROM RINF.dbo.Tracks AS Tracks2, RINF.dbo.SOLTracks AS SOLTracks2, RINF.dbo.SectionOfLines AS SectionOfLines2, RINF.dbo.LookupValues AS LookupValues2, RINF.dbo.UICLines AS UICLines2, RINF.dbo.Tracks AS Tracks1, RINF.dbo.SOLTracks AS SOLTracks1, RINF.dbo.SectionOfLines AS SectionOfLines1, RINF.dbo.LookupValues AS LookupValues1, RINF.dbo.UICLines AS UICLines1, RINF.dbo.LineEdges AS LineEdges2, RINF.dbo.LineEdges AS LineEdges1, RINF.dbo.LineNodes AS LineNodes1, RINF.dbo.LineNodes AS LineNodes2, RINF.dbo.OperationalPoints AS OP1, RINF.dbo.OperationalPoints AS OP2, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE Tracks2.ID = SOLTracks2.TrackID AND Tracks2.VersionID = SOLTracks2.VersionID AND SOLTracks2.Direction = LookupValues2.ID AND SOLTracks2.SectionOfLineID = SectionOfLines2.ID AND SectionOfLines2.UICLineID = UICLines2.ID AND SectionOfLines2.VersionID = UICLines2.VersionID AND SectionOfLines2.LineEdgeID = LineEdges2.ID AND Tracks2.VersionID = LineEdges2.VersionID AND Tracks1.ID = SOLTracks1.TrackID AND Tracks1.VersionID = SOLTracks1.VersionID AND SOLTracks1.Direction = LookupValues1.ID AND SOLTracks1.SectionOfLineID = SectionOfLines1.ID AND SectionOfLines1.UICLineID = UICLines1.ID AND SectionOfLines1.VersionID = UICLines1.VersionID AND SectionOfLines1.LineEdgeID = LineEdges1.ID AND Tracks1.VersionID = LineEdges1.VersionID AND Tracks2.ID != Tracks1.ID AND LineEdges2.LineNodeStartID = LineNodes2.ID AND LineEdges2.VersionID = LineNodes2.VersionID AND LineEdges1.LineNodeStartID = LineNodes1.ID AND LineEdges1.VersionID = LineNodes1.VersionID AND LineNodes2.OperationalPointID = OP2.ID AND LineNodes1.OperationalPointID = OP1.ID AND LineNodes2.VersionID = OP2.VersionID AND LineNodes1.VersionID = OP1.VersionID AND SectionOfLines2.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OP2.UOPID = OP1.UOPID AND OP1.[Type] = LookupValues.ID AND OP2.[Type] = LookupValues.ID AND OP1.UOPID NOT IN ('NLBHV', 'NLBKLA', 'NLBKP', 'NLBLOA', 'NLDB', 'NLDLD', 'NLHMLA', 'NLMAS', 'NLUT', 'NLUTZA', 'NLVTN') + s: http://data.europa.eu/949/topology/netRelations/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)_$(OUTGOING_LINE)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP) po: - [a, era:NetRelation] - - [era:elementA, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] - - [era:elementB, http://era.europa.eu/topology/netElements#$(OUTGOING_LINE)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)~iri] + - [era:elementA, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] + - [era:elementB, http://data.europa.eu/949/topology/netElements/$(OUTGOING_LINE)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)~iri] - p: era:navigability o: era-nv:AB~iri condition: @@ -476,7 +476,7 @@ mappings: parameters: - [grel:valueParameter, "O"] - [grel:valueParameter2, "$(OUTGOING_DIRECTION)"] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} # ----------------------Define Micro NetRelations for real net elements inside OPs--------------------- @@ -484,7 +484,7 @@ mappings: net-relations-connectivity-table-1: sources: - ["data/op_internal_connectivity.csv~csv"] - s: http://era.europa.eu/topology/netRelations#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) + s: http://data.europa.eu/949/topology/netRelations/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE) condition: function: idlab-fn:equal parameters: @@ -492,8 +492,8 @@ mappings: - [grel:valueParameter2, "YES"] po: - [a, era:NetRelation] - - [era:elementA, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)~iri] - - [era:elementB, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] + - [era:elementA, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)~iri] + - [era:elementB, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] - p: era:navigability o: era-nv:AB~iri condition: @@ -555,12 +555,12 @@ mappings: parameters: - [grel:valueParameter, "O"] - [grel:valueParameter2, "$(OUTGOING_DIRECTION)"] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} net-relations-connectivity-table-2: sources: - ["data/op_internal_connectivity.csv~csv"] - s: http://era.europa.eu/topology/netRelations#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)_$(OUTGOING_LINE)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP) + s: http://data.europa.eu/949/topology/netRelations/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)_$(OUTGOING_LINE)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP) condition: function: idlab-fn:equal parameters: @@ -568,8 +568,8 @@ mappings: - [grel:valueParameter2, "YES"] po: - [a, era:NetRelation] - - [era:elementA, http://era.europa.eu/topology/netElements#$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] - - [era:elementB, http://era.europa.eu/topology/netElements#$(OUTGOING_LINE)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)~iri] + - [era:elementA, http://data.europa.eu/949/topology/netElements/$(INCOMING_LINE)_$(INCOMING_REMOTE_OP)_$(INCOMING)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)_$(OUTGOING_LINE)~iri] + - [era:elementB, http://data.europa.eu/949/topology/netElements/$(OUTGOING_LINE)_$(UOPID)_$(OUTGOING)_$(OUTGOING_REMOTE_OP)~iri] - p: era:navigability o: era-nv:AB~iri condition: @@ -631,4 +631,4 @@ mappings: parameters: - [grel:valueParameter, "O"] - [grel:valueParameter2, "$(OUTGOING_DIRECTION)"] - graphs: ${NAMED_GRAPH} \ No newline at end of file + graph: ${NAMED_GRAPH} \ No newline at end of file diff --git a/mappings/RINF-national-lines.yml b/mappings/RINF-national-lines.yml new file mode 100644 index 0000000..56b7b21 --- /dev/null +++ b/mappings/RINF-national-lines.yml @@ -0,0 +1,73 @@ +prefixes: + idlab-fn: "http://example.com/idlab/function/" + grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" + eu-country: "http://publications.europa.eu/resource/authority/country/" + rdfs: "http://www.w3.org/2000/01/rdf-schema#" + era: "http://data.europa.eu/949/" + xsd: "http://www.w3.org/2001/XMLSchema#" + era-linecat: "http://data.europa.eu/949/concepts/line-category/" + era-fc: "http://data.europa.eu/949/concepts/freight-corridor/" + +variables: + connection: + access: &host ${RINF_HOST} + type: &typeMSSQL mssql + credentials: &credentials + username: ${RINF_USER} + password: ${RINF_PWD} + queryFormulation: &queryFormulation sql2008 + referenceFormulation: &referenceFormulation csv + +mappings: + line-national-ids: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT UICLines.UICCode, MemberStates.Code FROM RINF.dbo.UICLines, RINF.dbo.MemberStates, RINF.dbo.MemberStateVersions WHERE UICLines.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; + s: http://data.europa.eu/949/functionalInfrastructure/nationalLines/$(UICCode) + po: + - [a, era:NationalRailwayLine] + - [rdfs:label, $(UICCode)] + - p: era:inCountry + o: + - mapping: eu-country + condition: + function: equal + parameters: + - [str1, $(Code)] + - [str2, $(code)] + graph: ${NAMED_GRAPH} + + eu-country: + sources: + - ["data/countries.csv~csv"] + s: $(eu) + + line-categories: # 1.1.1.1.2.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT UICLines.UICCode, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.UICLines, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.2.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/nationalLines/$(UICCode) + po: + - [era:lineCategory, era-linecat:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + freight-corridor: # 1.1.1.1.2.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT UICLines.UICCode, REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterValue FROM RINF.dbo.UICLines, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.2.3') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/nationalLines/$(UICCode) + po: + - [era:freightCorridor, era-fc:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} diff --git a/mappings/RINF-op-applicability.yml b/mappings/RINF-op-applicability.yml new file mode 100644 index 0000000..8207ba5 --- /dev/null +++ b/mappings/RINF-op-applicability.yml @@ -0,0 +1,58 @@ +prefixes: + era: "http://data.europa.eu/949/" + +variables: + connection: + access: &host ${RINF_HOST} + type: &typeMSSQL mssql + credentials: &credentials + username: ${RINF_USER} + password: ${RINF_PWD} + queryFormulation: &queryFormulation sql2008 + referenceFormulation: &referenceFormulation csv + +mappings: + op-tracks-not-applicable: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Tracks.UUID, Parameters.[Index] AS PropertyIndex FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.OPTracks, RINF.dbo.Tracks, RINF.dbo.OperationalPoints WHERE OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.IsApplicable = 2 AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UOPID)_$(UUID) + po: + - p: era:notApplicable + o: + - mapping: index-predicates + condition: + function: equal + parameters: + - [str1, $(PropertyIndex)] + - [str2, $(index)] + graph: ${NAMED_GRAPH} + + op-tracks-not-yet-available: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Tracks.UUID, Parameters.[Index] AS PropertyIndex FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.OPTracks, RINF.dbo.Tracks, RINF.dbo.OperationalPoints WHERE OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.IsApplicable = 4 AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UOPID)_$(UUID) + po: + - p: era:notYetAvailable + o: + - mapping: index-predicates + condition: + function: equal + parameters: + - [str1, $(PropertyIndex)] + - [str2, $(index)] + graph: ${NAMED_GRAPH} + + index-predicates: + sources: + - ["data/index_predicate_mappings.csv~csv"] + s: $(predicate) \ No newline at end of file diff --git a/mappings/RINF-op-tracks.yml b/mappings/RINF-op-tracks.yml new file mode 100644 index 0000000..36fd12c --- /dev/null +++ b/mappings/RINF-op-tracks.yml @@ -0,0 +1,150 @@ +prefixes: + idlab-fn: "http://example.com/idlab/function/" + grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" + rdfs: "http://www.w3.org/2000/01/rdf-schema#" + era: "http://data.europa.eu/949/" + xsd: "http://www.w3.org/2001/XMLSchema#" + era-tenclass: "http://data.europa.eu/949/concepts/ten-classifications/" + era-gaugings: "http://data.europa.eu/949/concepts/gaugings/" + era-ntg: "http://data.europa.eu/949/concepts/nominal-track-gauges/" + +variables: + connection: + access: &host ${RINF_HOST} + type: &typeMSSQL mssql + credentials: &credentials + username: ${RINF_USER} + password: ${RINF_PWD} + queryFormulation: &queryFormulation sql2008 + referenceFormulation: &referenceFormulation csv + +mappings: + op-track: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Tracks.UUID, OPTracks.IMCode FROM RINF.dbo.OPTracks, RINF.dbo.Tracks, RINF.dbo.OperationalPoints WHERE OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UOPID)_$(UUID) + po: + - [a, era:Track] + - [rdfs:label, $(UOPID)_$(UUID)] + - [era:imCode, $(IMCode)] # 1.2.1.0.0.1 + - [era:trackId, $(UUID)] # 1.2.1.0.0.2 + graph: ${NAMED_GRAPH} + + link-track-to-operational-point: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Tracks.UUID, OPTracks.IMCode FROM RINF.dbo.OPTracks, RINF.dbo.Tracks, RINF.dbo.OperationalPoints WHERE OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/operationalPoints/$(UOPID) + po: + - [era:track, http://data.europa.eu/949/functionalInfrastructure/tracks/$(UOPID)_$(UUID)~iri] + graph: ${NAMED_GRAPH} + + # ------------ Declarations of verification for track -------------- + + ec-verification: # 1.2.1.0.1.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Tracks.UUID, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.OPTracks, RINF.dbo.Tracks, RINF.dbo.OperationalPoints, RINF.dbo.LookupValues WHERE OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID IS NOT NULL AND TrackParameters.LookupValueID = LookupValues.ID AND "Index" IN ('1.2.1.0.1.1') AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UOPID)_$(UUID) + po: + - [era:verificationINF, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + ei-demonstration: # 1.2.1.0.1.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Tracks.UUID, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.OPTracks, RINF.dbo.Tracks, RINF.dbo.OperationalPoints, RINF.dbo.LookupValues WHERE OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID IS NOT NULL AND TrackParameters.LookupValueID = LookupValues.ID AND "Index" IN ('1.2.1.0.2.2') AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UOPID)_$(UUID) + po: + - [era:demonstrationINF, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + # ------------ Performance parameters -------------- + + ten-class: # 1.2.1.0.2.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Tracks.UUID, REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterValue FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.OPTracks, RINF.dbo.Tracks, RINF.dbo.OperationalPoints, RINF.dbo.LookupValues WHERE OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID IS NOT NULL AND TrackParameters.LookupValueID = LookupValues.ID AND "Index" IN ('1.2.1.0.2.1') AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UOPID)_$(UUID) + po: + - [era:tenClassification, era-tenclass:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + # ------------ Line layout -------------- + + gauging: # 1.2.1.0.3.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Tracks.UUID, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.OPTracks, RINF.dbo.Tracks, RINF.dbo.OperationalPoints, RINF.dbo.LookupValues WHERE OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID IS NOT NULL AND TrackParameters.LookupValueID = LookupValues.ID AND "Index" IN ('1.2.1.0.3.4') AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UOPID)_$(UUID) + po: + - [era:gaugingProfile, era-gaugings:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + gauging-check-locations: # 1.2.1.0.3.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Tracks.UUID, TrackParameters.[Value] AS ParameterValue FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.OPTracks, RINF.dbo.Tracks, RINF.dbo.OperationalPoints WHERE OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND "Index" IN ('1.2.1.0.3.5') AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UOPID)_$(UUID) + po: + - [era:gaugingCheckLocation, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + gauging-transversal-document: # 1.2.1.0.3.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Tracks.UUID, TrackParameters.[Value] AS ParameterValue FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.OPTracks, RINF.dbo.Tracks, RINF.dbo.OperationalPoints WHERE OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND "Index" IN ('1.2.1.0.3.6') AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UOPID)_$(UUID) + po: + - [era:gaugingTransversalDocument, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + # ------------Track parameters -------------- + + nominal-track-gauge: # 1.2.1.0.4.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Tracks.UUID, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.OPTracks, RINF.dbo.Tracks, RINF.dbo.OperationalPoints, RINF.dbo.LookupValues WHERE OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID IS NOT NULL AND TrackParameters.LookupValueID = LookupValues.ID AND "Index" IN ('1.2.1.0.4.1') AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UOPID)_$(UUID) + po: + - [era:wheelSetGauge, era-ntg:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + \ No newline at end of file diff --git a/mappings/RINF-operational-points.yml b/mappings/RINF-operational-points.yml index 30355c4..8bda1ed 100644 --- a/mappings/RINF-operational-points.yml +++ b/mappings/RINF-operational-points.yml @@ -5,9 +5,9 @@ prefixes: geosparql: "http://www.opengis.net/ont/geosparql#" eu-country: "http://publications.europa.eu/resource/authority/country/" rdfs: "http://www.w3.org/2000/01/rdf-schema#" - skos: "http://www.w3.org/2004/02/skos/core#" - era: "http://era.europa.eu/ns#" xsd: "http://www.w3.org/2001/XMLSchema#" + era: "http://data.europa.eu/949/" + era-op-types: "http://data.europa.eu/949/concepts/op-types/" variables: connection: @@ -27,37 +27,21 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT TRIM(UOPID) AS UOPID, TRIM(OperationalPoints.Name) AS OPName, MemberStates.Code, MemberStates.Name AS country, LookupValues.[Value], LineNodes.Latitude, LineNodes.Longitude, OPTafTAPCodes.[Value] AS TafTapCode FROM RINF.dbo.OperationalPoints, RINF.dbo.MemberStates, RINF.dbo.MemberStateVersions, RINF.dbo.LookupValues, RINF.dbo.LineNodes, RINF.dbo.OPTafTAPCodes WHERE OperationalPoints.ID = LineNodes.OperationalPointID AND OperationalPoints.VersionID = LineNodes.VersionID AND OperationalPoints.Type = LookupValues.ID AND OperationalPoints.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OperationalPoints.ID = OPTafTAPCodes.OperationalPointID AND OperationalPoints.VersionID = OPTafTAPCodes.VersionID; - s: http://era.europa.eu/functionalInfrastructure/operationalPoints#$(UOPID) + query: SELECT LTRIM(RTRIM(UOPID)) AS UOPID, LTRIM(RTRIM(OperationalPoints.Name)) AS OPName, MemberStates.Code, MemberStates.Name AS country, LookupValues.[Value], LineNodes.Latitude, LineNodes.Longitude, OPTafTAPCodes.[Value] AS TafTapCode FROM RINF.dbo.OperationalPoints, RINF.dbo.MemberStates, RINF.dbo.MemberStateVersions, RINF.dbo.LookupValues, RINF.dbo.LineNodes, RINF.dbo.OPTafTAPCodes WHERE OperationalPoints.ID = LineNodes.OperationalPointID AND OperationalPoints.VersionID = LineNodes.VersionID AND OperationalPoints.Type = LookupValues.ID AND OperationalPoints.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND OperationalPoints.ID = OPTafTAPCodes.OperationalPointID AND OperationalPoints.VersionID = OPTafTAPCodes.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/operationalPoints/$(UOPID) po: - [a, era:OperationalPoint] - - [era:uopid, $(UOPID)] - [rdfs:label, $(OPName)] - - [geosparql:hasGeometry, http://era.europa.eu/location#GEO/$(Longitude)/$(Latitude)~iri] - - [wgs:location, http://era.europa.eu/location#GEO/$(Longitude)/$(Latitude)~iri] - - p: era:hasAbstraction - o: http://era.europa.eu/topology/netElements#$(UOPID)~iri - condition: # Abstraction entities for Norway are linked with RailML NetElements elsewhere - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(Code)] - - [grel:valueParameter2, "NO"] - - p: era:inCountry - o: - - mapping: eu-country - condition: - function: equal - parameters: - - [str1, $(Code)] - - [str2, $(code)] - - p: era:tafTAPCode + - [era:opName, $(OPName)] # 1.2.0.0.0.1 + - [era:uopid, $(UOPID)] # 1.2.0.0.0.2 + - p: era:tafTAPCode # 1.2.0.0.0.3 o: $(TafTapCode) condition: function: idlab-fn:notEqual parameters: - [grel:valueParameter, $(TafTapCode)] - [grel:valueParameter2, ""] - - p: era:opType + - p: era:opType # 1.2.0.0.0.4 o: - mapping: op-type condition: @@ -65,7 +49,18 @@ mappings: parameters: - [str1, $(Value)] - [str2, $(label)] - graphs: ${NAMED_GRAPH} + - [geosparql:hasGeometry, http://data.europa.eu/949/locations/$(Longitude)/$(Latitude)~iri] # 1.2.0.0.0.5 + - [wgs:location, http://data.europa.eu/949/locations/$(Longitude)/$(Latitude)~iri] # 1.2.0.0.0.5 + - [era:hasAbstraction, http://data.europa.eu/949/topology/netElements/$(UOPID)~iri] + - p: era:inCountry + o: + - mapping: eu-country + condition: + function: equal + parameters: + - [str1, $(Code)] + - [str2, $(code)] + graph: ${NAMED_GRAPH} op-line-reference: sources: @@ -74,11 +69,11 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT TRIM(UOPID) AS UOPID, LineReferences.Kilometer, UICLines.UICCode FROM RINF.dbo.OperationalPoints, RINF.dbo.LineReferences, RINF.dbo.UICLines WHERE OperationalPoints.ID = LineReferences.OperationalPointId AND OperationalPoints.VersionID = LineReferences.VersionID AND LineReferences.UICLineId = UICLines.ID AND LineReferences.VersionID = UICLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/operationalPoints#$(UOPID) + query: SELECT LTRIM(RTRIM(UOPID)) AS UOPID, LineReferences.Kilometer, UICLines.UICCode FROM RINF.dbo.OperationalPoints, RINF.dbo.LineReferences, RINF.dbo.UICLines WHERE OperationalPoints.ID = LineReferences.OperationalPointId AND OperationalPoints.VersionID = LineReferences.VersionID AND LineReferences.UICLineId = UICLines.ID AND LineReferences.VersionID = UICLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/operationalPoints/$(UOPID) po: - - [era:lineReference, http://era.europa.eu/functionalInfrastructure/lineReferences#$(UICCode)_$(Kilometer)~iri] - graphs: ${NAMED_GRAPH} + - [era:lineReference, http://data.europa.eu/949/functionalInfrastructure/lineReferences/$(UICCode)_$(Kilometer)~iri] # 1.2.0.0.0.6 + graph: ${NAMED_GRAPH} line-reference: sources: @@ -87,13 +82,13 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT TRIM(UOPID) AS UOPID, LineReferences.Kilometer, UICLines.UICCode FROM RINF.dbo.OperationalPoints, RINF.dbo.LineReferences, RINF.dbo.UICLines WHERE OperationalPoints.ID = LineReferences.OperationalPointId AND OperationalPoints.VersionID = LineReferences.VersionID AND LineReferences.UICLineId = UICLines.ID AND LineReferences.VersionID = UICLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/lineReferences#$(UICCode)_$(Kilometer) + query: SELECT LTRIM(RTRIM(UOPID)) AS UOPID, LineReferences.Kilometer, UICLines.UICCode FROM RINF.dbo.OperationalPoints, RINF.dbo.LineReferences, RINF.dbo.UICLines WHERE OperationalPoints.ID = LineReferences.OperationalPointId AND OperationalPoints.VersionID = LineReferences.VersionID AND LineReferences.UICLineId = UICLines.ID AND LineReferences.VersionID = UICLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/lineReferences/$(UICCode)_$(Kilometer) po: - [a, era:LineReference] - - [era:lineNationalId, http://era.europa.eu/functionalInfrastructure/lineNationalIds#$(UICCode)~iri] + - [era:lineNationalId, http://data.europa.eu/949/functionalInfrastructure/nationalLines/$(UICCode)~iri] - [era:kilometer, $(Kilometer), xsd:double] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} location: sources: @@ -103,21 +98,79 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT LineNodes.Latitude, LineNodes.Longitude FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPoints.ID = LineNodes.OperationalPointID AND OperationalPoints.VersionID = LineNodes.VersionID; - s: http://era.europa.eu/location#GEO/$(Longitude)/$(Latitude) + s: http://data.europa.eu/949/locations/$(Longitude)/$(Latitude) po: - [a, wgs:Point] - [a, geosparql:Geometry] - [wgs:lat, $(Latitude), xsd:double] - [wgs:long, $(Longitude), xsd:double] - [geosparql:asWKT, POINT ($(Longitude) $(Latitude)), geosparql:wktLiteral] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} op-type: sources: - ["data/op_types.csv~csv"] - s: http://era.europa.eu/concepts/op-types#$(type) + s: era-op-types:$(type) eu-country: sources: - ["data/countries.csv~csv"] s: $(eu) + + # ---------------- Generic information -------------- + + gauge-changeover: # 1.2.0.0.0.4.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, OperationalPointParameters.[Value] AS ParameterValue FROM RINF.dbo.OperationalPointParameters, RINF.dbo.Parameters, RINF.dbo.OperationalPoints WHERE OperationalPointParameters.ParameterID = Parameters.ID AND OperationalPointParameters.OperationalPointID = OperationalPoints.ID AND OperationalPointParameters.VersionID = OperationalPoints.VersionID AND Parameters.[Index] IN ('1.2.0.0.0.4.1') AND OperationalPointParameters.[Value] IS NOT NULL + s: http://data.europa.eu/949/functionalInfrastructure/operationalPoints/$(UOPID) + po: + - [era:opTypeGaugeChangeover, $(ParameterValue)] + + # ---------------- Rules and restrictions -------------- + + local-rules: # 1.2.3.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.OperationalPointParameters, RINF.dbo.Parameters, RINF.dbo.OperationalPoints, RINF.dbo.LookupValues WHERE OperationalPointParameters.ParameterID = Parameters.ID AND OperationalPointParameters.OperationalPointID = OperationalPoints.ID AND OperationalPointParameters.VersionID = OperationalPoints.VersionID AND OperationalPointParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.2.3.1') AND OperationalPointParameters.LookupValueID IS NOT NULL + s: http://data.europa.eu/949/functionalInfrastructure/operationalPoints/$(UOPID) + po: + - p: era:localRulesOrRestrictions + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:localRulesOrRestrictions + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + local-rules-doc: # 1.2.3.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, OperationalPointParameters.[Value] AS ParameterValue FROM RINF.dbo.OperationalPointParameters, RINF.dbo.Parameters, RINF.dbo.OperationalPoints WHERE OperationalPointParameters.ParameterID = Parameters.ID AND OperationalPointParameters.OperationalPointID = OperationalPoints.ID AND OperationalPointParameters.VersionID = OperationalPoints.VersionID AND Parameters.[Index] IN ('1.2.3.2') AND OperationalPointParameters.[Value] IS NOT NULL + s: http://data.europa.eu/949/functionalInfrastructure/operationalPoints/$(UOPID) + po: + - [era:localRulesOrRestrictionsDoc, $(ParameterValue)] \ No newline at end of file diff --git a/mappings/RINF-platforms.yml b/mappings/RINF-platforms.yml new file mode 100644 index 0000000..c19b64c --- /dev/null +++ b/mappings/RINF-platforms.yml @@ -0,0 +1,130 @@ +prefixes: + idlab-fn: "http://example.com/idlab/function/" + grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" + rdfs: "http://www.w3.org/2000/01/rdf-schema#" + xsd: "http://www.w3.org/2001/XMLSchema#" + era: "http://data.europa.eu/949/" + era-tenclass: "http://data.europa.eu/949/concepts/ten-classifications/" + era-ph: "http://data.europa.eu/949/concepts/platform-heights/" + +variables: + connection: + access: &host ${RINF_HOST} + type: &typeMSSQL mssql + credentials: &credentials + username: ${RINF_USER} + password: ${RINF_PWD} + queryFormulation: &queryFormulation sql2008 + referenceFormulation: &referenceFormulation csv + +mappings: + platform: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Tracks.UUID AS TRACK_ID, Platforms.UUID, Platforms.IMCode FROM RINF.dbo.Platforms, RINF.dbo.Tracks, RINF.dbo.OPTracks, RINF.dbo.OperationalPoints WHERE Platforms.TrackID = OPTracks.TrackID AND Platforms.VersionID = OPTracks.VersionID AND OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/funtionalInfrastructure/platforms/$(UOPID)_$(UUID) + po: + - [a, era:Platform] + - [rdfs:label, $(UOPID)_$(UUID)] + - [era:imCode, $(IMCode)] # 1.2.1.0.6.1 + - [era:platformId, $(UUID)] # 1.2.1.0.6.2 + graph: ${NAMED_GRAPH} + + platform-reference: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Tracks.UUID AS TRACK_ID, Platforms.UUID FROM RINF.dbo.Platforms, RINF.dbo.Tracks, RINF.dbo.OPTracks, RINF.dbo.OperationalPoints WHERE Platforms.TrackID = OPTracks.TrackID AND Platforms.VersionID = OPTracks.VersionID AND OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UOPID)_$(TRACK_ID) + po: + - [era:platform, http://data.europa.eu/949/funtionalInfrastructure/platforms/$(UOPID)_$(UUID)~iri] + graph: ${NAMED_GRAPH} + + ten-class: # 1.2.1.0.6.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT Platforms.UUID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.Platforms, RINF.dbo.PlatformParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues, RINF.dbo.OPTracks, RINF.dbo.OperationalPoints WHERE Platforms.TrackID = OPTracks.TrackID AND Platforms.VersionID = OPTracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND PlatformParameters.PlatformID = Platforms.ID AND Platforms.IsFuturePlanning = 0 AND PlatformParameters.VersionID = Platforms.VersionID AND PlatformParameters.LookupValueID = LookupValues.ID AND PlatformParameters.ParameterID = Parameters.ID AND Parameters.[Index] IN ('1.2.1.0.6.3'); + s: http://data.europa.eu/949/funtionalInfrastructure/platforms/$(UOPID)_$(UUID) + po: + - [era:tenClassification, era-tenclass:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + platform-length: # 1.2.1.0.6.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT Platforms.IMCode, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Platforms.UUID, PlatformParameters.[Value] FROM RINF.dbo.Platforms, RINF.dbo.PlatformParameters, RINF.dbo.Parameters, RINF.dbo.OPTracks, RINF.dbo.OperationalPoints WHERE Platforms.IsFuturePlanning = 0 AND PlatformParameters.PlatformID = Platforms.ID AND PlatformParameters.VersionID = Platforms.VersionID AND PlatformParameters.ParameterID = Parameters.ID AND Platforms.TrackID = OPTracks.TrackID and Platforms.VersionID = OPTracks.VersionID and OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND Parameters.[Index] = '1.2.1.0.6.4' AND PlatformParameters.[Value] is not null + s: http://data.europa.eu/949/funtionalInfrastructure/platforms/$(UOPID)_$(UUID) + po: + - [era:length, $(Value), xsd:double] + graph: ${NAMED_GRAPH} + + platform-height: # 1.2.1.0.6.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT Platforms.UUID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.Platforms, RINF.dbo.PlatformParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues, RINF.dbo.OPTracks, RINF.dbo.OperationalPoints WHERE Platforms.TrackID = OPTracks.TrackID AND Platforms.VersionID = OPTracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND PlatformParameters.PlatformID = Platforms.ID AND Platforms.IsFuturePlanning = 0 AND PlatformParameters.VersionID = Platforms.VersionID AND PlatformParameters.LookupValueID = LookupValues.ID AND PlatformParameters.ParameterID = Parameters.ID AND Parameters.[Index] IN ('1.2.1.0.6.5'); + s: http://data.europa.eu/949/funtionalInfrastructure/platforms/$(UOPID)_$(UUID) + po: + - [era:platformHeight, era-ph:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + assistance-starting-train: # 1.2.1.0.6.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT Platforms.UUID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.Platforms, RINF.dbo.PlatformParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues, RINF.dbo.OPTracks, RINF.dbo.OperationalPoints WHERE Platforms.TrackID = OPTracks.TrackID AND Platforms.VersionID = OPTracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND PlatformParameters.PlatformID = Platforms.ID AND Platforms.IsFuturePlanning = 0 AND PlatformParameters.VersionID = Platforms.VersionID AND PlatformParameters.LookupValueID = LookupValues.ID AND PlatformParameters.ParameterID = Parameters.ID AND Parameters.[Index] IN ('1.2.1.0.6.6'); + s: http://data.europa.eu/949/funtionalInfrastructure/platforms/$(UOPID)_$(UUID) + po: + - p: era:assistanceStartingTrain + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:assistanceStartingTrain + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + area-boarding-aid: # 1.2.1.0.6.7 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT Platforms.IMCode, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Platforms.UUID, PlatformParameters.[Value] FROM RINF.dbo.Platforms, RINF.dbo.PlatformParameters, RINF.dbo.Parameters, RINF.dbo.OPTracks, RINF.dbo.OperationalPoints WHERE Platforms.IsFuturePlanning = 0 AND PlatformParameters.PlatformID = Platforms.ID AND PlatformParameters.VersionID = Platforms.VersionID AND PlatformParameters.ParameterID = Parameters.ID AND Platforms.TrackID = OPTracks.TrackID and Platforms.VersionID = OPTracks.VersionID and OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND Parameters.[Index] = '1.2.1.0.6.7' AND PlatformParameters.[Value] is not null + s: http://data.europa.eu/949/funtionalInfrastructure/platforms/$(UOPID)_$(UUID) + po: + - [era:areaBoardingAid, $(Value), xsd:integer] + graph: ${NAMED_GRAPH} \ No newline at end of file diff --git a/mappings/RINF-sections-of-line.yml b/mappings/RINF-sections-of-line.yml index 9d2183f..3f5e16c 100644 --- a/mappings/RINF-sections-of-line.yml +++ b/mappings/RINF-sections-of-line.yml @@ -4,20 +4,8 @@ prefixes: grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" rdfs: "http://www.w3.org/2000/01/rdf-schema#" eu-country: "http://publications.europa.eu/resource/authority/country/" - era: "http://era.europa.eu/ns#" - era-lc: "http://era.europa.eu/concepts/load-capabilities#" - era-gaugings: "http://era.europa.eu/concepts/gaugings#" - era-tds: "http://era.europa.eu/concepts/train-detection#" - era-ri: "http://era.europa.eu/concepts/rail-inclinations#" - era-cls: "http://era.europa.eu/concepts/contact-line-systems#" - era-ess: "http://era.europa.eu/concepts/energy-supply-systems#" - era-pth: "http://era.europa.eu/concepts/pantograph-heads#" - era-csm: "http://era.europa.eu/concepts/contact-strip-materials#" - era-esc: "http://era.europa.eu/concepts/etcs-system-compatibilities#" - era-gsmr: "http://era.europa.eu/concepts/gsmr-networks#" - era-rsc: "http://era.europa.eu/concepts/radio-system-compatibilities#" - era-tpls: "http://era.europa.eu/concepts/train-protection-legacy-systems#" - era-lrs: "http://era.europa.eu/concepts/legacy-radio-systems#" + era: "http://data.europa.eu/949/" + era-sn: "http://data.europa.eu/949/concepts/sol-natures/" variables: connection: @@ -37,20 +25,18 @@ mappings: credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT (SectionOfLines.Length * 1000) AS Length, UICLines.UICCode, MemberStates.Code, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE FROM RINF.dbo.LineEdges, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SectionOfLines.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) + query: SELECT (SectionOfLines.Length * 1000) AS Length, UICLines.UICCode, MemberStates.Code, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS SolNature, SectionOfLines.IMCode FROM RINF.dbo.LineEdges, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SectionOfLines.VersionID = MemberStateVersions.ID AND SectionOfLines.SOLNature = LookupValues.ID AND MemberStateVersions.MemberStateID = MemberStates.ID + s: http://data.europa.eu/949/functionalInfrastructure/sectionsOfLine/$(UICCode)_$(FROM_NODE)_$(TO_NODE) po: - [a, era:SectionOfLine] - [rdfs:label, $(UICCode)_$(FROM_NODE)_$(TO_NODE)] - - [era:lineNationalId, http://era.europa.eu/functionalInfrastructure/lineNationalIds#$(UICCode)~iri] - - [era:length, $(Length), xsd:double] - - p: era:hasAbstraction - o: http://era.europa.eu/topology/netElements#$(UICCode)_$(FROM_NODE)_$(TO_NODE)~iri - condition: # Abstraction entities for Norway are linked with RailML NetElements elsewhere - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(Code)] - - [grel:valueParameter2, "NO"] + - [era:imCode, $(IMCode)] # 1.1.0.0.0.1 + - [era:lineNationalId, http://data.europa.eu/949/functionalInfrastructure/nationalLines/$(UICCode)~iri] # 1.1.0.0.0.2 + - [era:opStart, http://data.europa.eu/949/functionalInfrastructure/operationalPoints/$(FROM_NODE)~iri] # 1.1.0.0.0.3 + - [era:opEnd, http://data.europa.eu/949/functionalInfrastructure/operationalPoints/$(TO_NODE)~iri] # 1.1.0.0.0.4 + - [era:length, $(Length), xsd:double] # 1.1.0.0.0.5 + - [era:solNature, era-sn:$(SolNature)~iri] # 1.1.0.0.0.6 + - [era:hasAbstraction, http://data.europa.eu/949/topology/netElements/$(UICCode)_$(FROM_NODE)_$(TO_NODE)~iri] - p: era:inCountry o: - mapping: eu-country @@ -59,1162 +45,9 @@ mappings: parameters: - [str1, $(Code)] - [str2, $(code)] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} eu-country: sources: - ["data/countries.csv~csv"] - s: $(eu) - - - # ------------Traffic loads and load carrying capacity of infrastructure-------------- - - load-capability: # 1.1.1.1.2.4 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, CONCAT(LookupValues.[Value], '-' , TrackParameters.Value) AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.2.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:loadCapability, era-lc:$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} - - national-load-capability: # 1.1.1.1.2.4.1 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.2.4.1'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:nationalLoadCapability, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - hslm-compliance: # 1.1.1.1.2.4.2 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.2.4.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:highSpeedLoadModelCompliance - o: - value: "true" - datatype: "xsd:boolean" - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Y"] - - p: era:highSpeedLoadModelCompliance - o: - value: "false" - datatype: "xsd:boolean" - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "N"] - graphs: ${NAMED_GRAPH} - - structure-check-locations: # 1.1.1.1.2.4.3 (no data!) - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.2.4.3') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:structureCheckLocation, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} - - compatibility-procedure-document: # 1.1.1.1.2.4.4 (no data!) - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.2.4.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:compatibilityProcedureDocument, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - # -----------------Gauging-------------------- - - gauging: # 1.1.1.1.3.1.1 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.3.1.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:gaugingProfile, http://era.europa.eu/concepts/gaugings#$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} - - gauging-check-locations: # 1.1.1.1.3.1.2 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.3.1.2'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:gaugingCheckLocation, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} - - gauging-transversal-document: # 1.1.1.1.3.1.3 (no data!) - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.3.1.3'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:gaugingTransversalDocument, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - # -----------------Vertical radius-------------------- - - minimum-vertical-curve: # 1.2.2.0.3.3 (no data!) - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.2.2.0.3.3'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:minimumVerticalRadius, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - # -----------------Train detection systems-------------------- - - train-detection-system-type: # 1.1.1.3.7.1.1 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.1.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:trainDetectionSystem, era-tds:$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} - - detection-system-specific-checks: # 1.1.1.3.7.1.2 (no data! even in RINF guide says waiting for proposal of MSs) - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.1.2'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:trainDetectionSystemSpecificCheck, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - french-detection-limitation: # 1.1.1.3.7.1.4 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(TrackParameters.[Value], '+', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.1.4') - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:frenchTrainDetectionSystemLimitation, era-tds:$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} - - # -----------------Hot axle box detection-------------------- - - hot-axle-box-detector-existence: # 1.1.1.1.7.4 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:hasHotAxleBoxDetector - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Y"] - - p: era:hasHotAxleBoxDetector - o: - value: "false" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "N"] - graphs: ${NAMED_GRAPH} - - hot-axle-box-detection-tsi-compliant: # 1.1.1.1.7.5 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.5') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:hotAxleBoxDetectorTSICompliant - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Y"] - - p: era:hotAxleBoxDetectorTSICompliant - o: - value: "false" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "N"] - graphs: ${NAMED_GRAPH} - - hot-axle-box-detector-identification: # 1.1.1.1.7.6 (no data! no explanation about data format in RINF's guide) - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.6') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:hotAxleBoxDetectorIdentification, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - hot-axle-box-detector-generation: # 1.1.1.1.7.7 (no data! no explanation about data format in RINF's guide) - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.7') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:hotAxleBoxDetectorGeneration, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - hot-axle-box-detector-location: # 1.1.1.1.7.8 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, SUBSTRING(TrackParameters.Value, 2, LEN(TrackParameters.Value)) AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.7.8'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:hotAxleBoxDetectorLocation, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} - - hot-axle-box-detector-direction: # 1.1.1.1.7.9 (no data!) - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.9') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:hotAxleBoxDetectorDirection, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - # -----------------Running characteristics-------------------- - - cant-deficiency: # 1.1.1.1.4.2 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.4.2'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:cantDeficiency, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - maximum-permitted-speed: # 1.1.1.1.2.5 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.2.5'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:maximumPermittedSpeed, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} - - rail-inclination: # 1.1.1.1.4.3 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.4.3'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:railInclination, era-ri:1%2F$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} - - # -----------------Wheelset-------------------- - - nominal-track-gauge: # 1.1.1.1.4.1 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.4.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:wheelSetGauge - o: - - value: $(ParameterValue) - datatype: xsd:integer - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "other"] - graphs: ${NAMED_GRAPH} - - minimum-wheel-diameter: # 1.1.1.1.5.2 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.5.2'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:minimumWheelDiameter, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} - - # -----------------Minimum curve-------------------- - - minimum-horizontal-curve-radius: # 1.1.1.1.3.7 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.3.7'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:minimumHorizontalRadius, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} - - # -------------------Braking----------------------- - - maximum-braking-distance: # 1.1.1.3.11.1 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.11.1'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:maximumBrakingDistance, $(ParameterValue), xsd:integer] - graphs: ${NAMED_GRAPH} - - gradient-profile: # 1.1.1.1.3.6 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.3.6'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:gradientProfile, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - maximum-train-deceleration: # 1.1.1.1.6.1 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.6.1'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:maximumTrainDeceleration, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} - - has-additional-braking-information: # 1.1.1.3.11.2 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.11.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:hasAdditionalBrakingInformation - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Y"] - - p: era:hasAdditionalBrakingInformation - o: - value: "false" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "N"] - graphs: ${NAMED_GRAPH} - - additional-braking-information-document: # 1.1.1.3.11.3 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.11.3'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:additionalBrakingInformationDocument, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - # -------------------Magnetic track brake----------------------- - - use-of-magnetic-brakes: # 1.1.1.1.6.3 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.6.3') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:magneticBraking - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "allowed"] - - p: era:magneticBraking - o: - value: "false" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "not allowed"] - - p: era:conditionalMagneticBraking - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "allowed under conditions"] - - p: era:emergencyOnlyMagneticBraking - o: - value: "true" - datatype: "xsd:boolean" - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "allowed only for emergency brake"] - - p: era:conditionalEmergencyOnlyMagneticBraking - o: - value: "true" - datatype: "xsd:boolean" - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "allowed under conditions only for emergency brake"] - graphs: ${NAMED_GRAPH} - - magnetic-braking-conditions-document: # 1.1.1.1.6.5 (no data!) - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.6.5') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:magneticBrakingConditionsDocument, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - -# -------------------Eddy current track brake----------------------- - - use-of-eddy-current-brakes: # 1.1.1.1.6.2 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.6.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:eddyCurrentBraking - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "allowed"] - - p: era:eddyCurrentBraking - o: - value: "false" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "not allowed"] - - p: era:conditionalEddyCurrentBraking - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "allowed under conditions"] - - p: era:emergencyOnlyEddyCurrentBraking - o: - value: "true" - datatype: "xsd:boolean" - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "allowed only for emergency brake"] - - p: era:conditionalEmergencyOnlyEddyCurrentBraking - o: - value: "true" - datatype: "xsd:boolean" - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "allowed under conditions only for emergency brake"] - graphs: ${NAMED_GRAPH} - - eddy-current-braking-conditions-document: # 1.1.1.1.6.4 (no data!) - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.6.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:eddyCurrentBrakingConditionsDocument, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - # -------------------Weather conditions----------------------- - - temperature-range: # 1.1.1.1.2.6 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, SUBSTRING(LookupValues.[Value], 5, 3) AS MinimumTemperature, SUBSTRING(LookupValues.[Value], 13, 2) AS MaximumTemperature FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.2.6') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:minimumTemperature, $(MinimumTemperature), xsd:integer] - - [era:maximumTemperature, $(MaximumTemperature), xsd:integer] - graphs: ${NAMED_GRAPH} - - severe-weather-conditions: # 1.1.1.1.2.8 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.2.8') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:severeWeatherConditions - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Y"] - - p: era:severeWeatherConditions - o: - value: "false" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "N"] - graphs: ${NAMED_GRAPH} - - # -------------------Voltages and frequencies----------------------- - - contact-line-system-type: # 1.1.1.2.2.1.1 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.2.1.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:contactLineSystem, era-cls:$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} - - energy-supply-system: # 1.1.1.2.2.1.2 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.2.1.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:energySupplySystem - o: era-ess:$(ParameterValue)~iri - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "other"] - graphs: ${NAMED_GRAPH} - - energy-supply-system-tsi-compliant: # 1.1.1.2.2.1.2.1 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.2.1.2.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:energySupplySystemTSICompliant - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Y"] - - p: era:energySupplySystemTSICompliant - o: - value: "false" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "N"] - graphs: ${NAMED_GRAPH} - - umax2: # 1.1.1.2.2.1.3 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.2.1.3'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:umax2, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - # -------------------Regenerative brake---------------------- - - regenerative-braking: # 1.1.1.2.2.4 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.2.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:hasRegenerativeBrake - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Y"] - - p: era:hasRegenerativeBrake - o: - value: "false" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "N"] - - p: era:conditionalRegenerativeBrake - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "allowed under conditions"] - graphs: ${NAMED_GRAPH} - - # -------------------Current limitation---------------------- - - current-limitation: # 1.1.1.2.5.1 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.5.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:currentLimitationRequired - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Y"] - - p: era:currentLimitationRequired - o: - value: "false" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "N"] - graphs: ${NAMED_GRAPH} - - # -------------------Pantograph---------------------- - - maximum-current-standstill: # 1.1.1.2.2.3 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.2.3'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:maxCurrentStandstillPantograph, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} - - maximum-wire-height: # 1.1.1.2.2.5 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.2.5'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:maximumContactWireHeight, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} - - minimum-wire-height: # 1.1.1.2.2.6 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.2.6'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:minimumContactWireHeight, $(ParameterValue), xsd:double] - graphs: ${NAMED_GRAPH} - - pantograph-tsi-compliant: # 1.1.1.2.3.1 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.3.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:pantographHead, era-pth:$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} - - other-accepted-pantographs: # 1.1.1.2.3.2 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.3.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:pantographHead, era-pth:$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} - - contact-strip-material: # 1.1.1.2.3.4 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.3.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:contactStripMaterial - o: era-csm:$(ParameterValue)~iri - condition: - function: idlab-fn:notEqual - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "other"] - graphs: ${NAMED_GRAPH} - - contact-force: # 1.1.1.2.5.2 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.5.2'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:permittedContactForce, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - raised-pantograph-distance-speed: # 1.1.1.2.3.3 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.3.3'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:raisedPantographsDistanceAndSpeed, $(ParameterValue)] - graphs: ${NAMED_GRAPH} - - automatic-dropping-device-required: # 1.1.1.2.5.3 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.5.3') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:automaticDroppingDeviceRequired - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Y"] - - p: era:automaticDroppingDeviceRequired - o: - value: "false" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "N"] - graphs: ${NAMED_GRAPH} - - - # -------------------Tunnel---------------------- - # Mappings for Tunnel parameters are in RINF-tunnels.yml file - - # -------------------Train length---------------------- - # TODO: Map Sidings when Operational Point tracks are mapped - - # -----------Platform height and access and egress-------- - # TODO: Map Platforms when Operational Point tracks are mapped - - # -----------------------ETCS-------------------------- - - etcs-compatible: # 1.1.1.3.2.9 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.2.9') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:etcsSystemCompatibility, era-esc:$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} - - train-integrity-required: # 1.1.1.3.2.8 (no data!) - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.2.8'); - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:trainIntegrityOnBoardRequired - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Y"] - - p: era:trainIntegrityOnBoardRequired - o: - value: "false" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "N"] - graphs: ${NAMED_GRAPH} - - # -----------------------GSM-R-------------------------- - - gsm-r-network-coverage: # 1.1.1.3.3.5 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.3.5') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:gsmrNetworkCoverage, era-gsmr:$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} - - group-555-support: # 1.1.1.3.3.4 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.3.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:usesGroup555 - o: - value: "true" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Y"] - - p: era:usesGroup555 - o: - value: "false" - datatype: xsd:boolean - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "N"] - graphs: ${NAMED_GRAPH} - - voice-radio-compatible: # 1.1.1.3.3.9 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.3.9') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:voiceRadioCompatible, era-rsc:$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} - - data-radio-compatible: # 1.1.1.3.3.10 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.3.10') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:dataRadioCompatible, era-rsc:$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} - - # -----------------------Class B-------------------------- - - protection-legacy-system: # 1.1.1.3.5.3 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.5.3') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - [era:protectionLegacySystem, era-tpls:$(ParameterValue)~iri] - graphs: ${NAMED_GRAPH} - - legacy-radio-system: # 1.1.1.3.6.1 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.6.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:legacyRadioSystem - o: era-lrs:$(ParameterValue)~iri - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Analogue_Radio_Germany_-_UIC_751"] - - p: era:legacyRadioSystem - o: era-lrs:$(ParameterValue)~iri - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "RETB_(voice)"] - graphs: ${NAMED_GRAPH} - - # ---------------------Noise (pilot 1.2)-------------------------- - - quieter-route: # 1.1.1.1.7.11 - sources: - - access: *host - type: *typeMSSQL - credentials: *credentials - queryFormulation: *queryFormulation - referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.11') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; - s: http://era.europa.eu/functionalInfrastructure/sectionsOfLine#$(UICCode)_$(FROM_NODE)_$(TO_NODE) - po: - - p: era:isQuietRoute - o: - value: "true" - datatype: "xsd:boolean" - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "Y"] - - p: era:isQuietRoute - o: - value: "false" - datatype: "xsd:boolean" - condition: - function: idlab-fn:equal - parameters: - - [grel:valueParameter, $(ParameterValue)] - - [grel:valueParameter2, "N"] - graphs: ${NAMED_GRAPH} \ No newline at end of file + s: $(eu) \ No newline at end of file diff --git a/mappings/RINF-sidings.yml b/mappings/RINF-sidings.yml new file mode 100644 index 0000000..60fefd5 --- /dev/null +++ b/mappings/RINF-sidings.yml @@ -0,0 +1,343 @@ +prefixes: + idlab-fn: "http://example.com/idlab/function/" + grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" + rdfs: "http://www.w3.org/2000/01/rdf-schema#" + xsd: "http://www.w3.org/2001/XMLSchema#" + era: "http://data.europa.eu/949/" + era-tenclass: "http://data.europa.eu/949/concepts/ten-classifications/" + +variables: + connection: + access: &host ${RINF_HOST} + type: &typeMSSQL mssql + credentials: &credentials + username: ${RINF_USER} + password: ${RINF_PWD} + queryFormulation: &queryFormulation sql2008 + referenceFormulation: &referenceFormulation csv + +mappings: + siding: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, Sidings.IMCode FROM RINF.dbo.Sidings, RINF.dbo.OperationalPoints WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - [a, era:Siding] + - [rdfs:label, $(UOPID)_$(UUID)] + - [era:imCode, $(IMCode)] # 1.2.2.0.0.1 + - [era:sidingId, $(UUID)] # 1.2.2.0.0.2 + graph: ${NAMED_GRAPH} + + link-siding-to-operational-point: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, Sidings.IMCode FROM RINF.dbo.Sidings, RINF.dbo.OperationalPoints WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/operationalPoints/$(UOPID) + po: + - [era:siding, http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID)~iri] + graph: ${NAMED_GRAPH} + + # ------------ Generic information -------------- + + ten-class: # 1.2.2.0.0.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.SidingParameters, RINF.dbo.Parameters, RINF.dbo.Sidings, RINF.dbo.OperationalPoints, RINF.dbo.LookupValues WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Sidings.ID = SidingParameters.SidingID AND Sidings.VersionID = SidingParameters.VersionID AND SidingParameters.ParameterId = Parameters.ID AND SidingParameters.LookupValueID IS NOT NULL AND SidingParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.2.2.0.0.3') AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - [era:tenClassification, era-tenclass:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + # ------------ Declarations of verification for siding -------------- + + ec-verification: # 1.2.2.0.1.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, SidingParameters.[Value] AS ParameterValue FROM RINF.dbo.SidingParameters, RINF.dbo.Parameters, RINF.dbo.Sidings, RINF.dbo.OperationalPoints WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Sidings.ID = SidingParameters.SidingID AND Sidings.VersionID = SidingParameters.VersionID AND SidingParameters.ParameterId = Parameters.ID AND SidingParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.2.2.0.1.1') AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - [era:verificationINF, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + ei-demonstration: # 1.2.2.0.1.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, SidingParameters.[Value] AS ParameterValue FROM RINF.dbo.SidingParameters, RINF.dbo.Parameters, RINF.dbo.Sidings, RINF.dbo.OperationalPoints WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Sidings.ID = SidingParameters.SidingID AND Sidings.VersionID = SidingParameters.VersionID AND SidingParameters.ParameterId = Parameters.ID AND SidingParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.2.2.0.1.2') AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - [era:demonstrationINF, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + # ------------ Performance parameters -------------- + + siding-length: # 1.2.2.0.2.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, SidingParameters.[Value] AS ParameterValue FROM RINF.dbo.SidingParameters, RINF.dbo.Parameters, RINF.dbo.Sidings, RINF.dbo.OperationalPoints WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Sidings.ID = SidingParameters.SidingID AND Sidings.VersionID = SidingParameters.VersionID AND SidingParameters.ParameterId = Parameters.ID AND SidingParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.2.2.0.2.1') AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - [era:length, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + # ------------ Line layout -------------- + + siding-gradient: # 1.2.2.0.3.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, SidingParameters.[Value] AS ParameterValue FROM RINF.dbo.SidingParameters, RINF.dbo.Parameters, RINF.dbo.Sidings, RINF.dbo.OperationalPoints WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Sidings.ID = SidingParameters.SidingID AND Sidings.VersionID = SidingParameters.VersionID AND SidingParameters.ParameterId = Parameters.ID AND SidingParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.2.2.0.3.1') AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - [era:gradient, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + min-radius-horizontal: # 1.2.2.0.3.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, SidingParameters.[Value] AS ParameterValue FROM RINF.dbo.SidingParameters, RINF.dbo.Parameters, RINF.dbo.Sidings, RINF.dbo.OperationalPoints WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Sidings.ID = SidingParameters.SidingID AND Sidings.VersionID = SidingParameters.VersionID AND SidingParameters.ParameterId = Parameters.ID AND SidingParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.2.2.0.3.2') AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - [era:minimumHorizontalRadius, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + min-radius-vertical: # 1.2.2.0.3.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, SidingParameters.[Value] AS ParameterValue FROM RINF.dbo.SidingParameters, RINF.dbo.Parameters, RINF.dbo.Sidings, RINF.dbo.OperationalPoints WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Sidings.ID = SidingParameters.SidingID AND Sidings.VersionID = SidingParameters.VersionID AND SidingParameters.ParameterId = Parameters.ID AND SidingParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.2.2.0.3.3') AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - [era:minimumVerticalRadius, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + # ------------ TS / Fixed installations for servicing trains -------------- + + toilet-discharge: # 1.2.2.0.4.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.SidingParameters, RINF.dbo.Parameters, RINF.dbo.Sidings, RINF.dbo.OperationalPoints, RINF.dbo.LookupValues WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Sidings.ID = SidingParameters.SidingID AND Sidings.VersionID = SidingParameters.VersionID AND SidingParameters.ParameterId = Parameters.ID AND SidingParameters.LookupValueID IS NOT NULL AND SidingParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.2.2.0.4.1') AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - p: era:hasToiletDischarge + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasToiletDischarge + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + external-cleaning: # 1.2.2.0.4.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.SidingParameters, RINF.dbo.Parameters, RINF.dbo.Sidings, RINF.dbo.OperationalPoints, RINF.dbo.LookupValues WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Sidings.ID = SidingParameters.SidingID AND Sidings.VersionID = SidingParameters.VersionID AND SidingParameters.ParameterId = Parameters.ID AND SidingParameters.LookupValueID IS NOT NULL AND SidingParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.2.2.0.4.2') AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - p: era:hasExternalCleaning + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasExternalCleaning + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + water-restocking: # 1.2.2.0.4.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.SidingParameters, RINF.dbo.Parameters, RINF.dbo.Sidings, RINF.dbo.OperationalPoints, RINF.dbo.LookupValues WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Sidings.ID = SidingParameters.SidingID AND Sidings.VersionID = SidingParameters.VersionID AND SidingParameters.ParameterId = Parameters.ID AND SidingParameters.LookupValueID IS NOT NULL AND SidingParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.2.2.0.4.3') AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - p: era:hasWaterRestocking + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasWaterRestocking + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + refuelling: # 1.2.2.0.4.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.SidingParameters, RINF.dbo.Parameters, RINF.dbo.Sidings, RINF.dbo.OperationalPoints, RINF.dbo.LookupValues WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Sidings.ID = SidingParameters.SidingID AND Sidings.VersionID = SidingParameters.VersionID AND SidingParameters.ParameterId = Parameters.ID AND SidingParameters.LookupValueID IS NOT NULL AND SidingParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.2.2.0.4.4') AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - p: era:hasRefuelling + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasRefuelling + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + sand-restocking: # 1.2.2.0.4.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.SidingParameters, RINF.dbo.Parameters, RINF.dbo.Sidings, RINF.dbo.OperationalPoints, RINF.dbo.LookupValues WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Sidings.ID = SidingParameters.SidingID AND Sidings.VersionID = SidingParameters.VersionID AND SidingParameters.ParameterId = Parameters.ID AND SidingParameters.LookupValueID IS NOT NULL AND SidingParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.2.2.0.4.5') AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - p: era:hasSandRestocking + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasSandRestocking + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + electric-shore-supply: # 1.2.2.0.4.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.SidingParameters, RINF.dbo.Parameters, RINF.dbo.Sidings, RINF.dbo.OperationalPoints, RINF.dbo.LookupValues WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Sidings.ID = SidingParameters.SidingID AND Sidings.VersionID = SidingParameters.VersionID AND SidingParameters.ParameterId = Parameters.ID AND SidingParameters.LookupValueID IS NOT NULL AND SidingParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.2.2.0.4.6') AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - p: era:hasElectricShoreSupply + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasElectricShoreSupply + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + # ------------ Contact line system -------------- + + max-standstill-current: # 1.2.2.0.6.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, Sidings.UUID, SidingParameters.[Value] AS ParameterValue FROM RINF.dbo.SidingParameters, RINF.dbo.Parameters, RINF.dbo.Sidings, RINF.dbo.OperationalPoints WHERE Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Sidings.ID = SidingParameters.SidingID AND Sidings.VersionID = SidingParameters.VersionID AND SidingParameters.ParameterId = Parameters.ID AND SidingParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.2.2.0.6.1') AND OperationalPoints.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(UUID) + po: + - [era:maxCurrentStandstillPantograph, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} \ No newline at end of file diff --git a/mappings/RINF-sol-not-applicable.yml b/mappings/RINF-sol-not-applicable.yml new file mode 100644 index 0000000..3fcfe4c --- /dev/null +++ b/mappings/RINF-sol-not-applicable.yml @@ -0,0 +1,38 @@ +prefixes: + era: "http://data.europa.eu/949/" + +variables: + connection: + access: &host ${RINF_HOST} + type: &typeMSSQL mssql + credentials: &credentials + username: ${RINF_USER} + password: ${RINF_PWD} + queryFormulation: &queryFormulation sql2008 + referenceFormulation: &referenceFormulation csv + +mappings: + sol-tracks-not-applicable: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID,(SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, Parameters.[Index] AS PropertyIndex FROM RINF.dbo.LineEdges, RINF.dbo.Tracks, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.IsApplicable = 2; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:notApplicable + o: + - mapping: index-predicates + condition: + function: equal + parameters: + - [str1, $(PropertyIndex)] + - [str2, $(index)] + graph: ${NAMED_GRAPH} + + index-predicates: + sources: + - ["data/index_predicate_mappings.csv~csv"] + s: $(predicate) \ No newline at end of file diff --git a/mappings/RINF-sol-not-yet-available.yml b/mappings/RINF-sol-not-yet-available.yml new file mode 100644 index 0000000..2108eb0 --- /dev/null +++ b/mappings/RINF-sol-not-yet-available.yml @@ -0,0 +1,38 @@ +prefixes: + era: "http://data.europa.eu/949/" + +variables: + connection: + access: &host ${RINF_HOST} + type: &typeMSSQL mssql + credentials: &credentials + username: ${RINF_USER} + password: ${RINF_PWD} + queryFormulation: &queryFormulation sql2008 + referenceFormulation: &referenceFormulation csv + +mappings: + sol-tracks-not-yet-available: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID,(SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, Parameters.[Index] AS PropertyIndex FROM RINF.dbo.LineEdges, RINF.dbo.Tracks, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.IsApplicable = 4; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:notYetAvailable + o: + - mapping: index-predicates + condition: + function: equal + parameters: + - [str1, $(PropertyIndex)] + - [str2, $(index)] + graph: ${NAMED_GRAPH} + + index-predicates: + sources: + - ["data/index_predicate_mappings.csv~csv"] + s: $(predicate) \ No newline at end of file diff --git a/mappings/RINF-sol-tracks.yml b/mappings/RINF-sol-tracks.yml new file mode 100644 index 0000000..0dc4150 --- /dev/null +++ b/mappings/RINF-sol-tracks.yml @@ -0,0 +1,1945 @@ +prefixes: + idlab-fn: "http://example.com/idlab/function/" + grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" + rdfs: "http://www.w3.org/2000/01/rdf-schema#" + era: "http://data.europa.eu/949/" + xsd: "http://www.w3.org/2001/XMLSchema#" + era-trd: "http://data.europa.eu/949/concepts/track-running-directions/" + era-tenclass: "http://data.europa.eu/949/concepts/ten-classifications/" + era-gaugings: "http://data.europa.eu/949/concepts/gaugings/" + era-ntg: "http://data.europa.eu/949/concepts/nominal-track-gauges/" + era-ecb: "http://data.europa.eu/949/concepts/eddy-current-braking/" + era-mb: "http://data.europa.eu/949/concepts/magnetic-braking/" + era-lc: "http://data.europa.eu/949/concepts/load-capabilities/" + era-gaugings: "http://data.europa.eu/949/concepts/gaugings/" + era-ntg: "http://data.europa.eu/949/concepts/nominal-track-gauges/" + era-tds: "http://data.europa.eu/949/concepts/train-detection/" + era-ri: "http://data.europa.eu/949/concepts/rail-inclinations/" + era-pth: "http://data.europa.eu/949/concepts/pantograph-heads/" + era-csm: "http://data.europa.eu/949/concepts/contact-strip-materials/" + era-esc: "http://data.europa.eu/949/concepts/etcs-system-compatibilities/" + era-gsmr: "http://data.europa.eu/949/concepts/gsmr-networks/" + era-gsmrv: "http://data.europa.eu/949/concepts/gsmr-versions/" + era-gsmrnumactivemob: "http://data.europa.eu/949/concepts/gsmr-number-active-mobiles/" + era-gsmroptfunc: "http://data.europa.eu/949/concepts/gsmr-optional-functions/" + era-tenclass: "http://data.europa.eu/949/concepts/ten-classifications/" + era-pnsb: "http://data.europa.eu/949/concepts/profile-num-swap-bodies/" + era-pnst: "http://data.europa.eu/949/concepts/profile-num-semi-trailers/" + era-rsc: "http://data.europa.eu/949/concepts/radio-system-compatibilities/" + era-tpls: "http://data.europa.eu/949/concepts/train-protection-legacy-systems/" + era-lrs: "http://data.europa.eu/949/concepts/legacy-radio-systems/" + era-etcsinfill: "http://data.europa.eu/949/concepts/etcs-infills/" + era-etcsmvers: "http://data.europa.eu/949/concepts/etcs-m-versions/" + era-etcssituation: "http://data.europa.eu/949/concepts/etcs-situation/" + era-opcw: "http://data.europa.eu/949/concepts/other-protection-control-warning/" + era-tsi: "http://data.europa.eu/949/concepts/tsi-compliances/" + +variables: + connection: + access: &host ${RINF_HOST} + type: &typeMSSQL mssql + credentials: &credentials + username: ${RINF_USER} + password: ${RINF_PWD} + queryFormulation: &queryFormulation sql2008 + referenceFormulation: &referenceFormulation csv + +mappings: + sol-track: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT Tracks.UUID, UICLines.UICCode, LookupValues.[Value] AS Direction, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.Tracks, RINF.dbo.UICLines, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SOLTracks.Direction = LookupValues.ID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SectionOfLines.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [a, era:Track] + - [rdfs:label, $(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)] + - [era:trackId, $(UUID)] # 1.1.1.0.0.1 + - [era:trackDirection, era-trd:$(Direction)~iri] # 1.1.1.0.0.2 + graph: ${NAMED_GRAPH} + + link-track-to-section-of-line: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT Tracks.UUID, UICLines.UICCode, LookupValues.[Value] AS Direction, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.Tracks, RINF.dbo.UICLines, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SOLTracks.Direction = LookupValues.ID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SectionOfLines.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sectionsOfLine/$(UICCode)_$(FROM_NODE)_$(TO_NODE) + po: + - [era:track, http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)~iri] + graph: ${NAMED_GRAPH} + + # ------------IDE / Declarations of verification for track-------------- + + eu-commission-verification: # 1.1.1.1.1.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.Tracks, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.1.1'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:verificationINF, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + eu-commission-demonstration: # 1.1.1.1.1.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.Tracks, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.1.2'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:demonstrationINF, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + # ------------IPP / Performance parameters-------------- + + ten-class: # 1.1.1.1.2.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, replace(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.2.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:tenClassification, era-tenclass:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + ten-gis-id: # 1.1.1.1.2.1.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.Tracks, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.2.1.2'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:tenGISId, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + load-capability: # 1.1.1.1.2.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, CONCAT(LookupValues.[Value], '-' , TrackParameters.Value) AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.2.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:loadCapability, era-lc:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + national-load-capability: # 1.1.1.1.2.4.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.2.4.1'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:nationalLoadCapability, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + hslm-compliance: # 1.1.1.1.2.4.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.2.4.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:highSpeedLoadModelCompliance + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:highSpeedLoadModelCompliance + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + structure-check-locations: # 1.1.1.1.2.4.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.2.4.3') + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:structureCheckLocation, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + compatibility-procedure-document: # 1.1.1.1.2.4.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.2.4.4') + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:compatibilityProcedureDocument, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + maximum-permitted-speed: # 1.1.1.1.2.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.2.5'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:maximumPermittedSpeed, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + temperature-range: # 1.1.1.1.2.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, SUBSTRING(LookupValues.[Value], 5, 3) AS MinimumTemperature, SUBSTRING(LookupValues.[Value], 13, 2) AS MaximumTemperature FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.2.6') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:minimumTemperature, $(MinimumTemperature), xsd:integer] + - [era:maximumTemperature, $(MaximumTemperature), xsd:integer] + graph: ${NAMED_GRAPH} + + maximum-altitude: # 1.1.1.1.2.7 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.2.7') + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:maximumAltitude, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + severe-weather-conditions: # 1.1.1.1.2.8 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.2.8') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:hasSevereWeatherConditions + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasSevereWeatherConditions + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + # ------------ILL/ Line layout-------------- + + gauging: # 1.1.1.1.3.1.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.3.1.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:gaugingProfile, era-gaugings:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + gauging-check-locations: # 1.1.1.1.3.1.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.3.1.2'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:gaugingCheckLocation, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + gauging-transversal-document: # 1.1.1.1.3.1.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.3.1.3'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:gaugingTransversalDocument, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + profile-number-swap-body: # 1.1.1.1.3.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, replace(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') as ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.3.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:profileNumberSwapBodies, era-pnsb:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + profile-number-semi-trailer: # 1.1.1.1.3.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, replace(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') as ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.3.5') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:profileNumberSemiTrailers, era-pnst:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + specific-information: # 1.1.1.1.3.5.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.3.5.1') + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:specificInformation, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + gradient-profile: # 1.1.1.1.3.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, LookupValues.[Value] AS Direction, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, SUBSTRING((SELECT ' ' + TrackParameters.[Value] AS 'data()' FROM RINF.dbo.TrackParameters WHERE SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL ORDER BY CASE WHEN LookupValues.[Value] = 'O' THEN TRY_CAST(SUBSTRING(TrackParameters.[Value], PATINDEX('%(%', TrackParameters.[Value]) + 1, LEN(TrackParameters.[Value]) - PATINDEX('%(%', TrackParameters.[Value]) - 1) AS FLOAT) END DESC, CASE WHEN LookupValues.[Value] <> 'O' THEN TRY_CAST(SUBSTRING(TrackParameters.[Value], PATINDEX('%(%', TrackParameters.[Value]) + 1, LEN(TrackParameters.[Value]) - PATINDEX('%(%', TrackParameters.[Value]) - 1) AS FLOAT) END ASC FOR XML PATH('')), 2, 999999) AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SOLTracks.Direction = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.3.6') + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:gradientProfile, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + minimum-horizontal-curve-radius: # 1.1.1.1.3.7 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.3.7'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:minimumHorizontalRadius, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + # ------------ITP / Track parameters-------------- + + nominal-track-gauge: # 1.1.1.1.4.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.4.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:wheelSetGauge, era-ntg:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + cant-deficiency: # 1.1.1.1.4.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.4.2'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:cantDeficiency, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + rail-inclination: # 1.1.1.1.4.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.4.3'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:railInclination, era-ri:1%2F$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + ballast: # 1.1.1.1.4.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.4.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:hasBallast + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasBallast + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + # ------------Switches and crossings-------------- + + switch-crossing: # 1.1.1.1.5.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.5.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:tsiSwitchCrossing + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:tsiSwitchCrossing + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + minimum-wheel-diameter: # 1.1.1.1.5.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.5.2'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:minimumWheelDiameter, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + # ------------ILR / Track resistance to applied loads-------------- + + maximum-train-deceleration: # 1.1.1.1.6.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.6.1'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:maximumTrainDeceleration, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + use-of-eddy-current-brakes: # 1.1.1.1.6.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.6.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:eddyCurrentBraking, era-ecb:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + use-of-magnetic-brakes: # 1.1.1.1.6.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.6.3') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:magneticBraking, era-mb:$(ParameterValue)] + graph: ${NAMED_GRAPH} + + eddy-current-braking-conditions-document: # 1.1.1.1.6.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.Tracks, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.6.4'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:eddyCurrentBrakingConditionsDocument, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + magnetic-braking-conditions-document: # 1.1.1.1.6.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.Tracks, RINF.dbo.SOLTracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.6.5'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:magneticBrakingConditionsDocument, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + # ------------IHS / Health, safety and environment-------------- + + flange-lube-forbidden: # 1.1.1.1.7.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:flangeLubeForbidden + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:flangeLubeForbidden + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + level-crossings: # 1.1.1.1.7.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:hasLevelCrossings + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasLevelCrossings + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + acceleration-level-crossing: # 1.1.1.1.7.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.7.3') + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:accelerationLevelCrossing, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + hot-axle-box-detector-existence: # 1.1.1.1.7.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:hasHotAxleBoxDetector + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasHotAxleBoxDetector + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + hot-axle-box-detection-tsi-compliant: # 1.1.1.1.7.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.5') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:hotAxleBoxDetectorTSICompliant + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hotAxleBoxDetectorTSICompliant + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + hot-axle-box-detector-identification: # 1.1.1.1.7.6 (no data! no explanation about data format in RINF's guide) + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.6') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:hotAxleBoxDetectorIdentification, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + hot-axle-box-detector-generation: # 1.1.1.1.7.7 (no data! no explanation about data format in RINF's guide) + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.7') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:hotAxleBoxDetectorGeneration, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + hot-axle-box-detector-location: # 1.1.1.1.7.8 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, SUBSTRING(TrackParameters.Value, 2, LEN(TrackParameters.Value)) AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.7.8'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:hotAxleBoxDetectorLocation, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + hot-axle-box-detector-direction: # 1.1.1.1.7.9 (no data!) + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.9') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:hotAxleBoxDetectorDirection, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + red-lights: # 1.1.1.1.7.10 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.10') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:redLightsRequired + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:redLightsRequired + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + quieter-route: # 1.1.1.1.7.11 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.1.7.11') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:isQuietRoute + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:isQuietRoute + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + # ------------EDE/ Declarations of verification for track-------------- + + energy-system-verification: # 1.1.1.2.1.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.1.1') + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:verificationENE, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + energy-system-demonstration: # 1.1.1.2.1.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.1.2') + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:demonstrationENE, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + # ------------ECS / Contact line system-------------- + + contact-line-system: # 1.1.1.2.2.1.1 Points to SET parameter-based entity + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT DISTINCT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.LookupValueID = LookupValues.ID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.[Set] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.2.1.1'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:contactLineSystem, http://data.europa.eu/949/functionalInfrastructure/contactLineSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet)~iri] + graph: ${NAMED_GRAPH} + + maximum-wire-height: # 1.1.1.2.2.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.2.5'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:maximumContactWireHeight, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + minimum-wire-height: # 1.1.1.2.2.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.2.6'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:minimumContactWireHeight, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + # ------------EPA / Pantograph-------------- + + pantograph-tsi-compliant: # 1.1.1.2.3.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.3.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:pantographHead, era-pth:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + other-accepted-pantograph: # 1.1.1.2.3.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.3.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:pantographHead, era-pth:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + raised-pantograph-distance-speed: # 1.1.1.2.3.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.3.3'); + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:raisedPantographsDistanceAndSpeed, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + contact-strip-material: # 1.1.1.2.3.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.3.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:contactStripMaterial, era-csm:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + # ------------EOS / OCL separation sections-------------- + + phase-separation: # 1.1.1.2.4.1.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.4.1.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:phaseSeparation + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:phaseSeparation + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + phase-information: # 1.1.1.2.4.1.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.4.1.2') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:phaseInfo, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + system-separation: # 1.1.1.2.4.2.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.4.2.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:hasSystemSeparation + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasSystemSeparation + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + system-separation-info: # 1.1.1.2.4.2.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.4.2.2') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:systemSeparationInfo, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + distance-sign-to-phase-end: # 1.1.1.2.4.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.4.3') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:distSignToPhaseEnd, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + # ------------ERS / Requirements for rolling stock-------------- + + contact-force: # 1.1.1.2.5.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.2.5.2') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:permittedContactForce, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + automatic-dropping-device-required: # 1.1.1.2.5.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.2.5.3') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:automaticDroppingDeviceRequired + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:automaticDroppingDeviceRequired + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + # ------------CDE / Declarations of verification for track-------------- + + energy-system-verification: # 1.1.1.3.1.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.1.1') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:verificationCSS, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + # ------------CPE / TSI compliant train protection system (ETCS)-------------- + + etcs-level: # 1.1.1.3.2.1 points to SET parameter-based entity + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.2.1') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:etcsLevel, http://data.europa.eu/949/functionalInfrastructure/etcsLevels/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet)] + graph: ${NAMED_GRAPH} + + etcs-infill-line-access: # 1.1.1.3.2.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.2.3') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:etcsInfillLineAccess + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:etcsInfillLineAccess + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + etcs-infill-line-side: # 1.1.1.3.2.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.2.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:etcsInfill, era-etcsinfill:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + etcs-nat-packet-44: # 1.1.1.3.2.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.2.5') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:etcsNationalPacket44 + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:etcsNationalPacket44 + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + etcs-existence-restrictions-conditions: # 1.1.1.3.2.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.2.6') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:hasETCSRestrictionsConditions + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasETCSRestrictionsConditions + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + etcs-optional-functions: # 1.1.1.3.2.7 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.2.7') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:etcsOptionalFunctions, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + train-integrity-required: # 1.1.1.3.2.8 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.2.8') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:trainIntegrityOnBoardRequired + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:trainIntegrityOnBoardRequired + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + etcs-compatible: # 1.1.1.3.2.9 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.2.9') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:etcsSystemCompatibility, era-esc:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + etcs-m-version: # 1.1.1.3.2.10 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.2.10') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:etcsMVersion, era-etcsmvers:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + # ------------CRG / TSI compliant radio (GSM-R)-------------- + + gsm-r-version: # 1.1.1.3.3.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.3.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:gsmRVersion, era-gsmrv:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + gsm-r-number-active-mobile: # 1.1.1.3.3.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.3.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:gsmRActiveMobiles, era-gsmrnumactivemob:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + gsm-r-optional-function: # 1.1.1.3.3.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.3.3') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:gsmROptionalFunctions, era-gsmroptfunc:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + gsm-r-additional-information: # 1.1.1.3.3.3.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.3.3.1') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:gsmRAdditionalInfo, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + etcs-gprs: # 1.1.1.3.3.3.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.3.3.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:gprsForETCS + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:gprsForETCS + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + gprs-implementation-area: # 1.1.1.3.3.3.3 NO DATA! + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, ( SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID ) AS TO_NODE, TrackParameters.value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND Parameters.[Index] IN ('1.1.1.3.3.3.3') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND TrackParameters.[Value] is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:gprsImplementationArea, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + group-555-support: # 1.1.1.3.3.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.3.4') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:usesGroup555 + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:usesGroup555 + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + gsm-r-network-coverage: # 1.1.1.3.3.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.3.5') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:gsmrNetworkCoverage, era-gsmr:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + public-network-roaming: # 1.1.1.3.3.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.3.6') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:publicNetworkRoaming + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:publicNetworkRoaming + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + public-network-roaming-details: # 1.1.1.3.3.7 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.3.7') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:publicNetworkRoamingDetails, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + gsm-r-no-coverage: # 1.1.1.3.3.8 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.3.8') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:gsmRNoCoverage + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:gsmRNoCoverage + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + voice-radio-compatible: # 1.1.1.3.3.9 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.3.9') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:voiceRadioCompatible, era-rsc:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + data-radio-compatible: # 1.1.1.3.3.10 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.3.10') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:dataRadioCompatible, era-rsc:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + # ------------CCD / Train detection systems fully compliant with the TSI-------------- + + tsi-train-detection: # 1.1.1.3.4.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.4.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:hasTSITrainDetection + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasTSITrainDetection + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + # ------------CPO / Train protection legacy systems-------------- + + other-train-train-protection: # 1.1.1.3.5.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.5.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:hasOtherTrainProtection + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasOtherTrainProtection + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + multiple-train-protection-required: # 1.1.1.3.5.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.5.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:multipleTrainProtectionRequired + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:multipleTrainProtectionRequired + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + protection-legacy-system: # 1.1.1.3.5.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.5.3') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:protectionLegacySystem, era-tpls:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + # ------------CRS / Other radio systems-------------- + + legacy-radio-system: # 1.1.1.3.6.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.6.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:legacyRadioSystem, era-lrs:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + # ------------CTD / Train detection systems not fully compliant with the TSI-------------- + + train-detection-system: # 1.1.1.3.7.1.1 Points to SET parameter-based entity + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.1.1') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:trainDetectionSystem, http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet)~iri] + graph: ${NAMED_GRAPH} + + detection-system-specific-check-document: # 1.1.1.3.7.1.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.1.3') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:trainDetectionSystemSpecificCheckDocument, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + french-detection-limitation: # 1.1.1.3.7.1.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(TrackParameters.[Value], '+', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.1.4') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:frenchTrainDetectionSystemLimitation, era-tds:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + # ------------CTS / Transitions between systems-------------- + + switch-protect-control-warning: # 1.1.1.3.8.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.8.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:switchProtectControlWarning + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:switchProtectControlWarning + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + switch-radio-system: # 1.1.1.3.8.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.8.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:switchRadioSystem + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:switchRadioSystem + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + # ------------CEI / Parameters related to electromagnetic interferences-------------- + + magnetic-fields-tsi-compliant: # 1.1.1.3.9.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.9.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:TSIMagneticFields, era-tsi:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + traction-harmonics-tsi-compliant: # 1.1.1.3.9.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.9.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:TSITractionHarmonics, era-tsi:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + # ------------CLD / Line-side system for degraded situation-------------- + + etcs-situation: # 1.1.1.3.10.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.10.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:etcsDegradedSituation, era-etcssituation:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + other-protection-control-warning: # 1.1.1.3.10.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, replace(LTRIM(RTRIM(LookupValues.[Value])), ' ', '_') AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.10.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:otherTrainProtection, era-opcw:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + # ------------CBP / Brake related parameters-------------- + + maximum-braking-distance: # 1.1.1.3.11.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.11.1') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:maximumBrakingDistance, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + has-additional-braking-information: # 1.1.1.3.11.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.11.2') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:hasAdditionalBrakingInformation + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:hasAdditionalBrakingInformation + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + additional-braking-information-document: # 1.1.1.3.11.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.11.3') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:additionalBrakingInformationDocument, $(ParameterValue)] + graph: ${NAMED_GRAPH} + + # ------------COP / Other CCS related parameters-------------- + + tilting: # 1.1.1.3.12.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.12.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:tiltingSupported + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:tiltingSupported + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + # ------------Rules and restriction-------------- + + local-rules-or-restrictions: # 1.1.1.4.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.4.1') AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - p: era:localRulesOrRestrictions + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:localRulesOrRestrictions + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + local-rules-or-restrictions-doc-ref: # 1.1.1.4.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.4.2') AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE) + po: + - [era:localRulesOrRestrictionsDoc, $(ParameterValue)] + graph: ${NAMED_GRAPH} \ No newline at end of file diff --git a/mappings/RINF-train-detection-systems.yml b/mappings/RINF-train-detection-systems.yml new file mode 100644 index 0000000..0e0bcce --- /dev/null +++ b/mappings/RINF-train-detection-systems.yml @@ -0,0 +1,408 @@ +prefixes: + idlab-fn: "http://example.com/idlab/function/" + grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" + rdfs: "http://www.w3.org/2000/01/rdf-schema#" + xsd: "http://www.w3.org/2001/XMLSchema#" + era: "http://data.europa.eu/949/" + era-tds: "http://data.europa.eu/949/concepts/train-detection/" + era-tdssc: "http://data.europa.eu/949/concepts/train-detection-specific-checks/" + era-malvc: "http://data.europa.eu/949/concepts/min-axle-loads-per-vehicle-category/" + era-mas: "http://data.europa.eu/949/concepts/max-amount-sandings/" + era-tsi: "http://data.europa.eu/949/concepts/tsi-compliances/" + +variables: + connection: + access: &host ${RINF_HOST} + type: &typeMSSQL mssql + credentials: &credentials + username: ${RINF_USER} + password: ${RINF_PWD} + queryFormulation: &queryFormulation sql2008 + referenceFormulation: &referenceFormulation csv + +mappings: + train-detection-system: # 1.1.1.3.7.1.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.1.1') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [a, era:TrainDetectionSystem] + - [era:trainDetectionSystemType, era-tds:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + detection-system-specific-checks: # 1.1.1.3.7.1.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.1.2') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:trainDetectionSystemSpecificCheck, era-tdssc:$(ParameterValue)] + graph: ${NAMED_GRAPH} + + max-distance-tsi-compliant: # 1.1.1.3.7.2.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.2.1') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:tsiCompliantMaxDistConsecutiveAxles, era-tsi:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + max-distance-consecutive-axles: # 1.1.1.3.7.2.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.2.2') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:maxDistConsecutiveAxles, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + min-distance-consecutive-axles: # 1.1.1.3.7.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.3') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:minDistConsecutiveAxles, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + minimum-distance-first-last-axle: # 1.1.1.3.7.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.4') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:minDistFirstLastAxle, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + maximum-distance-end-train-first-axle: # 1.1.1.3.7.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.5') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:maxDistEndTrainFirstAxle, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + minimum-rim-width: # 1.1.1.3.7.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.6') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:minRimWidth, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + minimum-wheel-diameter: # 1.1.1.3.7.7 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.7') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:minWheelDiameter, $(ParameterValue), xsd:integer] + graph: ${NAMED_GRAPH} + + minimum-flange-thickness: # 1.1.1.3.7.8 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.8') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:minFlangeThickness, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + minimum-flange-height: # 1.1.1.3.7.9 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.9') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:minFlangeHeight, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + maximum-flange-height: # 1.1.1.3.7.10 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.10') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:maxFlangeHeight, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + minimum-axle-load: # 1.1.1.3.7.11 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.11') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:minAxleLoad, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + min-axle-loads-vehicle-category: # 1.1.1.3.7.11.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(TrackParameters.Value, ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.11.1') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:minAxleLoadVehicleCategory, era-malvc:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + metal-free-space-tsi-compliant: # 1.1.1.3.7.12 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.12') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:tsiCompliantMetalFreeSpace, era-tsi:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + metal-construction-tsi-compliant: # 1.1.1.3.7.13 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.13') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:tsiCompliantMetalConstruction, era-tsi:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + ferromagnetic-wheel-tsi-compliant: # 1.1.1.3.7.14 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.14') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:tsiCompliantFerromagneticWheel, era-tsi:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + max-impedance-wheelset-tsi-compliant: # 1.1.1.3.7.15.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.15.1') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:tsiCompliantMaxImpedanceWheelset, era-tsi:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + maximum-impedance-wheelset: # 1.1.1.3.7.15.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, TrackParameters.Value AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND SOLTracks.VersionID = TrackParameters.VersionID AND TrackParameters.ParameterID = Parameters.ID AND TrackParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.3.7.15.2') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/sectionsOfLine/$(UICCode)_$(FROM_NODE)_$(TO_NODE) + po: + - [era:maxImpedanceWheelset, $(ParameterValue), xsd:double] + graph: ${NAMED_GRAPH} + + sanding-tsi-compliant: # 1.1.1.3.7.16 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.16') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:tsiCompliantSanding, era-tsi:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + maximum-sanding-output: # 1.1.1.3.7.17 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.17') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:maxSandingOutput, era-mas:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + sand-driver-override: # 1.1.1.3.7.18 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode,(SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.18') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - p: era:requiredSandingOverride + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:requiredSandingOverride + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + sand-characteristics-tsi-compliant: # 1.1.1.3.7.19 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.19') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:tsiCompliantSandCharacteristics, era-tsi:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + flange-lube-rules: # 1.1.1.3.7.20 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode,(SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, LookupValues.[Value] AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.20') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND LookupValues.ID is not null AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - p: era:flangeLubeRules + o: + value: "true" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "Y"] + - p: era:flangeLubeRules + o: + value: "false" + datatype: "xsd:boolean" + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(ParameterValue)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + composite-brake-blocks-tsi-compliant: # 1.1.1.3.7.21 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.21') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:tsiCompliantCompositeBrakeBlocks, era-tsi:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + shunt-devices-tsi-compliant: # 1.1.1.3.7.22 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.22') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:tsiCompliantShuntDevices, era-tsi:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} + + rst-shunt-impedance-tsi-compliant: # 1.1.1.3.7.23 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT UICLines.UICCode, Tracks.UUID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, REPLACE(LookupValues.[Value], ' ', '_') AS ParameterValue, TrackParameters.[Set] AS GroupSet FROM RINF.dbo.LineEdges, RINF.dbo.SOLTracks, RINF.dbo.Tracks, RINF.dbo.SectionOfLines, RINF.dbo.UICLines, RINF.dbo.TrackParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SOLTracks.TrackID = TrackParameters.TrackID AND TrackParameters.ParameterId = Parameters.ID AND TrackParameters.LookupValueID = LookupValues.ID AND Parameters.[Index] IN ('1.1.1.3.7.23') AND TrackParameters.[Set] IS NOT NULL AND SOLTracks.SectionOfLineID = SectionOfLines.ID AND SOLTracks.VersionID = SectionOfLines.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID; + s: http://data.europa.eu/949/functionalInfrastructure/trainDetectionSystems/$(UICCode)_$(FROM_NODE)_$(UUID)_$(TO_NODE)_$(GroupSet) + po: + - [era:tsiCompliantRSTShuntImpedance, era-tsi:$(ParameterValue)~iri] + graph: ${NAMED_GRAPH} \ No newline at end of file diff --git a/mappings/RINF-tunnels.yml b/mappings/RINF-tunnels.yml index 9856d63..93cbfaf 100644 --- a/mappings/RINF-tunnels.yml +++ b/mappings/RINF-tunnels.yml @@ -5,8 +5,8 @@ prefixes: wgs: "http://www.w3.org/2003/01/geo/wgs84_pos#" geosparql: "http://www.opengis.net/ont/geosparql#" rdfs: "http://www.w3.org/2000/01/rdf-schema#" - era: "http://era.europa.eu/ns#" - era-rsf: "http://era.europa.eu/concepts/rolling-stock-fire#" + era: "http://data.europa.eu/949/" + era-rsf: "http://data.europa.eu/949/concepts/rolling-stock-fire/" variables: connection: access: &host ${RINF_HOST} @@ -18,22 +18,47 @@ variables: referenceFormulation: &referenceFormulation csv mappings: - tunnel: + sol-tunnel: sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, Tunnels.UUID AS TUNNEL_LABEL, REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, Tracks.UUID AS TRACK_ID, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, ROUND((ABS(Tunnels.EndKm - Tunnels.StartKm) * 1000), 2) AS TunnelLength, Tunnels.StartLat, Tunnels.StartLong, Tunnels.EndLat, Tunnels.EndLong, MemberStates.Code FROM RINF.dbo.LineEdges, RINF.dbo.SectionOfLines, RINF.dbo.SOLTracks, RINF.dbo.TrackTunnels, RINF.dbo.Tracks, RINF.dbo.UICLines, RINF.dbo.Tunnels, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.ID = SOLTracks.SectionOfLineID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SectionOfLines.VersionID = SOLTracks.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SOLTracks.TrackID = TrackTunnels.TrackID AND SOLTracks.VersionID = TrackTunnels.VersionID AND TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; - s: http://era.europa.eu/funtionalInfrastructure/tunnels#$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat) + query: SELECT UICLines.UICCode, Tunnels.IMCode, Tunnels.UUID AS TUNNEL_LABEL, REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, Tracks.UUID AS TRACK_ID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, Tunnels.StartLat, Tunnels.StartLong, Tunnels.EndLat, Tunnels.EndLong, MemberStates.Code FROM RINF.dbo.LineEdges, RINF.dbo.SectionOfLines, RINF.dbo.SOLTracks, RINF.dbo.TrackTunnels, RINF.dbo.Tracks, RINF.dbo.UICLines, RINF.dbo.Tunnels, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.ID = SOLTracks.SectionOfLineID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SectionOfLines.VersionID = SOLTracks.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SOLTracks.TrackID = TrackTunnels.TrackID AND SOLTracks.VersionID = TrackTunnels.VersionID AND TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat) + po: + - [a, era:Tunnel] + - [rdfs:label, $(TUNNEL_LABEL)] + - [era:imCode, $(IMCode)] # 1.1.1.1.8.1 + - [era:tunnelIdentification, $(TUNNEL_LABEL)] # 1.1.1.1.8.2 + - [era:startLocation, http://data.europa.eu/949/locations/$(StartLong)/$(StartLat)~iri] # 1.1.1.1.8.3 + - [era:endLocation, http://data.europa.eu/949/locations/$(EndLong)/$(EndLat)~iri] # 1.1.1.1.8.4 + - [era:netElement, http://data.europa.eu/949/topology/netElements/$(UICCode)_$(FROM_NODE)_$(TRACK_ID)_$(TO_NODE)~iri] + - p: era:inCountry + o: + - mapping: eu-country + condition: + function: equal + parameters: + - [str1, $(Code)] + - [str2, $(code)] + graph: ${NAMED_GRAPH} + + op-track-tunnel: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT Tunnels.UUID AS TUNNEL_LABEL, Tunnels.IMCode, REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, Tracks.UUID AS TRACK_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, MemberStates.Code FROM RINF.dbo.OPTracks, RINF.dbo.TrackTunnels, RINF.dbo.Tracks, RINF.dbo.OperationalPoints, RINF.dbo.Tunnels, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TrackTunnels.TrackID = OPTracks.TrackID AND TrackTunnels.VersionID = OPTracks.VersionID AND OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND Tracks.IsFuturePlanning = 0; + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(TRACK_ID)_$(TUNNEL_URI) po: - [a, era:Tunnel] - [rdfs:label, $(TUNNEL_LABEL)] - - [era:length, $(TunnelLength)] - - [era:startLocation, http://era.europa.eu/location#GEO/$(StartLong)/$(StartLat)~iri] - - [era:endLocation, http://era.europa.eu/location#GEO/$(EndLong)/$(EndLat)~iri] - - [era:netElement, http://era.europa.eu/topology/netElements#$(UICCode)_$(FROM_NODE)_$(TRACK_ID)_$(TO_NODE)~iri] + - [era:imCode, $(IMCode)] # 1.2.1.0.5.1 + - [era:tunnelIdentification, $(TUNNEL_LABEL)] # 1.2.1.0.5.2 - p: era:inCountry o: - mapping: eu-country @@ -42,22 +67,72 @@ mappings: parameters: - [str1, $(Code)] - [str2, $(code)] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} + + siding-tunnel: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT Tunnels.UUID AS TUNNEL_LABEL, REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, Sidings.UUID AS SIDING_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, MemberStates.Code, Tunnels.IMCode FROM RINF.dbo.Sidings, RINF.dbo.SidingTunnels, RINF.dbo.OperationalPoints, RINF.dbo.Tunnels, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE SidingTunnels.TunnelID = Tunnels.ID AND SidingTunnels.VersionID = Tunnels.VersionID AND SidingTunnels.SidingID = Sidings.ID AND SidingTunnels.VersionID = Sidings.VersionID AND Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND Sidings.IsFuturePlanning = 0; + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(SIDING_ID)_$(TUNNEL_URI) + po: + - [a, era:Tunnel] + - [rdfs:label, $(TUNNEL_LABEL)] + - [era:imCode, $(IMCode)] # 1.2.2.0.5.1 + - [era:tunnelIdentification, $(TUNNEL_LABEL)] # 1.2.2.0.5.2 + - p: era:inCountry + o: + - mapping: eu-country + condition: + function: equal + parameters: + - [str1, $(Code)] + - [str2, $(code)] + graph: ${NAMED_GRAPH} - tunnel-reference: + sol-tunnel-reference: sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT UICLines.UICCode, Tunnels.UUID AS TUNNEL_LABEL, REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, Tracks.UUID AS TRACK_ID, (SELECT TRIM(UOPID) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, ROUND((ABS(Tunnels.EndKm - Tunnels.StartKm) * 1000), 2) AS TunnelLength, Tunnels.StartLat, Tunnels.StartLong, Tunnels.EndLat, Tunnels.EndLong, MemberStates.Code FROM RINF.dbo.LineEdges, RINF.dbo.SectionOfLines, RINF.dbo.SOLTracks, RINF.dbo.TrackTunnels, RINF.dbo.Tracks, RINF.dbo.UICLines, RINF.dbo.Tunnels, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.ID = SOLTracks.SectionOfLineID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SectionOfLines.VersionID = SOLTracks.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SOLTracks.TrackID = TrackTunnels.TrackID AND SOLTracks.VersionID = TrackTunnels.VersionID AND TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; - s: http://era.europa.eu/topology/netElements#$(UICCode)_$(FROM_NODE)_$(TRACK_ID)_$(TO_NODE) + query: SELECT UICLines.UICCode, Tunnels.UUID AS TUNNEL_LABEL, REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeStartID AND OperationalPoints.VersionID=LineNodes.VersionID) AS FROM_NODE, Tracks.UUID AS TRACK_ID, (SELECT LTRIM(RTRIM(UOPID)) FROM RINF.dbo.OperationalPoints, RINF.dbo.LineNodes WHERE OperationalPointID=OperationalPoints.ID AND LineNodes.ID=LineEdges.LineNodeEndID AND OperationalPoints.VersionID=LineNodes.VersionID) AS TO_NODE, ROUND((ABS(Tunnels.EndKm - Tunnels.StartKm) * 1000), 2) AS TunnelLength, Tunnels.StartLat, Tunnels.StartLong, Tunnels.EndLat, Tunnels.EndLong, MemberStates.Code FROM RINF.dbo.LineEdges, RINF.dbo.SectionOfLines, RINF.dbo.SOLTracks, RINF.dbo.TrackTunnels, RINF.dbo.Tracks, RINF.dbo.UICLines, RINF.dbo.Tunnels, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE LineEdges.ID = SectionOfLines.LineEdgeID AND LineEdges.VersionID = SectionOfLines.VersionID AND SectionOfLines.ID = SOLTracks.SectionOfLineID AND SectionOfLines.UICLineID = UICLines.ID AND SectionOfLines.VersionID = UICLines.VersionID AND SectionOfLines.VersionID = SOLTracks.VersionID AND SOLTracks.TrackID = Tracks.ID AND SOLTracks.VersionID = Tracks.VersionID AND SOLTracks.TrackID = TrackTunnels.TrackID AND SOLTracks.VersionID = TrackTunnels.VersionID AND TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; + s: http://data.europa.eu/949/topology/netElements/$(UICCode)_$(FROM_NODE)_$(TRACK_ID)_$(TO_NODE) po: - - [era:passesThroughTunnel, http://era.europa.eu/funtionalInfrastructure/tunnels#$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat)~iri] - graphs: ${NAMED_GRAPH} + - [era:passesThroughTunnel, http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat)~iri] + graph: ${NAMED_GRAPH} + + op-track-tunnel-reference: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT Tunnels.UUID AS TUNNEL_LABEL, REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, Tracks.UUID AS TRACK_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, MemberStates.Code FROM RINF.dbo.OPTracks, RINF.dbo.TrackTunnels, RINF.dbo.Tracks, RINF.dbo.OperationalPoints, RINF.dbo.Tunnels, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TrackTunnels.TrackID = OPTracks.TrackID AND TrackTunnels.VersionID = OPTracks.VersionID AND OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND Tracks.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/tracks/$(UOPID)_$(TRACK_ID) + po: + - [era:passesThroughTunnel, http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(TRACK_ID)_$(TUNNEL_URI)~iri] + graph: ${NAMED_GRAPH} + + siding-tunnel-reference: + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT Tunnels.UUID AS TUNNEL_LABEL, REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, Sidings.UUID AS SIDING_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID, MemberStates.Code, Tunnels.IMCode FROM RINF.dbo.Sidings, RINF.dbo.SidingTunnels, RINF.dbo.OperationalPoints, RINF.dbo.Tunnels, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE SidingTunnels.TunnelID = Tunnels.ID AND SidingTunnels.VersionID = Tunnels.VersionID AND SidingTunnels.SidingID = Sidings.ID AND SidingTunnels.VersionID = Sidings.VersionID AND Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND Sidings.IsFuturePlanning = 0; + s: http://data.europa.eu/949/functionalInfrastructure/sidings/$(UOPID)_$(SIDING_ID) + po: + - [era:passesThroughTunnel, http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(SIDING_ID)_$(TUNNEL_URI)~iri] + graph: ${NAMED_GRAPH} - start-location: + start-location: # Only available for SoL tunnels sources: - access: *host type: *typeMSSQL @@ -65,16 +140,16 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT Tunnels.StartLat, Tunnels.StartLong FROM RINF.dbo.SectionOfLines, RINF.dbo.SOLTracks, RINF.dbo.TrackTunnels, RINF.dbo.Tunnels WHERE SectionOfLines.ID = SOLTracks.SectionOfLineID AND SectionOfLines.VersionID = SOLTracks.VersionID AND SOLTracks.TrackID = TrackTunnels.TrackID AND SOLTracks.VersionID = TrackTunnels.VersionID AND TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID; - s: http://era.europa.eu/location#GEO/$(StartLong)/$(StartLat) + s: http://data.europa.eu/949/locations/$(StartLong)/$(StartLat) po: - [a, wgs:Point] - [a, geosparql:Geometry] - [wgs:lat, $(StartLat), xsd:double] - [wgs:long, $(StartLong), xsd:double] - [geosparql:asWKT, POINT ($(StartLong) $(StartLat)), geosparql:wktLiteral] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} - end-location: + end-location: # Only available for SoL tunnels sources: - access: *host type: *typeMSSQL @@ -82,21 +157,147 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT Tunnels.EndLat, Tunnels.EndLong FROM RINF.dbo.SectionOfLines, RINF.dbo.SOLTracks, RINF.dbo.TrackTunnels, RINF.dbo.Tunnels WHERE SectionOfLines.ID = SOLTracks.SectionOfLineID AND SectionOfLines.VersionID = SOLTracks.VersionID AND SOLTracks.TrackID = TrackTunnels.TrackID AND SOLTracks.VersionID = TrackTunnels.VersionID AND TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID; - s: http://era.europa.eu/location#GEO/$(EndLong)/$(EndLat) + s: http://data.europa.eu/949/locations/$(EndLong)/$(EndLat) po: - [a, wgs:Point] - [a, geosparql:Geometry] - [wgs:lat, $(EndLat), xsd:double] - [wgs:long, $(EndLong), xsd:double] - [geosparql:asWKT, POINT ($(EndLong) $(EndLat)), geosparql:wktLiteral] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} eu-country: sources: - ["data/countries.csv~csv"] s: $(eu) - # -------------------Tunnel---------------------- + # -------------------SoL Tunnel---------------------- + + verification: # 1.1.1.1.8.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, TunnelParameters.[Value], Tunnels.StartLat, Tunnels.StartLong, Tunnels.EndLat, Tunnels.EndLong, MemberStates.Code FROM RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] = '1.1.1.1.8.5' AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND TunnelParameters.[Value] is not null + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat) + po: + - [era:verificationSRT, $(Value)] + graph: ${NAMED_GRAPH} + + demonstration: # 1.1.1.1.8.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, TunnelParameters.[Value], Tunnels.StartLat, Tunnels.StartLong, Tunnels.EndLat, Tunnels.EndLong, MemberStates.Code FROM RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] = '1.1.1.1.8.6' AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND TunnelParameters.[Value] is not null + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat) + po: + - [era:demonstrationSRT, $(Value)] + graph: ${NAMED_GRAPH} + + length: # 1.1.1.1.8.7 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, TunnelParameters.[Value], Tunnels.StartLat, Tunnels.StartLong, Tunnels.EndLat, Tunnels.EndLong, MemberStates.Code FROM RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] = '1.1.1.1.8.7' AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND TunnelParameters.[Value] is not null + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat) + po: + - [era:length, $(Value), xsd:double] + graph: ${NAMED_GRAPH} + + cross-section-area: # 1.1.1.1.8.8 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, TunnelParameters.[Value], Tunnels.StartLat, Tunnels.StartLong, Tunnels.EndLat, Tunnels.EndLong, MemberStates.Code FROM RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] = '1.1.1.1.8.8' AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND TunnelParameters.[Value] is not null + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat) + po: + - [era:crossSectionArea, $(Value), xsd:integer] + graph: ${NAMED_GRAPH} + + compliance-inf-tsi: # 1.1.1.1.8.8.1 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, LookupValues.[Value], Tunnels.StartLat, Tunnels.StartLong, Tunnels.EndLat, Tunnels.EndLong, MemberStates.Code FROM RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] = '1.1.1.1.8.8.1' AND TunnelParameters.LookupValueID = LookupValues.ID AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND LookupValues.[Value] is not null + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat) + po: + - p: era:complianceInfTsi + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "Y"] + - p: era:complianceInfTsi + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + + document-reference: # 1.1.1.1.8.8.2 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, TunnelParameters.[Value], Tunnels.StartLat, Tunnels.StartLong, Tunnels.EndLat, Tunnels.EndLong, MemberStates.Code FROM RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] = '1.1.1.1.8.8.2' AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND TunnelParameters.[Value] is not null + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat) + po: + - [era:tunnelDocRef, $(Value)] + graph: ${NAMED_GRAPH} + + emergency-plan: # 1.1.1.1.8.9 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, LookupValues.[Value], Tunnels.StartLat, Tunnels.StartLong, Tunnels.EndLat, Tunnels.EndLong, MemberStates.Code FROM RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] = '1.1.1.1.8.9' AND TunnelParameters.LookupValueID = LookupValues.ID AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID AND LookupValues.[Value] is not null + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat) + po: + - p: era:hasEmergencyPlan + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "Y"] + - p: era:hasEmergencyPlan + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} required-rolling-stock-fire-category: # 1.1.1.1.8.10 sources: @@ -106,7 +307,7 @@ mappings: queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, LookupValues.[Value], Tunnels.StartLat, Tunnels.StartLong, Tunnels.EndLat, Tunnels.EndLong, MemberStates.Code FROM RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] = '1.1.1.1.8.10' AND TunnelParameters.LookupValueID = LookupValues.ID AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; - s: http://era.europa.eu/funtionalInfrastructure/tunnels#$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat) + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat) po: - p: era:rollingStockFireCategory o: era-rsf:a~iri @@ -129,18 +330,282 @@ mappings: parameters: - [grel:valueParameter, $(Value)] - [grel:valueParameter2, "none"] - graphs: ${NAMED_GRAPH} + graph: ${NAMED_GRAPH} + + + sol-required-national-rolling-stock-fire-category: # 1.1.1.1.8.11 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, TunnelParameters.[Value], Tunnels.StartLat, Tunnels.StartLong, Tunnels.EndLat, Tunnels.EndLong, MemberStates.Code FROM RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND TunnelParameters.[Value] IS NOT NULL AND Parameters.[Index] IN ('1.1.1.1.8.11') AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat) + po: + - [era:nationalRollingStockFireCategory, $(Value)] + graph: ${NAMED_GRAPH} + + # -------------------OP Track Tunnel---------------------- + opt-verification: # 1.2.1.0.5.3 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, TunnelParameters.[Value], Tracks.UUID AS TRACK_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID FROM RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.Tracks, RINF.dbo.OPTracks, RINF.dbo.OperationalPoints WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TrackTunnels.TrackID = OPTracks.TrackID AND TrackTunnels.VersionID = OPTracks.VersionID AND OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterID = Parameters.ID AND Parameters.[Index] IN ('1.2.1.0.5.3') AND TunnelParameters.[Value] IS NOT NULL + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(TRACK_ID)_$(TUNNEL_URI) + po: + - [era:verificationSRT, $(Value)] + graph: ${NAMED_GRAPH} + + opt-demonstration: # 1.2.1.0.5.4 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, TunnelParameters.[Value], Tracks.UUID AS TRACK_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID FROM RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.Tracks, RINF.dbo.OPTracks, RINF.dbo.OperationalPoints WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TrackTunnels.TrackID = OPTracks.TrackID AND TrackTunnels.VersionID = OPTracks.VersionID AND OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterID = Parameters.ID AND Parameters.[Index] IN ('1.2.1.0.5.3') AND TunnelParameters.[Value] IS NOT NULL + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(TRACK_ID)_$(TUNNEL_URI) + po: + - [era:demonstrationSRT, $(Value)] + graph: ${NAMED_GRAPH} + + opt-length: # 1.2.1.0.5.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, TunnelParameters.[Value], Tracks.UUID AS TRACK_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID FROM RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.Tracks, RINF.dbo.OPTracks, RINF.dbo.OperationalPoints WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TrackTunnels.TrackID = OPTracks.TrackID AND TrackTunnels.VersionID = OPTracks.VersionID AND OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterID = Parameters.ID AND Parameters.[Index] IN ('1.2.1.0.5.5') AND TunnelParameters.[Value] IS NOT NULL + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(TRACK_ID)_$(TUNNEL_URI) + po: + - [era:length, $(Value), xsd:double] + graph: ${NAMED_GRAPH} + + opt-emergency-plan: # 1.2.1.0.5.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, LookupValues.[Value], Tracks.UUID AS TRACK_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID FROM RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues, RINF.dbo.Tracks, RINF.dbo.OPTracks, RINF.dbo.OperationalPoints WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TrackTunnels.TrackID = OPTracks.TrackID AND TrackTunnels.VersionID = OPTracks.VersionID AND OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] IN ('1.2.1.0.5.6') AND TunnelParameters.LookupValueID IS NOT NULL AND TunnelParameters.LookupValueID = LookupValues.ID; + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(TRACK_ID)_$(TUNNEL_URI) + po: + - p: era:hasEmergencyPlan + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "Y"] + - p: era:hasEmergencyPlan + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + opt-required-rolling-stock-fire-category: # 1.2.1.0.5.7 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, LookupValues.[Value], Tracks.UUID AS TRACK_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID FROM RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues, RINF.dbo.Tracks, RINF.dbo.OPTracks, RINF.dbo.OperationalPoints WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TrackTunnels.TrackID = OPTracks.TrackID AND TrackTunnels.VersionID = OPTracks.VersionID AND OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] IN ('1.2.1.0.5.7') AND TunnelParameters.LookupValueID IS NOT NULL AND TunnelParameters.LookupValueID = LookupValues.ID; + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(TRACK_ID)_$(TUNNEL_URI) + po: + - p: era:rollingStockFireCategory + o: era-rsf:a~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "A"] + - p: era:rollingStockFireCategory + o: era-rsf:b~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "B"] + - p: era:rollingStockFireCategory + o: era-rsf:none~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "none"] + graph: ${NAMED_GRAPH} + + opt-required-national-rolling-stock-fire-category: # 1.2.1.0.5.8 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, TunnelParameters.[Value], Tracks.UUID AS TRACK_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID FROM RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.Tracks, RINF.dbo.OPTracks, RINF.dbo.OperationalPoints WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TrackTunnels.TrackID = OPTracks.TrackID AND TrackTunnels.VersionID = OPTracks.VersionID AND OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterID = Parameters.ID AND Parameters.[Index] IN ('1.2.1.0.5.8') AND TunnelParameters.[Value] IS NOT NULL + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(TRACK_ID)_$(TUNNEL_URI) + po: + - [era:nationalRollingStockFireCategory, $(Value)] + graph: ${NAMED_GRAPH} + + opt-diesel-therm-allowed: # 1.2.1.0.5.9 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, LookupValues.[Value], Tracks.UUID AS TRACK_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID FROM RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues, RINF.dbo.Tracks, RINF.dbo.OPTracks, RINF.dbo.OperationalPoints WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TrackTunnels.TrackID = OPTracks.TrackID AND TrackTunnels.VersionID = OPTracks.VersionID AND OPTracks.TrackID = Tracks.ID AND OPTracks.VersionID = Tracks.VersionID AND OPTracks.OperationalPointID = OperationalPoints.ID AND OPTracks.VersionID = OperationalPoints.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] IN ('1.2.1.0.5.9') AND TunnelParameters.LookupValueID IS NOT NULL AND TunnelParameters.LookupValueID = LookupValues.ID; + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(TRACK_ID)_$(TUNNEL_URI) + po: + - p: era:dieselThermalAllowed + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "Y"] + - p: era:dieselThermalAllowed + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + # -------------------Sidings Tunnel---------------------- + + siding-verification: # 1.2.2.0.5.3 (No data!) + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, TunnelParameters.[Value], Sidings.UUID AS SIDING_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID FROM RINF.dbo.SidingTunnels, RINF.dbo.Tunnels, RINF.dbo.Sidings, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.OperationalPoints WHERE SidingTunnels.TunnelID = Tunnels.ID AND SidingTunnels.VersionID = Tunnels.VersionID AND SidingTunnels.SidingID = Sidings.ID AND SidingTunnels.VersionID = Sidings.VersionID AND Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND TunnelParameters.TunnelID = Tunnels.ID AND TunnelParameters.VersionID = Tunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] IN ('1.2.2.0.5.3') AND TunnelParameters.[Value] IS NOT NULL; + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(SIDING_ID)_$(TUNNEL_URI) + po: + - [era:verificationSRT, $(Value)] + graph: ${NAMED_GRAPH} + + siding-demonstration: # 1.2.2.0.5.4 (No data!) + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, TunnelParameters.[Value], Sidings.UUID AS SIDING_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID FROM RINF.dbo.SidingTunnels, RINF.dbo.Tunnels, RINF.dbo.Sidings, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.OperationalPoints WHERE SidingTunnels.TunnelID = Tunnels.ID AND SidingTunnels.VersionID = Tunnels.VersionID AND SidingTunnels.SidingID = Sidings.ID AND SidingTunnels.VersionID = Sidings.VersionID AND Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND TunnelParameters.TunnelID = Tunnels.ID AND TunnelParameters.VersionID = Tunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] IN ('1.2.2.0.5.4') AND TunnelParameters.[Value] IS NOT NULL; + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(SIDING_ID)_$(TUNNEL_URI) + po: + - [era:demonstrationSRT, $(Value)] + graph: ${NAMED_GRAPH} + + siding-length: # 1.2.2.0.5.5 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, TunnelParameters.[Value], Sidings.UUID AS SIDING_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID FROM RINF.dbo.SidingTunnels, RINF.dbo.Tunnels, RINF.dbo.Sidings, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.OperationalPoints WHERE SidingTunnels.TunnelID = Tunnels.ID AND SidingTunnels.VersionID = Tunnels.VersionID AND SidingTunnels.SidingID = Sidings.ID AND SidingTunnels.VersionID = Sidings.VersionID AND Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND TunnelParameters.TunnelID = Tunnels.ID AND TunnelParameters.VersionID = Tunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] IN ('1.2.2.0.5.5') AND TunnelParameters.[Value] IS NOT NULL; + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(SIDING_ID)_$(TUNNEL_URI) + po: + - [era:length, $(Value), xsd:double] + graph: ${NAMED_GRAPH} + + siding-emergency-plan: # 1.2.2.0.5.6 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, LookupValues.[Value], Sidings.UUID AS SIDING_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID FROM RINF.dbo.SidingTunnels, RINF.dbo.Tunnels, RINF.dbo.Sidings, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues, RINF.dbo.OperationalPoints WHERE SidingTunnels.TunnelID = Tunnels.ID AND SidingTunnels.VersionID = Tunnels.VersionID AND SidingTunnels.SidingID = Sidings.ID AND SidingTunnels.VersionID = Sidings.VersionID AND Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND TunnelParameters.TunnelID = Tunnels.ID AND TunnelParameters.VersionID = Tunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] IN ('1.2.2.0.5.6') AND TunnelParameters.LookupValueID IS NOT NULL AND TunnelParameters.LookupValueID = LookupValues.ID; + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(SIDING_ID)_$(TUNNEL_URI) + po: + - p: era:hasEmergencyPlan + o: + value: "true" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "Y"] + - p: era:hasEmergencyPlan + o: + value: "false" + datatype: xsd:boolean + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "N"] + graph: ${NAMED_GRAPH} + + siding-required-rolling-stock-fire-category: # 1.2.2.0.5.7 + sources: + - access: *host + type: *typeMSSQL + credentials: *credentials + queryFormulation: *queryFormulation + referenceFormulation: *referenceFormulation + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, LookupValues.[Value], Sidings.UUID AS SIDING_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID FROM RINF.dbo.SidingTunnels, RINF.dbo.Tunnels, RINF.dbo.Sidings, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues, RINF.dbo.OperationalPoints WHERE SidingTunnels.TunnelID = Tunnels.ID AND SidingTunnels.VersionID = Tunnels.VersionID AND SidingTunnels.SidingID = Sidings.ID AND SidingTunnels.VersionID = Sidings.VersionID AND Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND TunnelParameters.TunnelID = Tunnels.ID AND TunnelParameters.VersionID = Tunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] IN ('1.2.2.0.5.7') AND TunnelParameters.LookupValueID IS NOT NULL AND TunnelParameters.LookupValueID = LookupValues.ID; + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(SIDING_ID)_$(TUNNEL_URI) + po: + - p: era:rollingStockFireCategory + o: era-rsf:a~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "A"] + - p: era:rollingStockFireCategory + o: era-rsf:b~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "B"] + - p: era:rollingStockFireCategory + o: era-rsf:none~iri + condition: + function: idlab-fn:equal + parameters: + - [grel:valueParameter, $(Value)] + - [grel:valueParameter2, "none"] + graph: ${NAMED_GRAPH} - required-national-rolling-stock-fire-category: # 1.1.1.1.8.11 (no data!) + siding-required-national-rolling-stock-fire-category: # 1.2.2.0.5.8 sources: - access: *host type: *typeMSSQL credentials: *credentials queryFormulation: *queryFormulation referenceFormulation: *referenceFormulation - query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, LookupValues.[Value], Tunnels.StartLat, Tunnels.StartLong, Tunnels.EndLat, Tunnels.EndLong, MemberStates.Code FROM RINF.dbo.TrackTunnels, RINF.dbo.Tunnels, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.LookupValues, RINF.dbo.MemberStateVersions, RINF.dbo.MemberStates WHERE TrackTunnels.TunnelID = Tunnels.ID AND TrackTunnels.VersionID = Tunnels.VersionID AND TunnelParameters.TunnelID = TrackTunnels.TunnelID AND TunnelParameters.VersionID = TrackTunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] = '1.1.1.1.8.11' AND TunnelParameters.LookupValueID = LookupValues.ID AND Tunnels.VersionID = MemberStateVersions.ID AND MemberStateVersions.MemberStateID = MemberStates.ID; - s: http://era.europa.eu/funtionalInfrastructure/tunnels#$(TUNNEL_URI)_$(StartLong)$(StartLat)_$(EndLong)$(EndLat) + query: SELECT REPLACE(Tunnels.UUID, ' ', '_') AS TUNNEL_URI, TunnelParameters.[Value], Sidings.UUID AS SIDING_ID, LTRIM(RTRIM(OperationalPoints.UOPID)) AS UOPID FROM RINF.dbo.SidingTunnels, RINF.dbo.Tunnels, RINF.dbo.Sidings, RINF.dbo.TunnelParameters, RINF.dbo.Parameters, RINF.dbo.OperationalPoints WHERE SidingTunnels.TunnelID = Tunnels.ID AND SidingTunnels.VersionID = Tunnels.VersionID AND SidingTunnels.SidingID = Sidings.ID AND SidingTunnels.VersionID = Sidings.VersionID AND Sidings.OperationalPointID = OperationalPoints.ID AND Sidings.VersionID = OperationalPoints.VersionID AND TunnelParameters.TunnelID = Tunnels.ID AND TunnelParameters.VersionID = Tunnels.VersionID AND TunnelParameters.ParameterId = Parameters.ID AND Parameters.[Index] IN ('1.2.2.0.5.8') AND TunnelParameters.[Value] IS NOT NULL; + s: http://data.europa.eu/949/funtionalInfrastructure/tunnels/$(UOPID)_$(SIDING_ID)_$(TUNNEL_URI) po: - [era:nationalRollingStockFireCategory, $(Value)] - graphs: ${NAMED_GRAPH} \ No newline at end of file + graph: ${NAMED_GRAPH} \ No newline at end of file diff --git a/mappings/test.yml.bkp b/mappings/test.yml.bkp new file mode 100644 index 0000000..f55f7d2 --- /dev/null +++ b/mappings/test.yml.bkp @@ -0,0 +1,11 @@ +############## TODO: + + # ------------Define s and link to correspondent micro s-------------- + + #railml-stop-locations: + # sources: + # - [data/norway-railml/RUB.railml~xpath, ""] + + # ------------Define s and link to correspondent micro s-------------- + + # ------------Link NetElements across RailML files via elements -------------- \ No newline at end of file diff --git a/run.sh b/run.sh index ba55041..6117c8a 100644 --- a/run.sh +++ b/run.sh @@ -4,7 +4,7 @@ envsub ./mappings/ERATV-manufacturers.yml envsub ./mappings/ERATV-vehicle-types.yml envsub ./mappings/RINF-ERATV-skos-concepts.yml -envsub ./mappings/RINF-line-national-ids.yml +envsub ./mappings/RINF-national-lines.yml envsub ./mappings/RINF-link-meso-micro.yml envsub ./mappings/RINF-meso-net-elements.yml envsub ./mappings/RINF-meso-net-relations.yml @@ -13,6 +13,16 @@ envsub ./mappings/RINF-micro-net-relations.yml envsub ./mappings/RINF-operational-points.yml envsub ./mappings/RINF-sections-of-line.yml envsub ./mappings/RINF-tunnels.yml +envsub ./mappings/RINF-platforms.yml +envsub ./mappings/RINF-contact-line-systems.yml +envsub ./mappings/RINF-etcs-levels.yml +envsub ./mappings/RINF-train-detection-systems.yml +envsub ./mappings/RINF-op-tracks.yml +envsub ./mappings/RINF-sol-tracks.yml +envsub ./mappings/RINF-sidings.yml +envsub ./mappings/RINF-op-applicability.yml +envsub ./mappings/RINF-sol-not-applicable.yml +envsub ./mappings/RINF-sol-not-yet-available.yml # Execute mapping process ./map-turtle.sh ${KG_VERSION} \ No newline at end of file