Skip to content

Commit

Permalink
Merge pull request #11 from julianrojas87/dev
Browse files Browse the repository at this point in the history
Fix vehicle mappings for contact strip materials
  • Loading branch information
julianrojas87 authored Sep 30, 2020
2 parents 22fb35c + 00da35e commit f31a6e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mappings/vehicles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ mappings:
credentials: *credentials
queryFormulation: *queryFormulation
referenceFormulation: *referenceFormulation
query: SELECT VehicleTypes.ID, 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'));
query: SELECT VehicleTypes.ID, 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/implementation#V_$(ID)
po:
- p: era:contactStripMaterial
Expand Down
2 changes: 1 addition & 1 deletion rml/vehicles_rml.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -3895,7 +3895,7 @@
:map_contact-strip-material_0 rml:logicalSource :source_45.
:source_45 a rml:LogicalSource;
rml:source :database_44;
rml:query "SELECT VehicleTypes.ID, 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'));".
rml:query "SELECT VehicleTypes.ID, 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'));".
:database_44 a d2rq:Database;
d2rq:jdbcDSN "//10.10.160.21:1433";
d2rq:jdbcDriver "com.microsoft.sqlserver.jdbc.SQLServerDriver";
Expand Down

0 comments on commit f31a6e9

Please sign in to comment.