voruby 1.1.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (257) hide show
  1. data/Rakefile.rb +107 -224
  2. data/lib/misc.rb +1 -0
  3. data/lib/misc/misc.rb +60 -0
  4. data/lib/misc/propertyfile.rb +31 -0
  5. data/lib/symphony.rb +1 -0
  6. data/lib/symphony/symphony.rb +247 -0
  7. data/lib/voruby.rb +186 -0
  8. data/lib/voruby/active_votable/active_votable.rb +468 -347
  9. data/lib/voruby/adql/1.0/adql.rb +2418 -0
  10. data/lib/voruby/adql/support.rb +2 -0
  11. data/lib/voruby/misc.rb +351 -0
  12. data/lib/voruby/misc/connection_monitor.rb +97 -0
  13. data/lib/voruby/misc/libxml_ext.rb +121 -0
  14. data/lib/voruby/misc/rexml_ext.rb +223 -0
  15. data/lib/voruby/resolver/resolver.rb +12 -0
  16. data/lib/voruby/resolver/sesame.rb +299 -0
  17. data/lib/voruby/sky_query/sky_query.rb +192 -0
  18. data/lib/voruby/stc/1.10/coords.rb +2272 -0
  19. data/lib/voruby/stc/1.10/region.rb +892 -0
  20. data/lib/voruby/stc/1.10/stc.rb +3271 -0
  21. data/lib/voruby/stc/1.30/stc.rb +8666 -0
  22. data/lib/voruby/stc/support.rb +2 -0
  23. data/lib/voruby/ucd/ucd.rb +173 -0
  24. data/lib/voruby/voevent/1.1/voevent.rb +1124 -0
  25. data/lib/voruby/voevent/support.rb +5 -0
  26. data/lib/voruby/votable/1.0/votable.rb +1807 -0
  27. data/lib/voruby/votable/1.1/votable.rb +2100 -0
  28. data/lib/voruby/votable/votable.rb +305 -0
  29. data/lib/voruby/wesix/wesix.rb +491 -0
  30. data/lib/voruby/xlink/1.2/xlink.rb +21 -0
  31. data/test/voruby/active_votable/complex.vot +60 -0
  32. data/test/voruby/active_votable/error.vot +6 -0
  33. data/test/voruby/active_votable/large.vot +130040 -0
  34. data/test/voruby/active_votable/simple1.vot +38 -0
  35. data/test/voruby/active_votable/simple2.vot +38 -0
  36. data/test/voruby/active_votable/test.rb +193 -0
  37. data/test/voruby/adql/1.0/adql-alias.sql +1 -0
  38. data/test/voruby/adql/1.0/adql-alias.xml +26 -0
  39. data/test/voruby/adql/1.0/adql-avg.sql +1 -0
  40. data/test/voruby/adql/1.0/adql-avg.xml +31 -0
  41. data/test/voruby/adql/1.0/adql-circle.sql +1 -0
  42. data/test/voruby/adql/1.0/adql-circle.xml +46 -0
  43. data/test/voruby/adql/1.0/adql-expr.sql +1 -0
  44. data/test/voruby/adql/1.0/adql-expr.xml +34 -0
  45. data/test/voruby/adql/1.0/adql-function.sql +1 -0
  46. data/test/voruby/adql/1.0/adql-function.xml +41 -0
  47. data/test/voruby/adql/1.0/adql-group.sql +1 -0
  48. data/test/voruby/adql/1.0/adql-group.xml +51 -0
  49. data/test/voruby/adql/1.0/adql-having.sql +1 -0
  50. data/test/voruby/adql/1.0/adql-having.xml +25 -0
  51. data/test/voruby/adql/1.0/adql-like.sql +1 -0
  52. data/test/voruby/adql/1.0/adql-like.xml +17 -0
  53. data/test/voruby/adql/1.0/adql-order.sql +1 -0
  54. data/test/voruby/adql/1.0/adql-order.xml +37 -0
  55. data/test/voruby/adql/1.0/adql-simple.sql +1 -0
  56. data/test/voruby/adql/1.0/adql-simple.xml +12 -0
  57. data/test/voruby/adql/1.0/adql-top.sql +1 -0
  58. data/test/voruby/adql/1.0/adql-top.xml +33 -0
  59. data/test/voruby/adql/1.0/test.rb +2220 -0
  60. data/test/voruby/misc/test.rb +32 -0
  61. data/test/voruby/resolver/sesame/test.rb +56 -0
  62. data/test/voruby/sky_query/test.rb +107 -0
  63. data/test/voruby/stc/1.10/coords_test.rb +3704 -0
  64. data/test/voruby/stc/1.10/region_test.rb +993 -0
  65. data/test/voruby/stc/1.10/stc-catalog-entry-location.xml +112 -0
  66. data/test/voruby/stc/1.10/stc-obs-data-location.xml +126 -0
  67. data/test/voruby/stc/1.10/stc-region-circle.xml +5 -0
  68. data/test/voruby/stc/1.10/stc-region-convex.xml +11 -0
  69. data/test/voruby/stc/1.10/stc-region-convexhull.xml +5 -0
  70. data/test/voruby/stc/1.10/stc-region-ellipse.xml +7 -0
  71. data/test/voruby/stc/1.10/stc-region-intersection.xml +25 -0
  72. data/test/voruby/stc/1.10/stc-region-negation.xml +7 -0
  73. data/test/voruby/stc/1.10/stc-region-polygon.xml +13 -0
  74. data/test/voruby/stc/1.10/stc-region-sector.xml +6 -0
  75. data/test/voruby/stc/1.10/stc-region-union.xml +25 -0
  76. data/test/voruby/stc/1.10/stc-resource-profile.xml +60 -0
  77. data/test/voruby/stc/1.10/stc-search-location.xml +54 -0
  78. data/test/voruby/stc/1.10/stc_test.rb +4626 -0
  79. data/test/voruby/stc/1.30/stc-catalog-entry-location.xml +210 -0
  80. data/test/voruby/stc/1.30/stc-obs-data-location-arecibo.xml +353 -0
  81. data/test/voruby/stc/1.30/stc-obs-data-location-fits.xml +250 -0
  82. data/test/voruby/stc/1.30/stc-obs-data-location-xlink.xml +63 -0
  83. data/test/voruby/stc/1.30/stc-obs-data-location.xml +216 -0
  84. data/test/voruby/stc/1.30/stc-resource-profile-unusual-ref-pos.xml +39 -0
  85. data/test/voruby/stc/1.30/stc-resource-profile.xml +129 -0
  86. data/test/voruby/stc/1.30/stc-search-location-arecibo.xml +86 -0
  87. data/test/voruby/stc/1.30/stc-search-location.xml +101 -0
  88. data/test/voruby/stc/1.30/test.rb +6274 -0
  89. data/test/voruby/ucd/test.rb +48 -0
  90. data/test/voruby/voevent/1.1/test.rb +812 -0
  91. data/test/{voevent/voevent_v1_1.xml → voruby/voevent/1.1/voevent.xml} +2 -2
  92. data/test/voruby/voregistry/0.3/test.rb +137 -0
  93. data/test/voruby/votable/1.0/test.rb +714 -0
  94. data/test/voruby/votable/1.0/votable.basic.xml +660 -0
  95. data/test/voruby/votable/1.0/votable.html +86 -0
  96. data/test/voruby/votable/1.0/votable.ns.xml +56 -0
  97. data/test/voruby/votable/1.1/test.rb +785 -0
  98. data/test/voruby/votable/1.1/votable.basic.xml +38 -0
  99. data/test/voruby/votable/1.1/votable.html +86 -0
  100. data/test/voruby/votable/1.1/votable.ns.xml +56 -0
  101. data/test/voruby/votable/test.rb +15 -0
  102. data/test/voruby/wesix/test.rb +268 -0
  103. data/test/voruby/wesix/testr.fits +28 -0
  104. metadata +234 -247
  105. data/REQUIREMENTS +0 -6
  106. data/lib/voruby/active_votable/loader.rb +0 -5
  107. data/lib/voruby/adql/adql.rb +0 -2787
  108. data/lib/voruby/adql/ext.rb +0 -14
  109. data/lib/voruby/adql/loader.rb +0 -6
  110. data/lib/voruby/adql/operations.rb +0 -54
  111. data/lib/voruby/adql/parser.rb +0 -160
  112. data/lib/voruby/adql/transforms.rb +0 -573
  113. data/lib/voruby/ext.rb +0 -17
  114. data/lib/voruby/loader.rb +0 -4
  115. data/lib/voruby/misc/propertyfile.rb +0 -36
  116. data/lib/voruby/plastic/applications.rb +0 -174
  117. data/lib/voruby/plastic/constants.rb +0 -30
  118. data/lib/voruby/plastic/loader.rb +0 -10
  119. data/lib/voruby/plastic/plastic.rb +0 -1
  120. data/lib/voruby/resources/conesearch/conesearch.rb +0 -9
  121. data/lib/voruby/resources/conesearch/conesearch_v0_2.rb +0 -55
  122. data/lib/voruby/resources/conesearch/conesearch_v0_3.rb +0 -50
  123. data/lib/voruby/resources/conesearch/conesearch_v1_0.rb +0 -72
  124. data/lib/voruby/resources/conesearch/loader.rb +0 -4
  125. data/lib/voruby/resources/loader.rb +0 -50
  126. data/lib/voruby/resources/nodes.rb +0 -190
  127. data/lib/voruby/resources/openskynode/loader.rb +0 -4
  128. data/lib/voruby/resources/openskynode/openskynode.rb +0 -9
  129. data/lib/voruby/resources/openskynode/openskynode_v0_1.rb +0 -54
  130. data/lib/voruby/resources/sia/loader.rb +0 -5
  131. data/lib/voruby/resources/sia/sia.rb +0 -9
  132. data/lib/voruby/resources/sia/sia_v0_6.rb +0 -90
  133. data/lib/voruby/resources/sia/sia_v0_7.rb +0 -89
  134. data/lib/voruby/resources/sia/sia_v1_0.rb +0 -122
  135. data/lib/voruby/resources/stsci.rb +0 -59
  136. data/lib/voruby/resources/vodataservice/coverage_v0_2.rb +0 -195
  137. data/lib/voruby/resources/vodataservice/coverage_v0_3.rb +0 -158
  138. data/lib/voruby/resources/vodataservice/loader.rb +0 -5
  139. data/lib/voruby/resources/vodataservice/vodataservice.rb +0 -9
  140. data/lib/voruby/resources/vodataservice/vodataservice_v0_4.rb +0 -189
  141. data/lib/voruby/resources/vodataservice/vodataservice_v0_5.rb +0 -163
  142. data/lib/voruby/resources/vodataservice/vodataservice_v1_0.rb +0 -221
  143. data/lib/voruby/resources/voregistry/loader.rb +0 -4
  144. data/lib/voruby/resources/voregistry/voregistry.rb +0 -9
  145. data/lib/voruby/resources/voregistry/voregistry_v0_2.rb +0 -40
  146. data/lib/voruby/resources/voregistry/voregistry_v0_3.rb +0 -30
  147. data/lib/voruby/resources/voregistry/voregistry_v1_0.rb +0 -86
  148. data/lib/voruby/resources/voresource/loader.rb +0 -17
  149. data/lib/voruby/resources/voresource/voresource.rb +0 -9
  150. data/lib/voruby/resources/voresource/voresource_v0_10.rb +0 -327
  151. data/lib/voruby/resources/voresource/voresource_v0_9.rb +0 -405
  152. data/lib/voruby/resources/voresource/voresource_v1_0.rb +0 -230
  153. data/lib/voruby/services/ext.rb +0 -11
  154. data/lib/voruby/services/gestalt/footprint.rb +0 -95
  155. data/lib/voruby/services/gestalt/wcs_fixer.rb +0 -105
  156. data/lib/voruby/services/gestalt/wesix.rb +0 -155
  157. data/lib/voruby/services/loader.rb +0 -7
  158. data/lib/voruby/services/registry/registry.rb +0 -53
  159. data/lib/voruby/services/resolver/resolver.rb +0 -35
  160. data/lib/voruby/services/schema/schema.rb +0 -644
  161. data/lib/voruby/sesame/loader.rb +0 -6
  162. data/lib/voruby/sesame/sesame_v1_0.rb +0 -64
  163. data/lib/voruby/simple/loader.rb +0 -6
  164. data/lib/voruby/simple/parameters.rb +0 -196
  165. data/lib/voruby/simple/sap.rb +0 -446
  166. data/lib/voruby/spacetime/loader.rb +0 -3
  167. data/lib/voruby/spacetime/spacetime.rb +0 -607
  168. data/lib/voruby/stc/coords_v1_20.rb +0 -900
  169. data/lib/voruby/stc/loader.rb +0 -55
  170. data/lib/voruby/stc/region_v1_20.rb +0 -274
  171. data/lib/voruby/stc/stc_v1_20.rb +0 -1196
  172. data/lib/voruby/util.rb +0 -27
  173. data/lib/voruby/voevent/loader.rb +0 -7
  174. data/lib/voruby/voevent/voevent_v1_0.rb +0 -213
  175. data/lib/voruby/voevent/voevent_v1_1.rb +0 -196
  176. data/lib/voruby/votables/chandra.rb +0 -373
  177. data/lib/voruby/votables/data.rb +0 -179
  178. data/lib/voruby/votables/galex.rb +0 -377
  179. data/lib/voruby/votables/int.rb +0 -354
  180. data/lib/voruby/votables/libxml_parser.rb +0 -411
  181. data/lib/voruby/votables/libxml_votable.rb +0 -67
  182. data/lib/voruby/votables/loader.rb +0 -10
  183. data/lib/voruby/votables/meta.rb +0 -763
  184. data/lib/voruby/votables/misc.rb +0 -51
  185. data/lib/voruby/votables/nsa.rb +0 -410
  186. data/lib/voruby/votables/rexml_parser.rb +0 -408
  187. data/lib/voruby/votables/rexml_votable.rb +0 -67
  188. data/lib/voruby/votables/sdss.rb +0 -356
  189. data/lib/voruby/votables/transforms.rb +0 -388
  190. data/lib/voruby/votables/tree.rb +0 -45
  191. data/lib/voruby/votables/types.rb +0 -391
  192. data/lib/voruby/votables/votable.rb +0 -687
  193. data/test/active_votable/database.yml +0 -6
  194. data/test/active_votable/test.vot +0 -168492
  195. data/test/active_votable/unittest.rb +0 -41
  196. data/test/adql/test1.adql +0 -49
  197. data/test/adql/test2.adql +0 -51
  198. data/test/adql/test3.adql +0 -81
  199. data/test/adql/test4.adql +0 -53
  200. data/test/adql/test5.adql +0 -55
  201. data/test/adql/test6.adql +0 -18
  202. data/test/adql/test7.adql +0 -48
  203. data/test/adql/unittest.rb +0 -1672
  204. data/test/plastic/test.rb +0 -44
  205. data/test/plastic/test.vot +0 -5385
  206. data/test/plastic/unittest.rb +0 -66
  207. data/test/resources/conesearch/conesearch_v0_3.xml +0 -31
  208. data/test/resources/conesearch/conesearch_v1_0.xml +0 -86
  209. data/test/resources/conesearch/unittest_v0_3.rb +0 -22
  210. data/test/resources/conesearch/unittest_v1_0.rb +0 -24
  211. data/test/resources/openskynode/open_sky_node_v0_1.xml +0 -32
  212. data/test/resources/openskynode/unittest_v0_1.rb +0 -31
  213. data/test/resources/sia/simple_image_access_v0_7.xml +0 -36
  214. data/test/resources/sia/simple_image_access_v1_0.xml +0 -122
  215. data/test/resources/sia/unittest_v0_7.rb +0 -24
  216. data/test/resources/sia/unittest_v1_0.rb +0 -29
  217. data/test/resources/stsci.xml +0 -336
  218. data/test/resources/unittest_stsci.rb +0 -25
  219. data/test/resources/vodataservice/catalog_service_resource_v1_0.xml +0 -128
  220. data/test/resources/vodataservice/data_collection_resource_v0_5.xml +0 -54
  221. data/test/resources/vodataservice/data_collection_resource_v1_0.xml +0 -117
  222. data/test/resources/vodataservice/data_service_resource_v1_0.xml +0 -115
  223. data/test/resources/vodataservice/sky_service_resource_v0_10.xml +0 -45
  224. data/test/resources/vodataservice/table_service_resource_v1_0.xml +0 -122
  225. data/test/resources/vodataservice/tabular_sky_service_resource_v0_10.xml +0 -60
  226. data/test/resources/vodataservice/unittest_v0_5.rb +0 -126
  227. data/test/resources/vodataservice/unittest_v1_0.rb +0 -151
  228. data/test/resources/voregistry/authority_resource_v0_3.xml +0 -20
  229. data/test/resources/voregistry/authority_resource_v1_0.xml +0 -82
  230. data/test/resources/voregistry/registry_service_v0_3.xml +0 -20
  231. data/test/resources/voregistry/registry_service_v1_0.xml +0 -107
  232. data/test/resources/voregistry/unittest_v0_3.rb +0 -31
  233. data/test/resources/voregistry/unittest_v1_0.rb +0 -34
  234. data/test/resources/voresource/organisation_resource_v1_0.xml +0 -90
  235. data/test/resources/voresource/resource_organisation_v0_10.xml +0 -22
  236. data/test/resources/voresource/resource_service_v0_10.xml +0 -19
  237. data/test/resources/voresource/resource_v0_10.xml +0 -19
  238. data/test/resources/voresource/resource_v1_0.xml +0 -79
  239. data/test/resources/voresource/service_resource_v1_0.xml +0 -91
  240. data/test/resources/voresource/unittest_v0_10.rb +0 -61
  241. data/test/resources/voresource/unittest_v0_9.rb +0 -4
  242. data/test/resources/voresource/unittest_v1_0.rb +0 -190
  243. data/test/services/gestalt/unittest.rb +0 -74
  244. data/test/services/registry/unittest.rb +0 -34
  245. data/test/services/resolver/unittest.rb +0 -38
  246. data/test/simple/unittest.rb +0 -46
  247. data/test/spacetime/unittest.rb +0 -39
  248. data/test/stc/catalog_entry_location_v1_20.xml +0 -112
  249. data/test/stc/obs_data_location_v1_20.xml +0 -108
  250. data/test/stc/search_location_v1_20.xml +0 -54
  251. data/test/stc/stc_resource_profile_v1_20.xml +0 -60
  252. data/test/stc/unittest_v1_20.rb +0 -620
  253. data/test/voevent/unittest_v1_0.rb +0 -79
  254. data/test/voevent/unittest_v1_1.rb +0 -70
  255. data/test/voevent/voevent_v1_0.xml +0 -96
  256. data/test/votables/test.vot +0 -366
  257. data/test/votables/unittest.rb +0 -54
