siri-xsd 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +47 -0
- data/README.md +23 -0
- data/bitbucket-pipelines.yml +18 -0
- data/exe/siri-xsd-validate +42 -0
- data/lib/siri/xsd/validator.rb +62 -0
- data/lib/siri/xsd/version.rb +5 -0
- data/lib/siri/xsd.rb +10 -0
- data/siri-xsd.gemspec +35 -0
- data/vendor/xsd/acsb/acsb_accessibility.xsd +138 -0
- data/vendor/xsd/acsb/acsb_all.xsd +11 -0
- data/vendor/xsd/acsb/acsb_limitations.xsd +141 -0
- data/vendor/xsd/acsb/acsb_passengerMobility.xsd +212 -0
- data/vendor/xsd/datex2/DATEXIISchema.xsd +3713 -0
- data/vendor/xsd/datex2/DATEXIISchemaWithDefinitions.xsd +11538 -0
- data/vendor/xsd/gml/basicTypes.xsd +267 -0
- data/vendor/xsd/gml/geometryBasic0d1d-extract.xsd +271 -0
- data/vendor/xsd/gml/gmlBase-extract.xsd +168 -0
- data/vendor/xsd/gml/gmlBasic2d-extract.xsd +120 -0
- data/vendor/xsd/gml/gml_extract_all_objects.xsd +12 -0
- data/vendor/xsd/ifopt/ifopt_administration.xsd +254 -0
- data/vendor/xsd/ifopt/ifopt_allStopPlace.xsd +33 -0
- data/vendor/xsd/ifopt/ifopt_checkpoint.xsd +222 -0
- data/vendor/xsd/ifopt/ifopt_countries.xsd +1320 -0
- data/vendor/xsd/ifopt/ifopt_equipment.xsd +207 -0
- data/vendor/xsd/ifopt/ifopt_location.xsd +281 -0
- data/vendor/xsd/ifopt/ifopt_modes.xsd +84 -0
- data/vendor/xsd/ifopt/ifopt_modification.xsd +173 -0
- data/vendor/xsd/ifopt/ifopt_path.xsd +164 -0
- data/vendor/xsd/ifopt/ifopt_stop.xsd +403 -0
- data/vendor/xsd/ifopt/ifopt_time.xsd +131 -0
- data/vendor/xsd/ifopt/ifopt_types.xsd +96 -0
- data/vendor/xsd/siri/siri_all_framework.xsd +12 -0
- data/vendor/xsd/siri/siri_base.xsd +315 -0
- data/vendor/xsd/siri/siri_common_services.xsd +900 -0
- data/vendor/xsd/siri/siri_request_errorConditions.xsd +590 -0
- data/vendor/xsd/siri/siri_request_support.xsd +210 -0
- data/vendor/xsd/siri/siri_requests.xsd +1072 -0
- data/vendor/xsd/siri.xsd +531 -0
- data/vendor/xsd/siriSg.xsd +149 -0
- data/vendor/xsd/siri_all_functionalServices.xsd +95 -0
- data/vendor/xsd/siri_connectionMonitoring_service.xsd +731 -0
- data/vendor/xsd/siri_connectionTimetable_service.xsd +485 -0
- data/vendor/xsd/siri_discovery.xsd +898 -0
- data/vendor/xsd/siri_estimatedTimetable_service.xsd +490 -0
- data/vendor/xsd/siri_facilityMonitoring_service.xsd +493 -0
- data/vendor/xsd/siri_generalMessage_service.xsd +483 -0
- data/vendor/xsd/siri_model/siri_all.xsd +13 -0
- data/vendor/xsd/siri_model/siri_all_journeyModel.xsd +21 -0
- data/vendor/xsd/siri_model/siri_all_model.xsd +13 -0
- data/vendor/xsd/siri_model/siri_all_situation.xsd +17 -0
- data/vendor/xsd/siri_model/siri_datedVehicleJourney.xsd +702 -0
- data/vendor/xsd/siri_model/siri_estimatedVehicleJourney.xsd +472 -0
- data/vendor/xsd/siri_model/siri_facilities.xsd +517 -0
- data/vendor/xsd/siri_model/siri_facility.xsd +760 -0
- data/vendor/xsd/siri_model/siri_feature_support.xsd +145 -0
- data/vendor/xsd/siri_model/siri_interchangeJourney.xsd +88 -0
- data/vendor/xsd/siri_model/siri_journey.xsd +1903 -0
- data/vendor/xsd/siri_model/siri_journey_support.xsd +1022 -0
- data/vendor/xsd/siri_model/siri_modelPermissions.xsd +338 -0
- data/vendor/xsd/siri_model/siri_modes.xsd +686 -0
- data/vendor/xsd/siri_model/siri_monitoredVehicleJourney.xsd +638 -0
- data/vendor/xsd/siri_model/siri_operator_support.xsd +87 -0
- data/vendor/xsd/siri_model/siri_reference.xsd +844 -0
- data/vendor/xsd/siri_model/siri_situation.xsd +1545 -0
- data/vendor/xsd/siri_model/siri_situationActions.xsd +755 -0
- data/vendor/xsd/siri_model/siri_situationAffects.xsd +1533 -0
- data/vendor/xsd/siri_model/siri_situationClassifiers.xsd +430 -0
- data/vendor/xsd/siri_model/siri_situationIdentity.xsd +247 -0
- data/vendor/xsd/siri_model/siri_situationReasons.xsd +1370 -0
- data/vendor/xsd/siri_model/siri_situationServiceTypes.xsd +639 -0
- data/vendor/xsd/siri_model/siri_targetedVehicleJourney.xsd +136 -0
- data/vendor/xsd/siri_model/siri_time.xsd +356 -0
- data/vendor/xsd/siri_model_discovery/siri_connectionLink.xsd +115 -0
- data/vendor/xsd/siri_model_discovery/siri_feature.xsd +158 -0
- data/vendor/xsd/siri_model_discovery/siri_infoChannel.xsd +99 -0
- data/vendor/xsd/siri_model_discovery/siri_line.xsd +241 -0
- data/vendor/xsd/siri_model_discovery/siri_stopPoint.xsd +158 -0
- data/vendor/xsd/siri_productionTimetable_service.xsd +514 -0
- data/vendor/xsd/siri_situationExchange_service.xsd +785 -0
- data/vendor/xsd/siri_stopMonitoring_service.xsd +1052 -0
- data/vendor/xsd/siri_stopTimetable_service.xsd +463 -0
- data/vendor/xsd/siri_utility/siri_all_utility.xsd +14 -0
- data/vendor/xsd/siri_utility/siri_location.xsd +270 -0
- data/vendor/xsd/siri_utility/siri_participant.xsd +79 -0
- data/vendor/xsd/siri_utility/siri_permissions.xsd +135 -0
- data/vendor/xsd/siri_utility/siri_types.xsd +166 -0
- data/vendor/xsd/siri_utility/siri_utility.xsd +301 -0
- data/vendor/xsd/siri_vehicleMonitoring_service.xsd +702 -0
- data/vendor/xsd/siri_wsConsumer-Document.wsdl +177 -0
- data/vendor/xsd/siri_wsConsumer-WSDL2.wsdl +96 -0
- data/vendor/xsd/siri_wsConsumer.wsdl +200 -0
- data/vendor/xsd/siri_wsProducer-Document.wsdl +558 -0
- data/vendor/xsd/siri_wsProducer-WSDL2.wsdl +229 -0
- data/vendor/xsd/siri_wsProducer.wsdl +629 -0
- data/vendor/xsd/soap.xsd +118 -0
- data/vendor/xsd/wsdl_model/siri-wsdl.xsd +8 -0
- data/vendor/xsd/wsdl_model/siri_wsConsumer-Framework.xsd +98 -0
- data/vendor/xsd/wsdl_model/siri_wsConsumer-Services.xsd +155 -0
- data/vendor/xsd/wsdl_model/siri_wsProducer-DiscoveryCapability.xsd +123 -0
- data/vendor/xsd/wsdl_model/siri_wsProducer-Framework.xsd +138 -0
- data/vendor/xsd/wsdl_model/siri_wsProducer-Services.xsd +263 -0
- data/vendor/xsd/xml/2008/09/xsd.xsl +997 -0
- data/vendor/xsd/xml/2009/01/XMLSchema.xsd +286 -0
- metadata +222 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 89727243b44a2657f38c8f057923fcaf311d0fbac634a7efb9e78ce9e5add7c6
|
|
4
|
+
data.tar.gz: 472beedf20b4aa649ebc479946b0afc83359253d481154a473b4cfc42ddbf10c
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 179b3f339a780319f6f0f77eee4d6400ac7aea24c1e89d36cf03c8dfc72fb12984368aad116aab9ea01d1269c14a03a2ba14294cc76927aeb51779918d0810c9
|
|
7
|
+
data.tar.gz: 3afff6baceaf8693161bb86b2c8ebcf16435be5959e2e2a00d1ad7c29556152d711356557ec7d8e9d1bec6528f41d25c13db167a050ff0bae1deb13bf886280f
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
siri-xsd (0.1.0)
|
|
5
|
+
listen
|
|
6
|
+
nokogiri
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
diff-lcs (1.5.0)
|
|
12
|
+
ffi (1.15.5)
|
|
13
|
+
listen (3.8.0)
|
|
14
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
15
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
|
16
|
+
nokogiri (1.15.4-x86_64-linux)
|
|
17
|
+
racc (~> 1.4)
|
|
18
|
+
racc (1.7.1)
|
|
19
|
+
rake (13.0.6)
|
|
20
|
+
rb-fsevent (0.11.2)
|
|
21
|
+
rb-inotify (0.10.1)
|
|
22
|
+
ffi (~> 1.0)
|
|
23
|
+
rspec (3.12.0)
|
|
24
|
+
rspec-core (~> 3.12.0)
|
|
25
|
+
rspec-expectations (~> 3.12.0)
|
|
26
|
+
rspec-mocks (~> 3.12.0)
|
|
27
|
+
rspec-core (3.12.2)
|
|
28
|
+
rspec-support (~> 3.12.0)
|
|
29
|
+
rspec-expectations (3.12.3)
|
|
30
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
31
|
+
rspec-support (~> 3.12.0)
|
|
32
|
+
rspec-mocks (3.12.6)
|
|
33
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
34
|
+
rspec-support (~> 3.12.0)
|
|
35
|
+
rspec-support (3.12.1)
|
|
36
|
+
|
|
37
|
+
PLATFORMS
|
|
38
|
+
x86_64-linux
|
|
39
|
+
|
|
40
|
+
DEPENDENCIES
|
|
41
|
+
bundler
|
|
42
|
+
rake
|
|
43
|
+
rspec
|
|
44
|
+
siri-xsd!
|
|
45
|
+
|
|
46
|
+
BUNDLED WITH
|
|
47
|
+
2.2.27
|
data/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
## Usage
|
|
2
|
+
|
|
3
|
+
To validate a SIRI file:
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
siri-xsd-validate siri.xml
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
In development environement:
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
bundle exec exe/siri-xsd-validate siri.xml
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
To validate files into a directory:
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
siri-xsd-validate --listen path/to/dir
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## License
|
|
22
|
+
|
|
23
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
definitions:
|
|
2
|
+
caches:
|
|
3
|
+
bundler: ./vendor/bundle
|
|
4
|
+
|
|
5
|
+
pipelines:
|
|
6
|
+
default:
|
|
7
|
+
- step:
|
|
8
|
+
name: Unit tests
|
|
9
|
+
image:
|
|
10
|
+
name: eu.gcr.io/enroute-interne/enroute-ruby:2.7-dev
|
|
11
|
+
username: _json_key
|
|
12
|
+
password: '$GCLOUD_API_KEYFILE'
|
|
13
|
+
caches:
|
|
14
|
+
- bundler
|
|
15
|
+
script:
|
|
16
|
+
- eval "$(build.sh bitbucket::env)"
|
|
17
|
+
- build.sh ci::setup
|
|
18
|
+
- bundle exec exe/siri-xsd-validate spec/fixtures/**/*.xml
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require 'siri/xsd'
|
|
4
|
+
|
|
5
|
+
def validation(file)
|
|
6
|
+
puts "Validate #{file}"
|
|
7
|
+
validator = Siri::Xsd::Validator.new
|
|
8
|
+
validator.validate_file file
|
|
9
|
+
|
|
10
|
+
unless validator.errors.empty?
|
|
11
|
+
validator.errors.each do |error|
|
|
12
|
+
puts "#{error.file}:#{error.to_s}"
|
|
13
|
+
end
|
|
14
|
+
else
|
|
15
|
+
puts "No errors"
|
|
16
|
+
end
|
|
17
|
+
puts ""
|
|
18
|
+
|
|
19
|
+
validator.errors.empty?
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
if ARGV.first == "--listen"
|
|
23
|
+
ARGV.shift
|
|
24
|
+
|
|
25
|
+
file = ARGV.shift
|
|
26
|
+
puts "Listen to #{file} ..."
|
|
27
|
+
require 'listen'
|
|
28
|
+
Listen.to(File.dirname(file), only: /#{File.basename(file)}/) do |modified, added, removed|
|
|
29
|
+
(modified + added).each do |changed_file|
|
|
30
|
+
validation changed_file
|
|
31
|
+
end
|
|
32
|
+
end.start
|
|
33
|
+
|
|
34
|
+
sleep
|
|
35
|
+
exit 0
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
error = false
|
|
39
|
+
ARGV.each do |file|
|
|
40
|
+
error = true unless validation(file)
|
|
41
|
+
end
|
|
42
|
+
exit 1 if error
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
require 'nokogiri'
|
|
2
|
+
|
|
3
|
+
module SIRI
|
|
4
|
+
module XSD
|
|
5
|
+
class Validator
|
|
6
|
+
|
|
7
|
+
def self.schema_dir
|
|
8
|
+
File.expand_path("../../../../vendor/xsd",__FILE__)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def self.schema_file
|
|
12
|
+
File.join(schema_dir, 'soap.xsd')
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def self.load_schema
|
|
16
|
+
Dir.chdir schema_dir do
|
|
17
|
+
File.open schema_file, "r" do |file|
|
|
18
|
+
Nokogiri::XML::Schema file
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.schema
|
|
24
|
+
@schema ||= load_schema
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def validate_file(file)
|
|
28
|
+
validate file, filename: file
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def validate(input, filename: nil)
|
|
32
|
+
print "Inspect #{filename}" if filename
|
|
33
|
+
open_input(input) do |io|
|
|
34
|
+
document = Nokogiri::XML::Document.parse io, filename
|
|
35
|
+
document_errors = self.class.schema.validate(document)
|
|
36
|
+
|
|
37
|
+
puts ": #{document_errors.count} error(s)" if filename
|
|
38
|
+
errors.concat document_errors
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def open_input(input)
|
|
43
|
+
if input.respond_to?(:read)
|
|
44
|
+
yield input
|
|
45
|
+
else
|
|
46
|
+
File.open(input,'r') do |file|
|
|
47
|
+
yield file
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def valid?
|
|
53
|
+
errors.empty?
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def errors
|
|
57
|
+
@errrors ||= []
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
data/lib/siri/xsd.rb
ADDED
data/siri-xsd.gemspec
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
+
require "siri/xsd/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = "siri-xsd"
|
|
7
|
+
spec.version = SIRI::XSD::VERSION
|
|
8
|
+
spec.authors = ["Alban Peignier"]
|
|
9
|
+
spec.email = ["contact@enroute.mobi"]
|
|
10
|
+
|
|
11
|
+
spec.summary = %q{Provide SIRI XSD and related tools}
|
|
12
|
+
spec.description = %q{Validate our SIRI files according to XSD schema}
|
|
13
|
+
spec.homepage = "https://bitbucket.org/enroute-mobi/siri-xsd"
|
|
14
|
+
spec.license = "Apache License Version 2.0"
|
|
15
|
+
|
|
16
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
17
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
18
|
+
spec.metadata["changelog_uri"] = spec.homepage
|
|
19
|
+
|
|
20
|
+
# Specify which files should be added to the gem when it is released.
|
|
21
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
22
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
23
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
24
|
+
end
|
|
25
|
+
spec.bindir = "exe"
|
|
26
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
27
|
+
spec.require_paths = ["lib"]
|
|
28
|
+
|
|
29
|
+
spec.add_development_dependency "bundler"
|
|
30
|
+
spec.add_development_dependency "rake"
|
|
31
|
+
spec.add_development_dependency "rspec"
|
|
32
|
+
|
|
33
|
+
spec.add_runtime_dependency 'nokogiri'
|
|
34
|
+
spec.add_runtime_dependency 'listen'
|
|
35
|
+
end
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xsd:schema xmlns="http://www.ifopt.org.uk/acsb" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ifopt="http://www.ifopt.org.uk/ifopt" targetNamespace="http://www.ifopt.org.uk/acsb" elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.3" id="accessibility">
|
|
3
|
+
<xsd:annotation>
|
|
4
|
+
<xsd:appinfo>
|
|
5
|
+
<Metadata xmlns="http://www.govtalk.gov.uk/CM/gms-xs">
|
|
6
|
+
<Aggregation>main schema</Aggregation>
|
|
7
|
+
<Audience>e-service developers</Audience>
|
|
8
|
+
<Coverage>Europe</Coverage>
|
|
9
|
+
<Creator>Drafted for version 1.0 CEN TC278 WG3 SG6 Editor Nicholas Knowles, Kizoom. mailto:schemer@ifopt.org.uk</Creator>
|
|
10
|
+
<Date>
|
|
11
|
+
<Created>2006-08-12</Created>
|
|
12
|
+
</Date>
|
|
13
|
+
<Date>
|
|
14
|
+
<Modified>2006-09-22</Modified>
|
|
15
|
+
</Date>
|
|
16
|
+
<Date>
|
|
17
|
+
<Modified>2007-03-29</Modified>
|
|
18
|
+
</Date>
|
|
19
|
+
<Description>
|
|
20
|
+
<p>Fixed Objects in Public Transport. This subschema defines common accessibility types.</p>
|
|
21
|
+
</Description>
|
|
22
|
+
<Format>
|
|
23
|
+
<MediaType>text/xml</MediaType>
|
|
24
|
+
<Syntax>http://www.w3.org/2001/XMLSchema</Syntax>
|
|
25
|
+
<Description>XML schema, W3C Recommendation 2001</Description>
|
|
26
|
+
</Format>
|
|
27
|
+
<Identifier>{http://www.siri.org.uk/schema/2.0/ifopt}ifopt_accessibility.xsd</Identifier>
|
|
28
|
+
<Language>[ISO 639-2/B] ENG</Language>
|
|
29
|
+
<Publisher>Kizoom, 109-123 Clifton Street, London EC4A 4LD</Publisher>
|
|
30
|
+
<Rights><!--Unclassified-->
|
|
31
|
+
<Copyright>CEN, Crown Copyright 2006-2021</Copyright>
|
|
32
|
+
</Rights>
|
|
33
|
+
<Source>
|
|
34
|
+
<ul>
|
|
35
|
+
<li>Derived from the SIRI standards.</li>
|
|
36
|
+
</ul>
|
|
37
|
+
</Source>
|
|
38
|
+
<Status>Version 2.1</Status>
|
|
39
|
+
<Subject>
|
|
40
|
+
<Category>Arts, recreation and travel, Tourism, Travel (tourism), Transport,
|
|
41
|
+
Air transport, Airports,
|
|
42
|
+
Ports and maritime transport, Ferries (marine),
|
|
43
|
+
Public transport, Bus services, Coach services, Bus stops and stations,
|
|
44
|
+
Rail transport, Railway stations and track, Train services, Underground trains,
|
|
45
|
+
Business and industry, Transport, Air transport, Ports and maritime transport, Public transport,
|
|
46
|
+
Rail transport, Roads and road transport
|
|
47
|
+
</Category>
|
|
48
|
+
<Project>CEN TC278 WG3 SG6</Project>
|
|
49
|
+
</Subject>
|
|
50
|
+
<Title>IFOPT Fixed Objects in Public Transport - accessibility Types. </Title>
|
|
51
|
+
<Type>Standard</Type>
|
|
52
|
+
</Metadata>
|
|
53
|
+
</xsd:appinfo>
|
|
54
|
+
<xsd:documentation>Fixed Objects accessibility types for IFOPT Fixed Objects in Public Transport.</xsd:documentation>
|
|
55
|
+
</xsd:annotation>
|
|
56
|
+
<xsd:include schemaLocation="acsb_limitations.xsd"/>
|
|
57
|
+
<xsd:include schemaLocation="acsb_passengerMobility.xsd"/>
|
|
58
|
+
<xsd:import namespace="http://www.ifopt.org.uk/ifopt" schemaLocation="../ifopt/ifopt_time.xsd"/>
|
|
59
|
+
<!--===========================================================================================-->
|
|
60
|
+
<xsd:simpleType name="LimitationIdType">
|
|
61
|
+
<xsd:annotation>
|
|
62
|
+
<xsd:documentation>Type for identifier of a hazard within a STOP PLACE.</xsd:documentation>
|
|
63
|
+
</xsd:annotation>
|
|
64
|
+
<xsd:restriction base="xsd:NMTOKEN"/>
|
|
65
|
+
</xsd:simpleType>
|
|
66
|
+
<xsd:complexType name="LimitationRefStructure">
|
|
67
|
+
<xsd:annotation>
|
|
68
|
+
<xsd:documentation>Type for reference to an identifier of a hazard within a STOP PLACE.</xsd:documentation>
|
|
69
|
+
</xsd:annotation>
|
|
70
|
+
<xsd:simpleContent>
|
|
71
|
+
<xsd:extension base="LimitationIdType"/>
|
|
72
|
+
</xsd:simpleContent>
|
|
73
|
+
</xsd:complexType>
|
|
74
|
+
<!--===========================================================================================-->
|
|
75
|
+
<xsd:complexType name="AccessibilityLimitationStructure">
|
|
76
|
+
<xsd:annotation>
|
|
77
|
+
<xsd:documentation>Type for limitation on navigation.</xsd:documentation>
|
|
78
|
+
</xsd:annotation>
|
|
79
|
+
<xsd:sequence>
|
|
80
|
+
<xsd:element name="LimitationId" type="LimitationIdType" minOccurs="0">
|
|
81
|
+
<xsd:annotation>
|
|
82
|
+
<xsd:documentation>Identifier of LIMITATION.</xsd:documentation>
|
|
83
|
+
</xsd:annotation>
|
|
84
|
+
</xsd:element>
|
|
85
|
+
<xsd:element name="ValidityCondition" type="ifopt:ValidityConditionStructure" minOccurs="0">
|
|
86
|
+
<xsd:annotation>
|
|
87
|
+
<xsd:documentation>Validity condition governing applicability of LIMITATION.</xsd:documentation>
|
|
88
|
+
</xsd:annotation>
|
|
89
|
+
</xsd:element>
|
|
90
|
+
<xsd:group ref="MobilityLimitationGroup"/>
|
|
91
|
+
<xsd:group ref="SensoryLimitationGroup"/>
|
|
92
|
+
<xsd:element ref="ifopt:Extensions" minOccurs="0"/>
|
|
93
|
+
</xsd:sequence>
|
|
94
|
+
</xsd:complexType>
|
|
95
|
+
<!--=====Assessmen=======================================================================================-->
|
|
96
|
+
<xsd:complexType name="AccessibilityAssessmentStructure">
|
|
97
|
+
<xsd:annotation>
|
|
98
|
+
<xsd:documentation>Type for Assesment.</xsd:documentation>
|
|
99
|
+
</xsd:annotation>
|
|
100
|
+
<xsd:sequence>
|
|
101
|
+
<xsd:element name="MobilityImpairedAccess" type="xsd:boolean">
|
|
102
|
+
<xsd:annotation>
|
|
103
|
+
<xsd:documentation>Summary indication as to whether the component is considered to be accessible or not.</xsd:documentation>
|
|
104
|
+
</xsd:annotation>
|
|
105
|
+
</xsd:element>
|
|
106
|
+
<xsd:element name="Limitations" minOccurs="0">
|
|
107
|
+
<xsd:annotation>
|
|
108
|
+
<xsd:documentation>The Limitations that apply to component.</xsd:documentation>
|
|
109
|
+
</xsd:annotation>
|
|
110
|
+
<xsd:complexType>
|
|
111
|
+
<xsd:sequence>
|
|
112
|
+
<xsd:element name="AccessibilityLimitation" type="AccessibilityLimitationStructure" maxOccurs="unbounded">
|
|
113
|
+
<xsd:annotation>
|
|
114
|
+
<xsd:documentation>The accessibility limitations on navigation.</xsd:documentation>
|
|
115
|
+
</xsd:annotation>
|
|
116
|
+
</xsd:element>
|
|
117
|
+
</xsd:sequence>
|
|
118
|
+
</xsd:complexType>
|
|
119
|
+
</xsd:element>
|
|
120
|
+
<xsd:element name="Suitabilities" minOccurs="0">
|
|
121
|
+
<xsd:annotation>
|
|
122
|
+
<xsd:documentation>The Suitability of the component to meet specifc user needs.</xsd:documentation>
|
|
123
|
+
</xsd:annotation>
|
|
124
|
+
<xsd:complexType>
|
|
125
|
+
<xsd:sequence>
|
|
126
|
+
<xsd:element name="Suitability" type="SuitabilityStructure" maxOccurs="unbounded">
|
|
127
|
+
<xsd:annotation>
|
|
128
|
+
<xsd:documentation>The Suitability of com[onent to meet a specifc user need.</xsd:documentation>
|
|
129
|
+
</xsd:annotation>
|
|
130
|
+
</xsd:element>
|
|
131
|
+
</xsd:sequence>
|
|
132
|
+
</xsd:complexType>
|
|
133
|
+
</xsd:element>
|
|
134
|
+
<xsd:element ref="ifopt:Extensions" minOccurs="0"/>
|
|
135
|
+
</xsd:sequence>
|
|
136
|
+
</xsd:complexType>
|
|
137
|
+
<!--======Point=======================================================================================-->
|
|
138
|
+
</xsd:schema>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- SIRI Model - All ACSB Journey Model packages
|
|
3
|
+
Copyright CEN 2004-2021
|
|
4
|
+
|
|
5
|
+
-->
|
|
6
|
+
<xsd:schema xmlns="http://www.ifopt.org.uk/acsb" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ifopt.org.uk/acsb" elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.2" id="acsb_all">
|
|
7
|
+
<!-- ======================================================================= -->
|
|
8
|
+
<xsd:include schemaLocation="acsb_accessibility.xsd"/>
|
|
9
|
+
<xsd:include schemaLocation="acsb_limitations.xsd"/>
|
|
10
|
+
<xsd:include schemaLocation="acsb_passengerMobility.xsd"/>
|
|
11
|
+
</xsd:schema>
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xsd:schema xmlns="http://www.ifopt.org.uk/acsb" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ifopt.org.uk/acsb" elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.2" id="accessibility">
|
|
3
|
+
<xsd:annotation>
|
|
4
|
+
<xsd:appinfo>
|
|
5
|
+
<Metadata xmlns="http://www.govtalk.gov.uk/CM/gms-xs">
|
|
6
|
+
<Aggregation>main schema</Aggregation>
|
|
7
|
+
<Audience>e-service developers</Audience>
|
|
8
|
+
<Coverage>Europe</Coverage>
|
|
9
|
+
<Creator>Drafted for version 1.0 CEN TC278 WG3 SG6 Editor Nicholas Knowles, Kizoom. mailto:schemer@ifopt.org.uk</Creator>
|
|
10
|
+
<Date>
|
|
11
|
+
<Created>2006-08-12</Created>
|
|
12
|
+
</Date>
|
|
13
|
+
<Date>
|
|
14
|
+
<Modified>2006-09-22</Modified>
|
|
15
|
+
</Date>
|
|
16
|
+
<Date>
|
|
17
|
+
<Modified>2007-03-29</Modified>
|
|
18
|
+
</Date>
|
|
19
|
+
<Description>
|
|
20
|
+
<p>Fixed Objects in Public Transport. This subschema defines common accessibility limitation types.</p>
|
|
21
|
+
</Description>
|
|
22
|
+
<Format>
|
|
23
|
+
<MediaType>text/xml</MediaType>
|
|
24
|
+
<Syntax>http://www.w3.org/2001/XMLSchema</Syntax>
|
|
25
|
+
<Description>XML schema, W3C Recommendation 2001</Description>
|
|
26
|
+
</Format>
|
|
27
|
+
<Identifier>{http://www.siri.org.uk/schema/2.0/ifopt}ifopt_accessibility.xsd</Identifier>
|
|
28
|
+
<Language>[ISO 639-2/B] ENG</Language>
|
|
29
|
+
<Publisher>Kizoom, 109-123 Clifton Street, London EC4A 4LD</Publisher>
|
|
30
|
+
<Rights><!--Unclassified-->
|
|
31
|
+
<Copyright>CEN, Crown Copyright 2006-2021</Copyright>
|
|
32
|
+
</Rights>
|
|
33
|
+
<Source>
|
|
34
|
+
<ul>
|
|
35
|
+
<li>Derived from the SIRI standards.</li>
|
|
36
|
+
</ul>
|
|
37
|
+
</Source>
|
|
38
|
+
<Status>Version 2.1</Status>
|
|
39
|
+
<Subject>
|
|
40
|
+
<Category>Arts, recreation and travel, Tourism, Travel (tourism), Transport,
|
|
41
|
+
Air transport, Airports,
|
|
42
|
+
Ports and maritime transport, Ferries (marine),
|
|
43
|
+
Public transport, Bus services, Coach services, Bus stops and stations,
|
|
44
|
+
Rail transport, Railway stations and track, Train services, Underground trains,
|
|
45
|
+
Business and industry, Transport, Air transport, Ports and maritime transport, Public transport,
|
|
46
|
+
Rail transport, Roads and road transport
|
|
47
|
+
</Category>
|
|
48
|
+
<Project>CEN TC278 WG3 SG6</Project>
|
|
49
|
+
</Subject>
|
|
50
|
+
<Title>IFOPT Fixed Objects in Public Transport - accessibility Types. </Title>
|
|
51
|
+
<Type>Standard</Type>
|
|
52
|
+
</Metadata>
|
|
53
|
+
</xsd:appinfo>
|
|
54
|
+
<xsd:documentation>Fixed Objects accessibility limitation types for IFOPT Fixed Objects in Public Transport.</xsd:documentation>
|
|
55
|
+
</xsd:annotation>
|
|
56
|
+
<!--======Point=======================================================================================-->
|
|
57
|
+
<!--======Suitability==================================================================================-->
|
|
58
|
+
<xsd:group name="MobilityLimitationGroup">
|
|
59
|
+
<xsd:annotation>
|
|
60
|
+
<xsd:documentation>Group of mobility LIMITATIONs.</xsd:documentation>
|
|
61
|
+
</xsd:annotation>
|
|
62
|
+
<xsd:sequence>
|
|
63
|
+
<xsd:element ref="WheelchairAccess"/>
|
|
64
|
+
<xsd:element ref="StepFreeAccess" minOccurs="0"/>
|
|
65
|
+
<xsd:element ref="EscalatorFreeAccess" minOccurs="0"/>
|
|
66
|
+
<xsd:element ref="LiftFreeAccess" minOccurs="0"/>
|
|
67
|
+
</xsd:sequence>
|
|
68
|
+
</xsd:group>
|
|
69
|
+
<xsd:simpleType name="AccessibilityEnumeration">
|
|
70
|
+
<xsd:annotation>
|
|
71
|
+
<xsd:documentation>Enumeration of values for an accessibility value.</xsd:documentation>
|
|
72
|
+
</xsd:annotation>
|
|
73
|
+
<xsd:restriction base="xsd:string">
|
|
74
|
+
<xsd:enumeration value="unknown"/>
|
|
75
|
+
<xsd:enumeration value="false"/>
|
|
76
|
+
<xsd:enumeration value="true"/>
|
|
77
|
+
</xsd:restriction>
|
|
78
|
+
</xsd:simpleType>
|
|
79
|
+
<xsd:group name="SensoryLimitationGroup">
|
|
80
|
+
<xsd:annotation>
|
|
81
|
+
<xsd:documentation>Group of sensory LIMITATIONs.</xsd:documentation>
|
|
82
|
+
</xsd:annotation>
|
|
83
|
+
<xsd:sequence>
|
|
84
|
+
<xsd:element ref="AudibleSignalsAvailable" minOccurs="0">
|
|
85
|
+
<xsd:annotation>
|
|
86
|
+
<xsd:documentation>Whether a PLACE / SITE ELEMENT has Audible signals for the visually impaired. Default is 'false'.</xsd:documentation>
|
|
87
|
+
</xsd:annotation>
|
|
88
|
+
</xsd:element>
|
|
89
|
+
<xsd:element ref="VisualSignsAvailable" minOccurs="0">
|
|
90
|
+
<xsd:annotation>
|
|
91
|
+
<xsd:documentation>Whether a PLACE / SITE ELEMENT has Visual signals for the hearing impaired. Default is 'unknown'.</xsd:documentation>
|
|
92
|
+
</xsd:annotation>
|
|
93
|
+
</xsd:element>
|
|
94
|
+
</xsd:sequence>
|
|
95
|
+
</xsd:group>
|
|
96
|
+
<!--======Point=======================================================================================-->
|
|
97
|
+
<xsd:complexType name="AccessibilityStructure">
|
|
98
|
+
<xsd:annotation>
|
|
99
|
+
<xsd:documentation>Type for accessibility.</xsd:documentation>
|
|
100
|
+
</xsd:annotation>
|
|
101
|
+
<xsd:simpleContent>
|
|
102
|
+
<xsd:extension base="AccessibilityEnumeration"/>
|
|
103
|
+
</xsd:simpleContent>
|
|
104
|
+
</xsd:complexType>
|
|
105
|
+
<xsd:element name="WheelchairAccess" type="AccessibilityStructure" default="false">
|
|
106
|
+
<xsd:annotation>
|
|
107
|
+
<xsd:documentation>Whether a PLACE / SITE ELEMENT is wheelchair accessible. Default is 'false'.</xsd:documentation>
|
|
108
|
+
</xsd:annotation>
|
|
109
|
+
</xsd:element>
|
|
110
|
+
<xsd:element name="StepFreeAccess" type="AccessibilityStructure" default="unknown">
|
|
111
|
+
<xsd:annotation>
|
|
112
|
+
<xsd:documentation>Whether a PLACE / SITE ELEMENT has step free access. Default is 'unknown'.</xsd:documentation>
|
|
113
|
+
</xsd:annotation>
|
|
114
|
+
</xsd:element>
|
|
115
|
+
<xsd:element name="EscalatorFreeAccess" type="AccessibilityStructure" default="unknown">
|
|
116
|
+
<xsd:annotation>
|
|
117
|
+
<xsd:documentation>Whether a PLACE / SITE ELEMENT has escalator free access. Default is 'unknown'.</xsd:documentation>
|
|
118
|
+
</xsd:annotation>
|
|
119
|
+
</xsd:element>
|
|
120
|
+
<xsd:element name="LiftFreeAccess" type="AccessibilityStructure" default="unknown">
|
|
121
|
+
<xsd:annotation>
|
|
122
|
+
<xsd:documentation>Whether a PLACE / SITE ELEMENT has lift free access. Default is 'unknown'.</xsd:documentation>
|
|
123
|
+
</xsd:annotation>
|
|
124
|
+
</xsd:element>
|
|
125
|
+
<xsd:element name="AudibleSignalsAvailable" type="AccessibilityStructure" default="false">
|
|
126
|
+
<xsd:annotation>
|
|
127
|
+
<xsd:documentation>Whether a PLACE / SITE ELEMENT is wheelchair accessible. Default is 'false'.</xsd:documentation>
|
|
128
|
+
</xsd:annotation>
|
|
129
|
+
</xsd:element>
|
|
130
|
+
<xsd:element name="VisualSignsAvailable" type="AccessibilityStructure" default="unknown">
|
|
131
|
+
<xsd:annotation>
|
|
132
|
+
<xsd:documentation>Whether a PLACE / SITE ELEMENT has Visual signals available for the visually impaired.</xsd:documentation>
|
|
133
|
+
</xsd:annotation>
|
|
134
|
+
</xsd:element>
|
|
135
|
+
<xsd:element name="GuideDogAccess" type="AccessibilityStructure" default="unknown">
|
|
136
|
+
<xsd:annotation>
|
|
137
|
+
<xsd:documentation>Whether a PLACE / SITE ELEMENT allows guide dog access.</xsd:documentation>
|
|
138
|
+
</xsd:annotation>
|
|
139
|
+
</xsd:element>
|
|
140
|
+
<!--======Limitation=======================================================================================-->
|
|
141
|
+
</xsd:schema>
|