voruby 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. data/LICENSE +339 -0
  2. data/REQUIREMENTS +4 -0
  3. data/Rakefile.rb +296 -0
  4. data/lib/voruby/adql/adql.rb +2735 -0
  5. data/lib/voruby/adql/ext.rb +15 -0
  6. data/lib/voruby/adql/loader.rb +5 -0
  7. data/lib/voruby/adql/operations.rb +54 -0
  8. data/lib/voruby/adql/parser.rb +160 -0
  9. data/lib/voruby/adql/transforms.rb +573 -0
  10. data/lib/voruby/ext.rb +17 -0
  11. data/lib/voruby/loader.rb +4 -0
  12. data/lib/voruby/misc/propertyfile.rb +36 -0
  13. data/lib/voruby/plastic/applications.rb +174 -0
  14. data/lib/voruby/plastic/constants.rb +30 -0
  15. data/lib/voruby/plastic/loader.rb +10 -0
  16. data/lib/voruby/plastic/plastic.rb +1 -0
  17. data/lib/voruby/resources/conesearch/conesearch.rb +9 -0
  18. data/lib/voruby/resources/conesearch/conesearch_v0_2.rb +55 -0
  19. data/lib/voruby/resources/conesearch/conesearch_v0_3.rb +50 -0
  20. data/lib/voruby/resources/conesearch/conesearch_v1_0.rb +72 -0
  21. data/lib/voruby/resources/conesearch/loader.rb +4 -0
  22. data/lib/voruby/resources/loader.rb +50 -0
  23. data/lib/voruby/resources/nodes.rb +190 -0
  24. data/lib/voruby/resources/openskynode/loader.rb +4 -0
  25. data/lib/voruby/resources/openskynode/openskynode.rb +9 -0
  26. data/lib/voruby/resources/openskynode/openskynode_v0_1.rb +54 -0
  27. data/lib/voruby/resources/sia/loader.rb +5 -0
  28. data/lib/voruby/resources/sia/sia.rb +9 -0
  29. data/lib/voruby/resources/sia/sia_v0_6.rb +90 -0
  30. data/lib/voruby/resources/sia/sia_v0_7.rb +89 -0
  31. data/lib/voruby/resources/sia/sia_v1_0.rb +122 -0
  32. data/lib/voruby/resources/stsci.rb +59 -0
  33. data/lib/voruby/resources/vodataservice/coverage_v0_2.rb +195 -0
  34. data/lib/voruby/resources/vodataservice/coverage_v0_3.rb +158 -0
  35. data/lib/voruby/resources/vodataservice/loader.rb +5 -0
  36. data/lib/voruby/resources/vodataservice/vodataservice.rb +9 -0
  37. data/lib/voruby/resources/vodataservice/vodataservice_v0_4.rb +189 -0
  38. data/lib/voruby/resources/vodataservice/vodataservice_v0_5.rb +163 -0
  39. data/lib/voruby/resources/vodataservice/vodataservice_v1_0.rb +221 -0
  40. data/lib/voruby/resources/voregistry/loader.rb +4 -0
  41. data/lib/voruby/resources/voregistry/voregistry.rb +9 -0
  42. data/lib/voruby/resources/voregistry/voregistry_v0_2.rb +40 -0
  43. data/lib/voruby/resources/voregistry/voregistry_v0_3.rb +30 -0
  44. data/lib/voruby/resources/voregistry/voregistry_v1_0.rb +86 -0
  45. data/lib/voruby/resources/voresource/loader.rb +17 -0
  46. data/lib/voruby/resources/voresource/voresource.rb +9 -0
  47. data/lib/voruby/resources/voresource/voresource_v0_10.rb +322 -0
  48. data/lib/voruby/resources/voresource/voresource_v0_9.rb +405 -0
  49. data/lib/voruby/resources/voresource/voresource_v1_0.rb +230 -0
  50. data/lib/voruby/services/ext.rb +11 -0
  51. data/lib/voruby/services/gestalt/footprint.rb +95 -0
  52. data/lib/voruby/services/gestalt/wcs_fixer.rb +105 -0
  53. data/lib/voruby/services/gestalt/wesix.rb +155 -0
  54. data/lib/voruby/services/loader.rb +7 -0
  55. data/lib/voruby/services/registry/registry.rb +53 -0
  56. data/lib/voruby/services/resolver/resolver.rb +35 -0
  57. data/lib/voruby/sesame/loader.rb +6 -0
  58. data/lib/voruby/sesame/sesame_v1_0.rb +64 -0
  59. data/lib/voruby/simple/loader.rb +6 -0
  60. data/lib/voruby/simple/parameters.rb +196 -0
  61. data/lib/voruby/simple/sap.rb +446 -0
  62. data/lib/voruby/spacetime/loader.rb +3 -0
  63. data/lib/voruby/spacetime/spacetime.rb +607 -0
  64. data/lib/voruby/stc/coords_v1_20.rb +900 -0
  65. data/lib/voruby/stc/loader.rb +55 -0
  66. data/lib/voruby/stc/region_v1_20.rb +274 -0
  67. data/lib/voruby/stc/stc_v1_20.rb +1196 -0
  68. data/lib/voruby/util.rb +27 -0
  69. data/lib/voruby/voevent/loader.rb +7 -0
  70. data/lib/voruby/voevent/voevent_v1_0.rb +213 -0
  71. data/lib/voruby/voevent/voevent_v1_1.rb +196 -0
  72. data/lib/voruby/votables/chandra.rb +410 -0
  73. data/lib/voruby/votables/cnoc.rb +393 -0
  74. data/lib/voruby/votables/data.rb +179 -0
  75. data/lib/voruby/votables/galex.rb +390 -0
  76. data/lib/voruby/votables/hst.rb +391 -0
  77. data/lib/voruby/votables/int.rb +391 -0
  78. data/lib/voruby/votables/libxml_parser.rb +411 -0
  79. data/lib/voruby/votables/libxml_votable.rb +67 -0
  80. data/lib/voruby/votables/loader.rb +10 -0
  81. data/lib/voruby/votables/meta.rb +763 -0
  82. data/lib/voruby/votables/misc.rb +51 -0
  83. data/lib/voruby/votables/nsa.rb +393 -0
  84. data/lib/voruby/votables/nsar3.rb +410 -0
  85. data/lib/voruby/votables/rexml_parser.rb +408 -0
  86. data/lib/voruby/votables/rexml_votable.rb +67 -0
  87. data/lib/voruby/votables/sdss.rb +393 -0
  88. data/lib/voruby/votables/transforms.rb +388 -0
  89. data/lib/voruby/votables/tree.rb +45 -0
  90. data/lib/voruby/votables/types.rb +391 -0
  91. data/lib/voruby/votables/votable.rb +630 -0
  92. data/lib/voruby/votables/xmm.rb +394 -0
  93. data/test/adql/test1.adql +49 -0
  94. data/test/adql/test2.adql +51 -0
  95. data/test/adql/test3.adql +81 -0
  96. data/test/adql/test4.adql +53 -0
  97. data/test/adql/test5.adql +55 -0
  98. data/test/adql/test6.adql +18 -0
  99. data/test/adql/test7.adql +48 -0
  100. data/test/adql/unittest.rb +1672 -0
  101. data/test/plastic/test.rb +44 -0
  102. data/test/plastic/test.vot +5385 -0
  103. data/test/plastic/unittest.rb +66 -0
  104. data/test/resources/conesearch/conesearch_v0_3.xml +31 -0
  105. data/test/resources/conesearch/conesearch_v1_0.xml +86 -0
  106. data/test/resources/conesearch/unittest_v0_3.rb +22 -0
  107. data/test/resources/conesearch/unittest_v1_0.rb +24 -0
  108. data/test/resources/openskynode/open_sky_node_v0_1.xml +32 -0
  109. data/test/resources/openskynode/unittest_v0_1.rb +31 -0
  110. data/test/resources/sia/simple_image_access_v0_7.xml +36 -0
  111. data/test/resources/sia/simple_image_access_v1_0.xml +122 -0
  112. data/test/resources/sia/unittest_v0_7.rb +24 -0
  113. data/test/resources/sia/unittest_v1_0.rb +29 -0
  114. data/test/resources/stsci.xml +336 -0
  115. data/test/resources/unittest_stsci.rb +25 -0
  116. data/test/resources/vodataservice/catalog_service_resource_v1_0.xml +128 -0
  117. data/test/resources/vodataservice/data_collection_resource_v0_5.xml +54 -0
  118. data/test/resources/vodataservice/data_collection_resource_v1_0.xml +117 -0
  119. data/test/resources/vodataservice/data_service_resource_v1_0.xml +115 -0
  120. data/test/resources/vodataservice/sky_service_resource_v0_10.xml +45 -0
  121. data/test/resources/vodataservice/table_service_resource_v1_0.xml +122 -0
  122. data/test/resources/vodataservice/tabular_sky_service_resource_v0_10.xml +60 -0
  123. data/test/resources/vodataservice/unittest_v0_5.rb +126 -0
  124. data/test/resources/vodataservice/unittest_v1_0.rb +151 -0
  125. data/test/resources/voregistry/authority_resource_v0_3.xml +20 -0
  126. data/test/resources/voregistry/authority_resource_v1_0.xml +82 -0
  127. data/test/resources/voregistry/registry_service_v0_3.xml +20 -0
  128. data/test/resources/voregistry/registry_service_v1_0.xml +107 -0
  129. data/test/resources/voregistry/unittest_v0_3.rb +31 -0
  130. data/test/resources/voregistry/unittest_v1_0.rb +34 -0
  131. data/test/resources/voresource/organisation_resource_v1_0.xml +90 -0
  132. data/test/resources/voresource/resource_organisation_v0_10.xml +22 -0
  133. data/test/resources/voresource/resource_service_v0_10.xml +19 -0
  134. data/test/resources/voresource/resource_v0_10.xml +19 -0
  135. data/test/resources/voresource/resource_v1_0.xml +79 -0
  136. data/test/resources/voresource/service_resource_v1_0.xml +91 -0
  137. data/test/resources/voresource/unittest_v0_10.rb +61 -0
  138. data/test/resources/voresource/unittest_v0_9.rb +4 -0
  139. data/test/resources/voresource/unittest_v1_0.rb +190 -0
  140. data/test/services/gestalt/unittest.rb +74 -0
  141. data/test/services/registry/unittest.rb +34 -0
  142. data/test/services/resolver/unittest.rb +38 -0
  143. data/test/simple/unittest.rb +46 -0
  144. data/test/spacetime/unittest.rb +39 -0
  145. data/test/stc/catalog_entry_location_v1_20.xml +112 -0
  146. data/test/stc/obs_data_location_v1_20.xml +108 -0
  147. data/test/stc/search_location_v1_20.xml +54 -0
  148. data/test/stc/stc_resource_profile_v1_20.xml +60 -0
  149. data/test/stc/unittest_v1_20.rb +620 -0
  150. data/test/voevent/unittest_v1_0.rb +79 -0
  151. data/test/voevent/unittest_v1_1.rb +70 -0
  152. data/test/voevent/voevent_v1_0.xml +96 -0
  153. data/test/voevent/voevent_v1_1.xml +76 -0
  154. data/test/votables/test.vot +366 -0
  155. data/test/votables/unittest.rb +54 -0
  156. metadata +256 -0