@@ -1,24 +0,0 @@
1
- require 'test/unit'
2
- require 'voruby/resources/sia/sia_v0_7'
3
-
4
- include VORuby::Resources::SIA::V0_7
5
-
6
- class SimpleImageAccessTest < Test::Unit::TestCase
7
- def setup
8
- assert_nothing_raised {
9
- @res = SimpleImageAccess.load_from_file('test/resources/sia/simple_image_access_v0_7.xml')
10
- }
11
- end
12
-
13
- def test_capability
14
- assert_equal('Cutout', @res.capability.image_service_type.value)
15
- assert_equal(0, @res.capability.max_query_region_size.long)
16
- assert_equal(0, @res.capability.max_query_region_size.lat)
17
- assert_equal(0, @res.capability.max_image_extent.long)
18
- assert_equal(0, @res.capability.max_image_extent.lat)
19
- assert_equal(0, @res.capability.max_image_size.lat)
20
- assert_equal(0, @res.capability.max_image_size.long)
21
- assert_equal(0, @res.capability.max_file_size)
22
- assert_equal(0, @res.capability.max_records)
23
- end
24
- end
@@ -1,29 +0,0 @@
1
- require 'test/unit'
2
- require 'voruby/resources/sia/sia_v1_0'
3
-
4
- include VORuby::Resources::SIA::V1_0
5
-
6
- class SimpleImageAccessTest < Test::Unit::TestCase
7
- def setup
8
- assert_nothing_raised {
9
- @res = Service.load_from_file('test/resources/sia/simple_image_access_v1_0.xml')
10
- }
11
- end
12
-
13
- def test_capability
14
- assert_equal('Cutout', @res.capabilities[0].image_service_type.value)
15
- assert_equal(23.1, @res.capabilities[0].max_query_region_size.long)
16
- assert_equal(9.0, @res.capabilities[0].max_query_region_size.lat)
17
- assert_equal(43.2, @res.capabilities[0].max_image_extent.long)
18
- assert_equal(16.9, @res.capabilities[0].max_image_extent.lat)
19
- assert_equal(2501, @res.capabilities[0].max_image_size.long)
20
- assert_equal(1234, @res.capabilities[0].max_image_size.lat)
21
- assert_equal(1000, @res.capabilities[0].max_records)
22
- assert_equal(23.2, @res.capabilities[0].test_query.pos.long)
23
- assert_equal(16.5, @res.capabilities[0].test_query.pos.lat)
24
- assert_equal(345.8, @res.capabilities[0].test_query.size.long)
25
- assert_equal(234.6, @res.capabilities[0].test_query.size.lat)
26
- assert_equal(2, @res.capabilities[0].test_query.verb)
27
- assert_equal('param1=blah&param2=blah2', @res.capabilities[0].test_query.extras)
28
- end
29
- end
@@ -1,336 +0,0 @@
1
- <ArrayOfResource xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.us-vo.org">
2
- <Resource xmlns:q1="http://www.ivoa.net/xml/VORegistry/v0.3" xsi:type="q1:Authority" updated="2004-12-09">
3
- <title xmlns="http://www.ivoa.net/xml/VOResource/v0.10">Space Telescope European Coordinating Facility</title>
4
- <shortName xmlns="http://www.ivoa.net/xml/VOResource/v0.10">ST-ECF</shortName>
5
- <identifier xmlns="http://www.ivoa.net/xml/VOResource/v0.10">ivo://stecf.euro-vo</identifier>
6
- <curation xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
7
- <publisher ivo-id="NOT PROVIDED">Space Telescope European Coordinating Facility</publisher>
8
-
9
- <creator />
10
- <contributor />
11
- <version />
12
- </curation>
13
- <content xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
14
- <subject>Hubble Space Telescope</subject>
15
- <subject> Science Archive</subject>
16
-
17
- <subject> Advanced Calibration</subject>
18
- <subject> Public Outreach</subject>
19
- <subject> HST User Support. </subject>
20
- <description>The Hubble Space Telescope (HST) is a joint project between the US National Aeronautics and Space Administration (NASA) and the European Space Agency (ESA).
21
- The Space Telescope European Coordinating Facility (ST-ECF), jointly operated by ESA and the European Southern Observatory (ESO), is the European HST science facility, supporting the European astronomy community in exploiting the research opportunities provided by the Hubble Space Telescope.</description>
22
- <referenceURL>http://www.stecf.org/</referenceURL>
23
-
24
- <contentLevel>General</contentLevel>
25
- </content>
26
- </Resource>
27
- <Resource xmlns:q1="http://www.ivoa.net/xml/ConeSearch/v0.3" xsi:type="q1:ConeSearch" updated="2005-04-08">
28
- <title xmlns="http://www.ivoa.net/xml/VOResource/v0.10">Copernicus Satellite</title>
29
- <shortName xmlns="http://www.ivoa.net/xml/VOResource/v0.10">Copernicus </shortName>
30
- <identifier xmlns="http://www.ivoa.net/xml/VOResource/v0.10">ivo://archive.stsci.edu/copernicus</identifier>
31
- <curation xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
32
- <publisher ivo-id="NOT PROVIDED">Space Telescope Science </publisher>
33
-
34
- <creator />
35
- <contributor>Princeton University</contributor>
36
- <version>NOT PROVIDED</version>
37
- </curation>
38
- <content xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
39
- <subject>Stars</subject>
40
- <subject> Hot stars</subject>
41
-
42
- <subject> Cool stars</subject>
43
- <subject> Variable stars</subject>
44
- <description>The Copernicus satellite, otherwise known as the Orbiting Astronomical Observatory 3 (OAO-3), obtained a series of high resolution far- (900-1560 Å) and near- (1650-3150 Å) ultraviolet spectral scans of 551 objects, primarily bright stars, from 1972 to 1981.</description>
45
- <referenceURL>http://archive.stsci.edu/copernicus/</referenceURL>
46
- <contentLevel>Research</contentLevel>
47
-
48
- </content>
49
- <interface xmlns:q2="http://www.ivoa.net/xml/VODataService/v0.5" xsi:type="q2:ParamHTTP" xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
50
- <accessURL>http://archive.stsci.edu/copernicus/search.php?</accessURL>
51
- </interface>
52
- <q1:capability>
53
- <q1:maxSR>180</q1:maxSR>
54
- <q1:maxRecords>100</q1:maxRecords>
55
-
56
- <q1:verbosity>false</q1:verbosity>
57
- </q1:capability>
58
- </Resource>
59
- <Resource updated="2005-05-17">
60
- <title xmlns="http://www.ivoa.net/xml/VOResource/v0.10">Combined Database of Sunspot Magnetic Fields</title>
61
- <shortName xmlns="http://www.ivoa.net/xml/VOResource/v0.10">SUNSPOTS</shortName>
62
- <identifier xmlns="http://www.ivoa.net/xml/VOResource/v0.10">ivo://rvo.ru/db/sunspots</identifier>
63
- <curation xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
64
- <publisher ivo-id="NOT PROVIDED">Main (Pulkovo) Astronomical Observatory of Russian Academy of Sciences (MAO RAS)</publisher>
65
-
66
- <creator />
67
- <contributor>Main (Pulkovo) Astronomical Observatory of Russian Academy of Sciences (MAO RAS), Institute of Terrestrial Magnetism, Ionosphere and Radiowave Propagation (IZMIRAN), Institute of Solar-Terrestrial Physics of the Siberian Branch of RAS (ISTP SB RAS), Crimean Astrophysical Observatory, Astronomical Observatory of Ural State University, Ussuriysk Astrophysical Observatory of the Far-Eastern Branch of the RAS, Shamakhy Astrophysical Observatory (ShAO) of the Academy of Sciences of Azerbaijan Republic</contributor>
68
- <version />
69
- </curation>
70
- <content xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
71
- <subject>Sun</subject>
72
- <subject> sunspots
73
-
74
-
75
-
76
- </subject>
77
-
78
- <description>The database contains data of magnetic field
79
- observations obtained in several observatories of Russia
80
- and FSU countries during many years of observations. Now
81
- the longest period of time (1957-1997) are presented by
82
- data, obtained by Pulkovo observatory observations which
83
- are presented in Pulkovo database of sunspot magnetic
84
- fields. In 2001 to the combined database data of another
85
- observatories of former USSR were added, which were
86
- collected in periods of 1957-1961 and 1968-1972 years. The
87
- frame of the database consists of values of maximal
88
- strength and polarity of sunspots, determined by Zeemann
89
- splitting of some lines of the solar spectrum.
90
-
91
- </description>
92
- <referenceURL>http://www.gao.spb.ru/database/mfbase/main_e.html</referenceURL>
93
- <contentLevel>Research</contentLevel>
94
- </content>
95
- </Resource>
96
- <Resource updated="2006-06-15">
97
- <title xmlns="http://www.ivoa.net/xml/VOResource/v0.10">The Database of UV Cet type variables</title>
98
- <shortName xmlns="http://www.ivoa.net/xml/VOResource/v0.10">UV Cet Database</shortName>
99
- <identifier xmlns="http://www.ivoa.net/xml/VOResource/v0.10">ivo://rvo.ru/db/uvcet</identifier>
100
- <curation xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
101
- <publisher ivo-id="NOT PROVIDED">Crimean Astrophysical Observatory / Stanford University</publisher>
102
-
103
- <creator />
104
- <contributor>Roald Gershberg</contributor>
105
- <version>1999-01-01</version>
106
- </curation>
107
- <content xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
108
- <subject>UV Cet type variable stars
109
-
110
- </subject>
111
- <description>The bibliography database for the UV Cet type variables </description>
112
-
113
- <referenceURL>www.crao.crimea.ua/databases/UVCet/</referenceURL>
114
- <contentLevel>Research</contentLevel>
115
- </content>
116
- </Resource>
117
- <Resource updated="2004-04-20">
118
- <title xmlns="http://www.ivoa.net/xml/VOResource/v0.10">The NASA/IPAC Extragalactic Database</title>
119
- <shortName xmlns="http://www.ivoa.net/xml/VOResource/v0.10">NED</shortName>
120
- <identifier xmlns="http://www.ivoa.net/xml/VOResource/v0.10">ivo://ned.ipac/NED</identifier>
121
- <curation xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
122
- <publisher ivo-id="">NASA/IPAC</publisher>
123
-
124
- <creator />
125
- <contributor>NOT PROVIDED</contributor>
126
- <version>NOT PROVIDED</version>
127
- </curation>
128
- <content xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
129
- <subject />
130
- <description>
131
- NED is built around a master list of extragalactic objects for which cross-identifications of names have been established, accurate positions and redshifts entered to the extent possible, and some basic data collected. Bibliographic references relevant to individual objects have been compiled, and abstracts of extragalactic interest are kept on line. Detailed and referenced photometry, position, and redshift data, have been taken from large compilations and from the literature. NED also includes images for over 773,000 extragalactic objects from 2MASS, from the literature, and from the Digitized Sky Survey. NED's data and references are being continually updated, with revised versions being put on-line every 2-3 months.
132
- </description>
133
-
134
- <referenceURL>http://nedwww.ipac.caltech.edu/index.html</referenceURL>
135
- <contentLevel>University</contentLevel>
136
- <contentLevel>Research</contentLevel>
137
- </content>
138
- </Resource>
139
- <Resource updated="2006-01-19">
140
- <title xmlns="http://www.ivoa.net/xml/VOResource/v0.10">STScI Searchable Registry</title>
141
- <shortName xmlns="http://www.ivoa.net/xml/VOResource/v0.10">STScIReg</shortName>
142
- <identifier xmlns="http://www.ivoa.net/xml/VOResource/v0.10">ivo://archive.stsci.edu/nvoregistry</identifier>
143
- <curation xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
144
- <publisher ivo-id="NOT PROVIDED" />
145
-
146
- <creator />
147
- <contributor />
148
- <version />
149
- </curation>
150
- <content xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
151
- <subject>
152
-
153
- </subject>
154
- <description>Fully Searchable NVO Registry. Implements OAI interface and follows the standards and protocols of the IVOA Registry working group.</description>
155
- <referenceURL />
156
-
157
- <contentLevel>General</contentLevel>
158
- </content>
159
- </Resource>
160
- <Resource updated="2006-07-06">
161
- <title xmlns="http://www.ivoa.net/xml/VOResource/v0.10">Octet: CVO Observation Catalog Exploration Tool</title>
162
- <shortName xmlns="http://www.ivoa.net/xml/VOResource/v0.10">Octet</shortName>
163
- <identifier xmlns="http://www.ivoa.net/xml/VOResource/v0.10">ivo://cadc.nrc.ca/cvo/octet</identifier>
164
- <curation xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
165
- <publisher ivo-id="">Canadian Astronomy Data Centre</publisher>
166
-
167
- <creator />
168
- <contributor>NOT PROVIDED</contributor>
169
- <version>NOT PROVIDED</version>
170
- </curation>
171
- <content xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
172
- <subject />
173
- <description>
174
- Octet is a rich client application for exploring the content of the CVO Observation Catalog. The CVO Observation Catalog contains content from selected CADC imaging archives (CFHT, JCMT, and HST) and external data services which cover other parts of the spectrum.
175
-
176
- Octet is written in Java and deployed via Java Webstart and has been tested on Linux, Mac OS X, and Windows 2000/XP.
177
- </description>
178
-
179
- <referenceURL>http://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/cvoProto/</referenceURL>
180
- <contentLevel>Research</contentLevel>
181
- </content>
182
- </Resource>
183
- <Resource xmlns:q1="http://www.ivoa.net/xml/SIA/v0.7" xsi:type="q1:SimpleImageAccess" updated="2003-12-30">
184
- <title xmlns="http://www.ivoa.net/xml/VOResource/v0.10">NCSA Astronomy Digital Image Library Simple Image Access</title>
185
- <shortName xmlns="http://www.ivoa.net/xml/VOResource/v0.10">ADIL</shortName>
186
- <identifier xmlns="http://www.ivoa.net/xml/VOResource/v0.10">ivo://adil.ncsa/targeted/SIA</identifier>
187
- <curation xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
188
- <publisher ivo-id=""> NCSA Radio Astronomy Imaging</publisher>
189
-
190
- <creator />
191
- <contributor>NOT PROVIDED</contributor>
192
- <version>NOT PROVIDED</version>
193
- </curation>
194
- <content xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
195
- <subject />
196
- <description>
197
- This allows searching for ADIL images via the SIA protocol.
198
- </description>
199
-
200
- <referenceURL>http://adil.ncsa.uiuc.edu/help/help_newquery.html</referenceURL>
201
- <contentLevel>University</contentLevel>
202
- <contentLevel>Research</contentLevel>
203
- </content>
204
- <q1:capability>
205
- <q1:imageServiceType>Cutout</q1:imageServiceType>
206
- <q1:maxQueryRegionSize>
207
-
208
- <q1:long>0</q1:long>
209
- <q1:lat>0</q1:lat>
210
- </q1:maxQueryRegionSize>
211
- <q1:maxImageExtent>
212
- <q1:long>0</q1:long>
213
- <q1:lat>0</q1:lat>
214
- </q1:maxImageExtent>
215
-
216
- <q1:maxImageSize>
217
- <q1:long>0</q1:long>
218
- <q1:lat>0</q1:lat>
219
- </q1:maxImageSize>
220
- <q1:maxFileSize>0</q1:maxFileSize>
221
- <q1:maxRecords>0</q1:maxRecords>
222
- </q1:capability>
223
-
224
- </Resource>
225
- <Resource xmlns:q1="http://www.ivoa.net/xml/OpenSkyNode/v0.1" xsi:type="q1:OpenSkyNode" updated="2005-04-08">
226
- <title xmlns="http://www.ivoa.net/xml/VOResource/v0.10">Galaxy Evolution Explorer</title>
227
- <shortName xmlns="http://www.ivoa.net/xml/VOResource/v0.10">GALEX</shortName>
228
- <identifier xmlns="http://www.ivoa.net/xml/VOResource/v0.10">ivo://archive.stsci.edu/galex/SKYNODE</identifier>
229
- <curation xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
230
- <publisher ivo-id="NOT PROVIDED">STScI</publisher>
231
-
232
- <creator />
233
- <contributor />
234
- <version>V1.0</version>
235
- </curation>
236
- <content xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
237
- <subject>SkyNode</subject>
238
- <subject>OpenSkyNode</subject>
239
-
240
- <subject>Galaxy</subject>
241
- <subject>Star</subject>
242
- <subject>Evolution</subject>
243
- <subject>GALEX</subject>
244
- <description>GALEX Open SkyNode. The Galaxy Evolution Explorer (GALEX), a NASA Small Explorer mission, is performing the first all-sky, deep imaging and spectroscopic ultraviolet surveys in space. The prime goal of GALEX is to study star formation in galaxies and its evolution with time.
245
-
246
-
247
-
248
- </description>
249
- <referenceURL />
250
-
251
- <contentLevel>General</contentLevel>
252
- </content>
253
- <interface xmlns:q2="http://www.ivoa.net/xml/VODataService/v0.5" xsi:type="q2:ParamHTTP" xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
254
- <accessURL>http://galex.stsci.edu/skynode/ogalex/nodeb.asmx</accessURL>
255
- </interface>
256
- <q1:capability>
257
- <q1:Compliance>FULL</q1:Compliance>
258
-
259
- <q1:Latitude>0</q1:Latitude>
260
- <q1:Longitude>0</q1:Longitude>
261
- <q1:MaxRecords>0</q1:MaxRecords>
262
- <q1:PrimaryTable>Photoprimary</q1:PrimaryTable>
263
- <q1:PrimaryKey>objid</q1:PrimaryKey>
264
- </q1:capability>
265
-
266
- </Resource>
267
- <Resource updated="2005-09-15">
268
- <title xmlns="http://www.ivoa.net/xml/VOResource/v0.10">Pulkovo Near-Earth Objects Page</title>
269
- <shortName xmlns="http://www.ivoa.net/xml/VOResource/v0.10">Pulkovo NEO Page</shortName>
270
- <identifier xmlns="http://www.ivoa.net/xml/VOResource/v0.10">ivo://rvo.ru/db/neo</identifier>
271
- <curation xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
272
- <publisher ivo-id="NOT PROVIDED">Main Astronomical Observatory of the Russian Academy of Sciences, Pulkovo</publisher>
273
-
274
- <creator />
275
- <contributor>Department of Positional Astronomy, other departments, Main Astronomical Observatory of the Russian Academy of Sciences, Pulkovo</contributor>
276
- <version />
277
- </curation>
278
- <content xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
279
- <subject>Near Earth objects</subject>
280
- <subject> asteroids</subject>
281
-
282
- <subject> comets
283
-
284
- </subject>
285
- <description>Near-Earth objects are asteroids and comets that can approach the Earth's orbit. This web page contains information about various theoretical and observational aspects of the Pulkovo NEO activity. Some items deal with a more wide class of minor bodies of the Solar system. You can find here the answers to some questions along with some ephemerides and lists. </description>
286
- <referenceURL>http://neopage.nm.ru/</referenceURL>
287
- <contentLevel>Research</contentLevel>
288
- </content>
289
- </Resource>
290
- <Resource updated="1997-12-09">
291
- <title xmlns="http://www.ivoa.net/xml/VOResource/v0.10">The FK5 Extension of the FK4 System (Lattanzi+ 1993) - FK5 Extension at B1950.0 on FK4 system</title>
292
- <shortName xmlns="http://www.ivoa.net/xml/VOResource/v0.10">I/202/fk5e1950</shortName>
293
- <identifier xmlns="http://www.ivoa.net/xml/VOResource/v0.10">ivo://CDS/VizieR/I/202/fk5e1950</identifier>
294
- <curation xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
295
- <publisher ivo-id="">CDS</publisher>
296
-
297
- <creator />
298
- <contributor>NOT PROVIDED</contributor>
299
- <version>NOT PROVIDED</version>
300
- </curation>
301
- <content xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
302
- <subject>Positional_Data</subject>
303
- <subject>Stars</subject>
304
-
305
- <subject>Proper_Motions</subject>
306
- <description>The FK5 catalog was expanded from 1535 stars to include an additional 3117 stars which comprise the 'extension' to the new 'Basic' FK5, the revision of the FK4. For the basic FK5 a method of converting from the FK5 system to the FK4 system is provided in the catalog while for the Extension no algorithm was supplied. This catalog consists of two files. One file is the FK5 Extension placed at B1950.0 on the FK4 system. The second file is the FK5 Extension placed at the mean Epoch of place on the FK4 system. </description>
307
- <referenceURL>http://vizier.u-strasbg.fr/cgi-bin/Cat?I/202/fk5e1950</referenceURL>
308
- <contentLevel>Research</contentLevel>
309
- </content>
310
- </Resource>
311
- <Resource updated="2006-08-08">
312
- <title xmlns="http://www.ivoa.net/xml/VOResource/v0.10">Sesame Name resolver</title>
313
- <shortName xmlns="http://www.ivoa.net/xml/VOResource/v0.10">Sesame</shortName>
314
- <identifier xmlns="http://www.ivoa.net/xml/VOResource/v0.10">http://cdsws.u-strasbg.fr/axis/services/Sesame</identifier>
315
- <curation xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
316
- <publisher ivo-id="NOT PROVIDED">CDS</publisher>
317
-
318
- <creator />
319
- <contributor />
320
- <version>1.0</version>
321
- </curation>
322
- <content xmlns="http://www.ivoa.net/xml/VOResource/v0.10">
323
- <subject>Name resolver
324
-
325
-
326
-
327
- </subject>
328
- <description>This XML Web Service resolves a name which is present in , Simbad and/or NED and/or VizieR.
329
- Also available at ADS (http://vizier.cfa.harvard.edu:8080/axis/services/Sesame), ADAC (http://vizier.nao.ac.jp:8080/axis/services/Sesame) and CADC (http://vizier.hia.nrc.ca:8080/axis/services/Sesame)
330
- </description>
331
-
332
- <referenceURL>http://cdsweb.u-strasbg.fr/cdsws.gml</referenceURL>
333
- <contentLevel>General</contentLevel>
334
- </content>
335
- </Resource>
336
- </ArrayOfResource>
@@ -1,25 +0,0 @@
1
- require 'test/unit'
2
- require 'rexml/document'
3
- require 'voruby/resources/stsci'
4
-
5
- include VORuby::Resources
6
-
7
- class STScITest < Test::Unit::TestCase
8
- def setup
9
- assert_nothing_raised {
10
- doc = STScI::clean(REXML::Document.new(File.new('test/resources/stsci.xml')))
11
- @resource_list = STScI::ArrayOfResource.load_from_xml(doc.root)
12
- }
13
- end
14
-
15
- def test_resources
16
- assert_nothing_raised {
17
- @resource_list.resources.each do |res|
18
- puts res.title.strip + " (#{res.class})"
19
- res.content.subjects.each do |subj|
20
- puts "\tSubject: #{subj.value.strip}"
21
- end
22
- end
23
- }
24
- end
25
- end
@@ -1,128 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <resource xsi:type="CatalogService"
3
- xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0"
4
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
- xsi:schemaLocation="http://www.ivoa.net/xml/VOResource/v1.0
6
- http://www.ivoa.net/xml/VOResource/v1.0"
7
- created="2006-08-14T08:00:00"
8
- updated="2006-08-14T13:26:00">
9
-
10
- <validationLevel validatedBy="ivo://noao.edu/">2</validationLevel>
11
- <validationLevel validatedBy="ivo://ncsa.uiuc.edu/">3</validationLevel>
12
-
13
- <title>NCSA Radio Astronomy Imaging</title>
14
- <shortName>NCSA-RAI</shortName>
15
- <identifier>ivo://rai.ncsa/RAI</identifier>
16
-
17
- <curation>
18
- <publisher ivo-id="ivo://ncsa.uiuc/NCSA">
19
- National Center for Supercomputing Applications
20
- </publisher>
21
- <creator>
22
- <name> Dr. Richard Crutcher </name>
23
- <logo>
24
- http://rai.ncsa.uiuc.edu/rai.jpg
25
- </logo>
26
- </creator>
27
- <creator>
28
- <name> David Gasson </name>
29
- <logo>
30
- http://www.noao.edu/rai.jpg
31
- </logo>
32
- </creator>
33
- <contributor>Dave Bell</contributor>
34
- <contributor>Chris Miller</contributor>
35
- <date>1993-01-01T02:34:45</date>
36
- <date>2006-08-14T12:25:23</date>
37
- <version>1.1</version>
38
- <contact>
39
- <name>Dr. Raymond Plante</name>
40
- <email>rplante@ncsa.uiuc.edu</email>
41
- </contact>
42
- <contact>
43
- <name>David Gasson</name>
44
- <email>dgasson@noao.edu</email>
45
- <address>950 N. Cherry Avenue, Tucson, AZ 85719 USA</address>
46
- <telephone>+1-520-318-8381</telephone>
47
- </contact>
48
- </curation>
49
-
50
- <content>
51
- <subject>radio astronomy</subject>
52
- <subject>data repositories</subject>
53
- <subject>digital libraries</subject>
54
- <subject>grid-based processing</subject>
55
- <description>
56
- The Radio Astronomy Imaging Group at the National Center for
57
- Supercomputing Applications is focused on applying
58
- high-performance computing to astronomical research. Our
59
- projects include the NCSA Astronomy Digital Image Library,
60
- the BIMA Data Archive, the BIMA Image Pipeline, and the
61
- National Virtual Observatory.
62
- </description>
63
- <referenceURL>http://rai.ncsa.uiuc.edu/</referenceURL>
64
- <source format="bibcode">1989ApJ...342L..71R</source>
65
- <type>Organisation</type>
66
- <type>Archive</type>
67
- <type>Survey</type>
68
- <contentLevel>Elementary Education</contentLevel>
69
- <contentLevel>Middle School Education</contentLevel>
70
- <contentLevel>General</contentLevel>
71
- <relationship>
72
- <relationshipType>Relationship 1</relationshipType>
73
- <relatedResource>http://blah</relatedResource>
74
- <relatedResource>http://blah2</relatedResource>
75
- </relationship>
76
- <relationship>
77
- <relationshipType>Relationship 2</relationshipType>
78
- <relatedResource>http://blah3</relatedResource>
79
- </relationship>
80
- </content>
81
-
82
- <rights>secure</rights>
83
- <rights>public</rights>
84
-
85
- <capability>
86
- <validationLevel validatedBy="ivo://noao.edu/">1</validationLevel>
87
- <validationLevel validatedBy="ivo://ncsa.uiuc.edu/">3</validationLevel>
88
- <description>This is a fake capability signifying nothing.</description>
89
- <interface xsi:type="vr:WebBrowser" role="std" version="1.1">
90
- <accessURL use="base">www.noao.edu</accessURL>
91
- <accessURL>http://nsa.noao.edu/</accessURL>
92
- <securityMethod standardID="ivo://representative/security_uri/" />
93
- <securityMethod standardID="ivo://representative/security_uri/2/" />
94
- </interface>
95
- <interface xsi:type="vr:WebService" role="std" version="1.1">
96
- <accessURL use="base">www.noao.edu</accessURL>
97
- <accessURL>http://nsa.noao.edu/</accessURL>
98
- <securityMethod standardID="ivo://representative/security_uri/" />
99
- <securityMethod standardID="ivo://representative/security_uri/2/" />
100
- <wsdlURL>http://www.noao.edu?wsdl</wsdlURL>
101
- </interface>
102
- </capability>
103
-
104
- <coverage>
105
- <footprint ivo-id="ivo://www.noao.edu/record">http://www.noao.edu/footprint/</footprint>
106
- <waveband>Radio</waveband>
107
- <waveband>Millimeter</waveband>
108
- </coverage>
109
-
110
- <facility>Facility 1</facility>
111
- <facility>Facility 2</facility>
112
-
113
- <instrument>MOSA</instrument>
114
- <instrument>MOSAIC</instrument>
115
-
116
- <table role="out">
117
- <name>Fake catalog</name>
118
- <description>This is a fake catalog</description>
119
- <column>
120
- <dataType>string</dataType>
121
- <name>StringCol</name>
122
- <description>A string in a column</description>
123
- </column>
124
- <column std="true">
125
- <dataType arraysize="2x2">float</dataType>
126
- </column>
127
- </table>
128
- </resource>