voruby 1.1.1 → 2.0.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.
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,60 +0,0 @@
1
- <?xml version="1.0"?>
2
- <resource updated="2000-12-16">
3
- <title>1997 WIYN binary stars speckle observations (Horch+, 1999) - Individual notes (tables 2, 3 and 4)</title>
4
- <shortName>J/AJ/117/548/not</shortName>
5
- <identifier>ivo://CDS/VizieR/J/AJ/117/548/notes</identifier>
6
- <curation>
7
- <publisher>CDS</publisher>
8
- <contributor>NOT PROVIDED</contributor>
9
- <version>NOT PROVIDED</version>
10
- </curation>
11
- <content>
12
- <subject>Multiple_Stars</subject>
13
- <description>
14
- Two hundred seventy-seven position angle and separation measures of 154 double stars are presented. Three of the systems were previously unknown to be double, and 16 other systems were discovered earlier this decade by the Hipparcos satellite. Measures are derived from speckle observations taken with the Wisconsin-Indiana-Yale-NOAO (WIYN) 3.5 m telescope located at Kitt Peak, Arizona. Speckle images were obtained using two different imaging detectors, namely, a multianode microchannel array (MAMA) detector and a fast-readout CCD. A measurement precision study was performed on a sample of binaries with extremely well known orbits by comparing the measures obtained here to the ephemeris predictions. For the CCD, the root mean square (rms) deviation of residuals was found to be 3.5 milliarcseconds (mas) in separation and 12 in position angle, while the residuals of the MAMA data varied depending on the magnification used and seeing conditions but can be comparable or superior to the CCD v
15
- </description>
16
- <referenceURL>http://vizier.u-strasbg.fr/cgi-bin/Cat?J/AJ/117/548/notes</referenceURL>
17
- <contentLevel>Research</contentLevel>
18
- </content>
19
- <facility ivo-id="ivo://CDS/VizieR/J">CDS</facility>
20
- <instrument>random instrument</instrument>
21
- <coverage>
22
- <spatial>
23
- <resolution>10.21</resolution>
24
- <regionOfRegard>2.5</regionOfRegard>
25
- <region xsi:type="CoordRange">
26
- <coordFrame>FK5</coordFrame>
27
- <long><min>0</min><max>90</max></long>
28
- <lat><min>-10</min><max>10</max></lat>
29
- </region>
30
- </spatial>
31
- <spectral>
32
- <resolution>2</resolution>
33
- <range>
34
- <min>1005</min><max>3500</max>
35
- </range>
36
- <waveband>UV</waveband>
37
- <waveband>Optical</waveband>
38
- </spectral>
39
- <temporal>
40
- <startTime>2005-01-01T12:00:00</startTime>
41
- <endTime>2005-01-31T12:00:00</endTime>
42
- <resolution>2.0</resolution>
43
- </temporal>
44
- </coverage>
45
- <table>
46
- <name>A table</name>
47
- <description>A description</description>
48
- <param>
49
- <name>id</name>
50
- <dataType>int</dataType>
51
- </param>
52
- <param>
53
- <name>ra</name>
54
- <description>Standard RA</description>
55
- <unit>degrees</unit>
56
- <ucd>ra</ucd>
57
- <dataType>float</dataType>
58
- </param>
59
- </table>
60
- </resource>
@@ -1,126 +0,0 @@
1
- require 'test/unit'
2
- require 'voruby/resources/vodataservice/vodataservice_v0_5'
3
-
4
- require 'test/resources/voresource/unittest_v0_10'
5
-
6
- include VORuby::Resources::VODataService::V0_5
7
-
8
- class DataCollectionTest < ResourceTest
9
- def setup
10
- assert_nothing_raised {
11
- @res = DataCollection.load_from_file('test/resources/vodataservice/data_collection_resource_v0_5.xml')
12
- }
13
- end
14
-
15
- def test_coverage_spatial
16
- assert_equal(10.21, @res.coverage.spatial.resolution)
17
- assert_equal(2.5, @res.coverage.spatial.region_of_regard)
18
- assert_equal('FK5', @res.coverage.spatial.regions[0].coord_frame.value)
19
- assert_equal(0, @res.coverage.spatial.regions[0].long.min)
20
- assert_equal(90, @res.coverage.spatial.regions[0].long.max)
21
- assert_equal(-10, @res.coverage.spatial.regions[0].lat.min)
22
- assert_equal(10, @res.coverage.spatial.regions[0].lat.max)
23
- end
24
-
25
- def test_coverage_spectral
26
- assert_equal(2, @res.coverage.spectral.resolution)
27
- assert_equal(1005, @res.coverage.spectral.range.min)
28
- assert_equal(3500, @res.coverage.spectral.range.max)
29
- assert_equal('UV', @res.coverage.spectral.wavebands[0].value)
30
- assert_equal('Optical', @res.coverage.spectral.wavebands[1].value)
31
- end
32
-
33
- def test_coverage_temporal
34
- assert_equal('2005-01-01T12:00:00', @res.coverage.temporal.start_time.strftime('%Y-%m-%dT%H:%M:%S'))
35
- assert_equal('2005-01-31T12:00:00', @res.coverage.temporal.end_time.strftime('%Y-%m-%dT%H:%M:%S'))
36
- assert_equal(2.0, @res.coverage.temporal.resolution)
37
- end
38
-
39
- def test_facilities
40
- assert_equal('CDS', @res.facilities[0].value)
41
- assert_equal('ivo://CDS/VizieR/J', @res.facilities[0].ivo_id.value.to_s)
42
- end
43
-
44
- def test_instruments
45
- assert_equal('random instrument', @res.instruments[0].value)
46
- end
47
-
48
- def test_formats
49
- assert_equal(true, @res.formats[0].is_mime_type)
50
- assert_equal('text/plain', @res.formats[0].value)
51
- end
52
-
53
- def test_rights
54
- assert_equal('public', @res.rights[0].value)
55
- assert_equal('secure', @res.rights[1].value)
56
- end
57
-
58
- def test_access_url
59
- assert_equal('http://vizier.u-strasbg.fr/cgi-bin/Cat?J/AJ/117/548/', @res.access_url.value.to_s)
60
- end
61
- end
62
-
63
- class SkyServiceTest < ServiceTest
64
- def setup
65
- assert_nothing_raised {
66
- @res = SkyService.load_from_file('test/resources/vodataservice/sky_service_resource_v0_10.xml')
67
- }
68
- end
69
-
70
- def test_coverage_spatial
71
- assert_equal(10.21, @res.coverage.spatial.resolution)
72
- assert_equal(2.5, @res.coverage.spatial.region_of_regard)
73
- assert_equal('FK5', @res.coverage.spatial.regions[0].coord_frame.value)
74
- assert_equal(0, @res.coverage.spatial.regions[0].long.min)
75
- assert_equal(90, @res.coverage.spatial.regions[0].long.max)
76
- assert_equal(-10, @res.coverage.spatial.regions[0].lat.min)
77
- assert_equal(10, @res.coverage.spatial.regions[0].lat.max)
78
- end
79
-
80
- def test_coverage_spectral
81
- assert_equal(2, @res.coverage.spectral.resolution)
82
- assert_equal(1005, @res.coverage.spectral.range.min)
83
- assert_equal(3500, @res.coverage.spectral.range.max)
84
- assert_equal('UV', @res.coverage.spectral.wavebands[0].value)
85
- assert_equal('Optical', @res.coverage.spectral.wavebands[1].value)
86
- end
87
-
88
- def test_coverage_temporal
89
- assert_equal('2005-01-01T12:00:00', @res.coverage.temporal.start_time.strftime('%Y-%m-%dT%H:%M:%S'))
90
- assert_equal('2005-01-31T12:00:00', @res.coverage.temporal.end_time.strftime('%Y-%m-%dT%H:%M:%S'))
91
- assert_equal(2.0, @res.coverage.temporal.resolution)
92
- end
93
-
94
- def test_facilities
95
- assert_equal('CDS', @res.facilities[0].value)
96
- assert_equal('ivo://CDS/VizieR/J', @res.facilities[0].ivo_id.value.to_s)
97
- end
98
-
99
- def test_instruments
100
- assert_equal('random instrument', @res.instruments[0].value)
101
- end
102
- end
103
-
104
- class TabularSkyServiceTest < SkyServiceTest
105
- def setup
106
- assert_nothing_raised {
107
- @res = TabularSkyService.load_from_file('test/resources/vodataservice/tabular_sky_service_resource_v0_10.xml')
108
- }
109
- end
110
-
111
- def test_tables
112
- assert_equal('A table', @res.tables[0].name)
113
- assert_equal('A description', @res.tables[0].description)
114
- end
115
-
116
- def test_tables_params
117
- assert_equal('id', @res.tables[0].params[0].name)
118
- assert_equal('int', @res.tables[0].params[0].data_type.value)
119
-
120
- assert_equal('ra', @res.tables[0].params[1].name)
121
- assert_equal('Standard RA', @res.tables[0].params[1].description)
122
- assert_equal('degrees', @res.tables[0].params[1].unit)
123
- assert_equal('ra', @res.tables[0].params[1].ucd)
124
- assert_equal('float', @res.tables[0].params[1].data_type.value)
125
- end
126
- end
@@ -1,151 +0,0 @@
1
- require 'test/unit'
2
- require 'voruby/resources/vodataservice/vodataservice_v1_0'
3
-
4
- require 'test/resources/voresource/unittest_v1_0'
5
-
6
- include VORuby::Resources::VODataService::V1_0
7
-
8
- class DataCollectionTest < ResourceTest
9
- def setup
10
- assert_nothing_raised {
11
- @res = DataCollection.load_from_file('test/resources/vodataservice/data_collection_resource_v1_0.xml')
12
- }
13
- end
14
-
15
- def test_facilities
16
- assert_equal('Facility 1', @res.facilities[0].value)
17
- assert_equal('Facility 2', @res.facilities[1].value)
18
- end
19
-
20
- def test_instruments
21
- assert_equal('MOSA', @res.instruments[0].value)
22
- assert_equal('MOSAIC', @res.instruments[1].value)
23
- end
24
-
25
- def test_rights
26
- assert_equal('public', @res.rights[0].value)
27
- assert_equal('secure', @res.rights[1].value)
28
- end
29
-
30
- def test_formats
31
- assert_equal('text/xml', @res.formats[0].value)
32
- assert_equal(true, @res.formats[0].is_mime_type)
33
- assert_equal('plain text', @res.formats[1].value)
34
- end
35
-
36
- def test_access_url
37
- assert_equal('http://nsa.noao.edu/', @res.access_url.value.to_s)
38
- end
39
-
40
- def test_coverage_footprint
41
- assert_equal('ivo://www.noao.edu/record', @res.coverage.footprint.ivo_id.value.to_s)
42
- assert_equal('http://www.noao.edu/footprint/', @res.coverage.footprint.value.to_s)
43
- end
44
-
45
- def test_coverage_wavebands
46
- assert_equal('Radio', @res.coverage.wavebands[0].value)
47
- assert_equal('Millimeter', @res.coverage.wavebands[1].value)
48
- end
49
-
50
- def test_catalog_tables
51
- assert_equal('out', @res.catalogs[0].tables[0].role)
52
- assert_equal('Fake catalog', @res.catalogs[0].tables[0].name)
53
- assert_equal('This is a fake catalog', @res.catalogs[0].tables[0].description)
54
- end
55
-
56
- def test_catalog_table_columns
57
- assert_equal('string', @res.catalogs[0].tables[0].columns[0].data_type.value)
58
- assert_equal('StringCol', @res.catalogs[0].tables[0].columns[0].name)
59
- assert_equal('A string in a column', @res.catalogs[0].tables[0].columns[0].description)
60
-
61
- assert_equal(true, @res.catalogs[0].tables[0].columns[1].std)
62
- assert_equal('float', @res.catalogs[0].tables[0].columns[1].data_type.value)
63
- assert_equal('2x2', @res.catalogs[0].tables[0].columns[1].data_type.arraysize.value)
64
- end
65
- end
66
-
67
- class DataServiceTest < ServiceTest
68
- def setup
69
- assert_nothing_raised {
70
- @res = DataService.load_from_file('test/resources/vodataservice/data_service_resource_v1_0.xml')
71
- }
72
- end
73
-
74
- def test_coverage_footprint
75
- assert_equal('ivo://www.noao.edu/record', @res.coverage.footprint.ivo_id.value.to_s)
76
- assert_equal('http://www.noao.edu/footprint/', @res.coverage.footprint.value.to_s)
77
- end
78
-
79
- def test_coverage_wavebands
80
- assert_equal('Radio', @res.coverage.wavebands[0].value)
81
- assert_equal('Millimeter', @res.coverage.wavebands[1].value)
82
- end
83
-
84
- def test_facilities
85
- assert_equal('Facility 1', @res.facilities[0].value)
86
- assert_equal('Facility 2', @res.facilities[1].value)
87
- end
88
-
89
- def test_instruments
90
- assert_equal('MOSA', @res.instruments[0].value)
91
- assert_equal('MOSAIC', @res.instruments[1].value)
92
- end
93
- end
94
-
95
- class CatalogServiceTest < DataServiceTest
96
- def setup
97
- assert_nothing_raised {
98
- @res = CatalogService.load_from_file('test/resources/vodataservice/catalog_service_resource_v1_0.xml')
99
- }
100
- end
101
-
102
- def test_tables
103
- assert_equal('out', @res.tables[0].role)
104
- assert_equal('Fake catalog', @res.tables[0].name)
105
- assert_equal('This is a fake catalog', @res.tables[0].description)
106
- end
107
-
108
- def test_table_columns
109
- assert_equal('string', @res.tables[0].columns[0].data_type.value)
110
- assert_equal('StringCol', @res.tables[0].columns[0].name)
111
- assert_equal('A string in a column', @res.tables[0].columns[0].description)
112
-
113
- assert_equal(true, @res.tables[0].columns[1].std)
114
- assert_equal('float', @res.tables[0].columns[1].data_type.value)
115
- assert_equal('2x2', @res.tables[0].columns[1].data_type.arraysize.value)
116
- end
117
- end
118
-
119
- class TableServiceTest < ServiceTest
120
- def setup
121
- assert_nothing_raised {
122
- @res = CatalogService.load_from_file('test/resources/vodataservice/table_service_resource_v1_0.xml')
123
- }
124
- end
125
-
126
- def test_facilities
127
- assert_equal('Facility 1', @res.facilities[0].value)
128
- assert_equal('Facility 2', @res.facilities[1].value)
129
- end
130
-
131
- def test_instruments
132
- assert_equal('MOSA', @res.instruments[0].value)
133
- assert_equal('MOSAIC', @res.instruments[1].value)
134
- end
135
-
136
- def test_tables
137
- assert_equal('out', @res.tables[0].role)
138
- assert_equal('Fake catalog', @res.tables[0].name)
139
- assert_equal('This is a fake catalog', @res.tables[0].description)
140
- end
141
-
142
- def test_table_columns
143
- assert_equal('string', @res.tables[0].columns[0].data_type.value)
144
- assert_equal('StringCol', @res.tables[0].columns[0].name)
145
- assert_equal('A string in a column', @res.tables[0].columns[0].description)
146
-
147
- assert_equal(true, @res.tables[0].columns[1].std)
148
- assert_equal('float', @res.tables[0].columns[1].data_type.value)
149
- assert_equal('2x2', @res.tables[0].columns[1].data_type.arraysize.value)
150
- end
151
- end
@@ -1,20 +0,0 @@
1
- <?xml version="1.0"?>
2
- <resource updated="2000-12-16">
3
- <title>1997 WIYN binary stars speckle observations (Horch+, 1999) - Individual notes (tables 2, 3 and 4)</title>
4
- <shortName>J/AJ/117/548/not</shortName>
5
- <identifier>ivo://CDS/VizieR/J/AJ/117/548/notes</identifier>
6
- <curation>
7
- <publisher>CDS</publisher>
8
- <contributor>NOT PROVIDED</contributor>
9
- <version>NOT PROVIDED</version>
10
- </curation>
11
- <content>
12
- <subject>Multiple_Stars</subject>
13
- <description>
14
- Two hundred seventy-seven position angle and separation measures of 154 double stars are presented. Three of the systems were previously unknown to be double, and 16 other systems were discovered earlier this decade by the Hipparcos satellite. Measures are derived from speckle observations taken with the Wisconsin-Indiana-Yale-NOAO (WIYN) 3.5 m telescope located at Kitt Peak, Arizona. Speckle images were obtained using two different imaging detectors, namely, a multianode microchannel array (MAMA) detector and a fast-readout CCD. A measurement precision study was performed on a sample of binaries with extremely well known orbits by comparing the measures obtained here to the ephemeris predictions. For the CCD, the root mean square (rms) deviation of residuals was found to be 3.5 milliarcseconds (mas) in separation and 12 in position angle, while the residuals of the MAMA data varied depending on the magnification used and seeing conditions but can be comparable or superior to the CCD v
15
- </description>
16
- <referenceURL>http://vizier.u-strasbg.fr/cgi-bin/Cat?J/AJ/117/548/notes</referenceURL>
17
- <contentLevel>Research</contentLevel>
18
- </content>
19
- <managingOrg>CDS</managingOrg>
20
- </resource>
@@ -1,82 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <resource
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
- <managingOrg>STScI</managingOrg>
14
-
15
-
16
- <title>NCSA Radio Astronomy Imaging</title>
17
- <shortName>NCSA-RAI</shortName>
18
- <identifier>ivo://rai.ncsa/RAI</identifier>
19
-
20
- <curation>
21
- <publisher ivo-id="ivo://ncsa.uiuc/NCSA">
22
- National Center for Supercomputing Applications
23
- </publisher>
24
- <creator>
25
- <name> Dr. Richard Crutcher </name>
26
- <logo>http://rai.ncsa.uiuc.edu/rai.jpg</logo>
27
- </creator>
28
- <creator>
29
- <name> David Gasson </name>
30
- <logo>
31
- http://www.noao.edu/rai.jpg
32
- </logo>
33
- </creator>
34
- <contributor>Dave Bell</contributor>
35
- <contributor>Chris Miller</contributor>
36
- <date>1993-01-01T02:34:45</date>
37
- <date>2006-08-14T12:25:23</date>
38
- <version>1.1</version>
39
- <contact>
40
- <name>Dr. Raymond Plante</name>
41
- <email>rplante@ncsa.uiuc.edu</email>
42
- </contact>
43
- <contact>
44
- <name>David Gasson</name>
45
- <email>dgasson@noao.edu</email>
46
- <address>950 N. Cherry Avenue, Tucson, AZ 85719 USA</address>
47
- <telephone>+1-520-318-8381</telephone>
48
- </contact>
49
- </curation>
50
-
51
- <content>
52
- <subject>radio astronomy</subject>
53
- <subject>data repositories</subject>
54
- <subject>digital libraries</subject>
55
- <subject>grid-based processing</subject>
56
- <description>
57
- The Radio Astronomy Imaging Group at the National Center for
58
- Supercomputing Applications is focused on applying
59
- high-performance computing to astronomical research. Our
60
- projects include the NCSA Astronomy Digital Image Library,
61
- the BIMA Data Archive, the BIMA Image Pipeline, and the
62
- National Virtual Observatory.
63
- </description>
64
- <referenceURL>http://rai.ncsa.uiuc.edu/</referenceURL>
65
- <source format="bibcode">1989ApJ...342L..71R</source>
66
- <type>Organisation</type>
67
- <type>Archive</type>
68
- <type>Survey</type>
69
- <contentLevel>Elementary Education</contentLevel>
70
- <contentLevel>Middle School Education</contentLevel>
71
- <contentLevel>General</contentLevel>
72
- <relationship>
73
- <relationshipType>Relationship 1</relationshipType>
74
- <relatedResource>http://blah</relatedResource>
75
- <relatedResource>http://blah2</relatedResource>
76
- </relationship>
77
- <relationship>
78
- <relationshipType>Relationship 2</relationshipType>
79
- <relatedResource>http://blah3</relatedResource>
80
- </relationship>
81
- </content>
82
- </resource>
@@ -1,20 +0,0 @@
1
- <?xml version="1.0"?>
2
- <resource updated="2000-12-16">
3
- <title>1997 WIYN binary stars speckle observations (Horch+, 1999) - Individual notes (tables 2, 3 and 4)</title>
4
- <shortName>J/AJ/117/548/not</shortName>
5
- <identifier>ivo://CDS/VizieR/J/AJ/117/548/notes</identifier>
6
- <curation>
7
- <publisher>CDS</publisher>
8
- <contributor>NOT PROVIDED</contributor>
9
- <version>NOT PROVIDED</version>
10
- </curation>
11
- <content>
12
- <subject>Multiple_Stars</subject>
13
- <description>
14
- Two hundred seventy-seven position angle and separation measures of 154 double stars are presented. Three of the systems were previously unknown to be double, and 16 other systems were discovered earlier this decade by the Hipparcos satellite. Measures are derived from speckle observations taken with the Wisconsin-Indiana-Yale-NOAO (WIYN) 3.5 m telescope located at Kitt Peak, Arizona. Speckle images were obtained using two different imaging detectors, namely, a multianode microchannel array (MAMA) detector and a fast-readout CCD. A measurement precision study was performed on a sample of binaries with extremely well known orbits by comparing the measures obtained here to the ephemeris predictions. For the CCD, the root mean square (rms) deviation of residuals was found to be 3.5 milliarcseconds (mas) in separation and 12 in position angle, while the residuals of the MAMA data varied depending on the magnification used and seeing conditions but can be comparable or superior to the CCD v
15
- </description>
16
- <referenceURL>http://vizier.u-strasbg.fr/cgi-bin/Cat?J/AJ/117/548/notes</referenceURL>
17
- <contentLevel>Research</contentLevel>
18
- </content>
19
- <managedAuthority>CDS</managedAuthority>
20
- </resource>