@@ -0,0 +1,55 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+
3
+ <Select xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xmlns="http://www.ivoa.net/xml/ADQL/v1.0">
6
+
7
+ <SelectionList>
8
+ <Item xsi:type="columnReferenceType" Table="o" Name="objid" />
9
+ <Item xsi:type="columnReferenceType" Table="o" Name="ra" />
10
+ <Item xsi:type="columnReferenceType" Table="o" Name="dec" />
11
+ <Item xsi:type="columnReferenceType" Table="o" Name="type" />
12
+ <Item xsi:type="columnReferenceType" Table="t" Name="objid" />
13
+ <Item xsi:type="columnReferenceType" Table="t" Name="j_m" />
14
+ <Item xsi:type="columnReferenceType" Table="o" Name="z" />
15
+ </SelectionList>
16
+
17
+ <From>
18
+ <Table xsi:type="archiveTableType" Archive="SDSSDR2"
19
+ Name="PhotoPrimary" Alias="o" />
20
+ <Table xsi:type="archiveTableType" Archive="TWOMASS"
21
+ Name="PhotoPrimary" Alias="t" />
22
+ </From>
23
+
24
+ <Where>
25
+ <Condition xsi:type="intersectionSearchType">
26
+ <Condition xsi:type="intersectionSearchType">
27
+ <Condition xsi:type="xMatchType">
28
+ <Table xsi:type="includeTableType" Name="o" />
29
+ <Table xsi:type="includeTableType" Name="t" />
30
+ <Nature Comparison="&lt;" />
31
+ <Sigma xsi:type="realType" Value="2.5" />
32
+ </Condition>
33
+ <Condition xsi:type="regionSearchType">
34
+ <Region xmlns:q1="http://www.ivoa.net/xml/STC/STCregion/v1.10"
35
+ xsi:type="q1:circleType" unit="deg">
36
+ <q1:Center>16.031 -0.891</q1:Center>
37
+ <q1:Radius>30</q1:Radius>
38
+ </Region>
39
+ </Condition>
40
+ </Condition>
41
+ <Condition xsi:type="comparisonPredType" Comparison=">">
42
+ <Arg xsi:type="closedExprType">
43
+ <Arg xsi:type="binaryExprType" Oper="-">
44
+ <Arg xsi:type="columnReferenceType" Table="o" Name="z" />
45
+ <Arg xsi:type="columnReferenceType" Table="t" Name="j_m" />
46
+ </Arg>
47
+ </Arg>
48
+ <Arg xsi:type="atomType">
49
+ <Literal xsi:type="integerType" Value="2" />
50
+ </Arg>
51
+ </Condition>
52
+ </Condition>
53
+ </Where>
54
+
55
+ </Select>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+
3
+ <Select xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xmlns="http://www.ivoa.net/xml/ADQL/v1.0">
6
+
7
+ <Restrict Top="10" />
8
+
9
+ <SelectionList>
10
+ <Item xsi:type="columnReferenceType" Table="s" Name="*" />
11
+ </SelectionList>
12
+
13
+ <From>
14
+ <Table xsi:type="archiveTableType" Archive="sdss"
15
+ Name="photoobjall" Alias="s" />
16
+ </From>
17
+
18
+ </Select>
@@ -0,0 +1,48 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+
3
+ <Select xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xmlns="http://www.ivoa.net/xml/ADQL/v1.0">
6
+
7
+ <SelectionList>
8
+ <Item xsi:type="columnReferenceType" Table="b" Name="objid" />
9
+ <Item xsi:type="columnReferenceType" Table="b" Name="ra" />
10
+ <Item xsi:type="columnReferenceType" Table="b" Name="dec" />
11
+ <Item xsi:type="columnReferenceType" Table="b" Name="u" />
12
+ <Item xsi:type="aliasSelectionItemType" As="sdssRS">
13
+ <Expression xsi:type="columnReferenceType" Table="s" Name="z" />
14
+ </Item>
15
+ </SelectionList>
16
+
17
+ <From>
18
+ <Table xsi:type="archiveTableType" Archive="sdss"
19
+ Name="photoprimary" Alias="b" />
20
+ <Table xsi:type="archiveTableType" Archive="sdss"
21
+ Name="specobjall" Alias="s" />
22
+ </From>
23
+
24
+ <Where>
25
+ <Condition xsi:type="intersectionSearchType">
26
+ <Condition xsi:type="intersectionSearchType">
27
+ <Condition xsi:type="comparisonPredType" Comparison="=">
28
+ <Arg xsi:type="columnReferenceType" Table="s" Name="specobjid" />
29
+ <Arg xsi:type="columnReferenceType" Table="b" Name="specobjid" />
30
+ </Condition>
31
+ <Condition xsi:type="comparisonPredType" Comparison="&gt;">
32
+ <Arg xsi:type="columnReferenceType" Table="s" Name="z" />
33
+ <Arg xsi:type="atomType">
34
+ <Literal xsi:type="realType" Value="1.8" />
35
+ </Arg>
36
+ </Condition>
37
+ </Condition>
38
+ <Condition xsi:type="regionSearchType">
39
+ <Region xmlns:q1="http://www.ivoa.net/xml/STC/STCregion/v1.10"
40
+ xsi:type="q1:circleType" unit="deg">
41
+ <q1:Center>181.3 -0.76</q1:Center>
42
+ <q1:Radius>30</q1:Radius>
43
+ </Region>
44
+ </Condition>
45
+ </Condition>
46
+ </Where>
47
+
48
+ </Select>