voruby 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +339 -0
- data/REQUIREMENTS +4 -0
- data/Rakefile.rb +296 -0
- data/lib/voruby/adql/adql.rb +2735 -0
- data/lib/voruby/adql/ext.rb +15 -0
- data/lib/voruby/adql/loader.rb +5 -0
- data/lib/voruby/adql/operations.rb +54 -0
- data/lib/voruby/adql/parser.rb +160 -0
- data/lib/voruby/adql/transforms.rb +573 -0
- data/lib/voruby/ext.rb +17 -0
- data/lib/voruby/loader.rb +4 -0
- data/lib/voruby/misc/propertyfile.rb +36 -0
- data/lib/voruby/plastic/applications.rb +174 -0
- data/lib/voruby/plastic/constants.rb +30 -0
- data/lib/voruby/plastic/loader.rb +10 -0
- data/lib/voruby/plastic/plastic.rb +1 -0
- data/lib/voruby/resources/conesearch/conesearch.rb +9 -0
- data/lib/voruby/resources/conesearch/conesearch_v0_2.rb +55 -0
- data/lib/voruby/resources/conesearch/conesearch_v0_3.rb +50 -0
- data/lib/voruby/resources/conesearch/conesearch_v1_0.rb +72 -0
- data/lib/voruby/resources/conesearch/loader.rb +4 -0
- data/lib/voruby/resources/loader.rb +50 -0
- data/lib/voruby/resources/nodes.rb +190 -0
- data/lib/voruby/resources/openskynode/loader.rb +4 -0
- data/lib/voruby/resources/openskynode/openskynode.rb +9 -0
- data/lib/voruby/resources/openskynode/openskynode_v0_1.rb +54 -0
- data/lib/voruby/resources/sia/loader.rb +5 -0
- data/lib/voruby/resources/sia/sia.rb +9 -0
- data/lib/voruby/resources/sia/sia_v0_6.rb +90 -0
- data/lib/voruby/resources/sia/sia_v0_7.rb +89 -0
- data/lib/voruby/resources/sia/sia_v1_0.rb +122 -0
- data/lib/voruby/resources/stsci.rb +59 -0
- data/lib/voruby/resources/vodataservice/coverage_v0_2.rb +195 -0
- data/lib/voruby/resources/vodataservice/coverage_v0_3.rb +158 -0
- data/lib/voruby/resources/vodataservice/loader.rb +5 -0
- data/lib/voruby/resources/vodataservice/vodataservice.rb +9 -0
- data/lib/voruby/resources/vodataservice/vodataservice_v0_4.rb +189 -0
- data/lib/voruby/resources/vodataservice/vodataservice_v0_5.rb +163 -0
- data/lib/voruby/resources/vodataservice/vodataservice_v1_0.rb +221 -0
- data/lib/voruby/resources/voregistry/loader.rb +4 -0
- data/lib/voruby/resources/voregistry/voregistry.rb +9 -0
- data/lib/voruby/resources/voregistry/voregistry_v0_2.rb +40 -0
- data/lib/voruby/resources/voregistry/voregistry_v0_3.rb +30 -0
- data/lib/voruby/resources/voregistry/voregistry_v1_0.rb +86 -0
- data/lib/voruby/resources/voresource/loader.rb +17 -0
- data/lib/voruby/resources/voresource/voresource.rb +9 -0
- data/lib/voruby/resources/voresource/voresource_v0_10.rb +322 -0
- data/lib/voruby/resources/voresource/voresource_v0_9.rb +405 -0
- data/lib/voruby/resources/voresource/voresource_v1_0.rb +230 -0
- data/lib/voruby/services/ext.rb +11 -0
- data/lib/voruby/services/gestalt/footprint.rb +95 -0
- data/lib/voruby/services/gestalt/wcs_fixer.rb +105 -0
- data/lib/voruby/services/gestalt/wesix.rb +155 -0
- data/lib/voruby/services/loader.rb +7 -0
- data/lib/voruby/services/registry/registry.rb +53 -0
- data/lib/voruby/services/resolver/resolver.rb +35 -0
- data/lib/voruby/sesame/loader.rb +6 -0
- data/lib/voruby/sesame/sesame_v1_0.rb +64 -0
- data/lib/voruby/simple/loader.rb +6 -0
- data/lib/voruby/simple/parameters.rb +196 -0
- data/lib/voruby/simple/sap.rb +446 -0
- data/lib/voruby/spacetime/loader.rb +3 -0
- data/lib/voruby/spacetime/spacetime.rb +607 -0
- data/lib/voruby/stc/coords_v1_20.rb +900 -0
- data/lib/voruby/stc/loader.rb +55 -0
- data/lib/voruby/stc/region_v1_20.rb +274 -0
- data/lib/voruby/stc/stc_v1_20.rb +1196 -0
- data/lib/voruby/util.rb +27 -0
- data/lib/voruby/voevent/loader.rb +7 -0
- data/lib/voruby/voevent/voevent_v1_0.rb +213 -0
- data/lib/voruby/voevent/voevent_v1_1.rb +196 -0
- data/lib/voruby/votables/chandra.rb +410 -0
- data/lib/voruby/votables/cnoc.rb +393 -0
- data/lib/voruby/votables/data.rb +179 -0
- data/lib/voruby/votables/galex.rb +390 -0
- data/lib/voruby/votables/hst.rb +391 -0
- data/lib/voruby/votables/int.rb +391 -0
- data/lib/voruby/votables/libxml_parser.rb +411 -0
- data/lib/voruby/votables/libxml_votable.rb +67 -0
- data/lib/voruby/votables/loader.rb +10 -0
- data/lib/voruby/votables/meta.rb +763 -0
- data/lib/voruby/votables/misc.rb +51 -0
- data/lib/voruby/votables/nsa.rb +393 -0
- data/lib/voruby/votables/nsar3.rb +410 -0
- data/lib/voruby/votables/rexml_parser.rb +408 -0
- data/lib/voruby/votables/rexml_votable.rb +67 -0
- data/lib/voruby/votables/sdss.rb +393 -0
- data/lib/voruby/votables/transforms.rb +388 -0
- data/lib/voruby/votables/tree.rb +45 -0
- data/lib/voruby/votables/types.rb +391 -0
- data/lib/voruby/votables/votable.rb +630 -0
- data/lib/voruby/votables/xmm.rb +394 -0
- data/test/adql/test1.adql +49 -0
- data/test/adql/test2.adql +51 -0
- data/test/adql/test3.adql +81 -0
- data/test/adql/test4.adql +53 -0
- data/test/adql/test5.adql +55 -0
- data/test/adql/test6.adql +18 -0
- data/test/adql/test7.adql +48 -0
- data/test/adql/unittest.rb +1672 -0
- data/test/plastic/test.rb +44 -0
- data/test/plastic/test.vot +5385 -0
- data/test/plastic/unittest.rb +66 -0
- data/test/resources/conesearch/conesearch_v0_3.xml +31 -0
- data/test/resources/conesearch/conesearch_v1_0.xml +86 -0
- data/test/resources/conesearch/unittest_v0_3.rb +22 -0
- data/test/resources/conesearch/unittest_v1_0.rb +24 -0
- data/test/resources/openskynode/open_sky_node_v0_1.xml +32 -0
- data/test/resources/openskynode/unittest_v0_1.rb +31 -0
- data/test/resources/sia/simple_image_access_v0_7.xml +36 -0
- data/test/resources/sia/simple_image_access_v1_0.xml +122 -0
- data/test/resources/sia/unittest_v0_7.rb +24 -0
- data/test/resources/sia/unittest_v1_0.rb +29 -0
- data/test/resources/stsci.xml +336 -0
- data/test/resources/unittest_stsci.rb +25 -0
- data/test/resources/vodataservice/catalog_service_resource_v1_0.xml +128 -0
- data/test/resources/vodataservice/data_collection_resource_v0_5.xml +54 -0
- data/test/resources/vodataservice/data_collection_resource_v1_0.xml +117 -0
- data/test/resources/vodataservice/data_service_resource_v1_0.xml +115 -0
- data/test/resources/vodataservice/sky_service_resource_v0_10.xml +45 -0
- data/test/resources/vodataservice/table_service_resource_v1_0.xml +122 -0
- data/test/resources/vodataservice/tabular_sky_service_resource_v0_10.xml +60 -0
- data/test/resources/vodataservice/unittest_v0_5.rb +126 -0
- data/test/resources/vodataservice/unittest_v1_0.rb +151 -0
- data/test/resources/voregistry/authority_resource_v0_3.xml +20 -0
- data/test/resources/voregistry/authority_resource_v1_0.xml +82 -0
- data/test/resources/voregistry/registry_service_v0_3.xml +20 -0
- data/test/resources/voregistry/registry_service_v1_0.xml +107 -0
- data/test/resources/voregistry/unittest_v0_3.rb +31 -0
- data/test/resources/voregistry/unittest_v1_0.rb +34 -0
- data/test/resources/voresource/organisation_resource_v1_0.xml +90 -0
- data/test/resources/voresource/resource_organisation_v0_10.xml +22 -0
- data/test/resources/voresource/resource_service_v0_10.xml +19 -0
- data/test/resources/voresource/resource_v0_10.xml +19 -0
- data/test/resources/voresource/resource_v1_0.xml +79 -0
- data/test/resources/voresource/service_resource_v1_0.xml +91 -0
- data/test/resources/voresource/unittest_v0_10.rb +61 -0
- data/test/resources/voresource/unittest_v0_9.rb +4 -0
- data/test/resources/voresource/unittest_v1_0.rb +190 -0
- data/test/services/gestalt/unittest.rb +74 -0
- data/test/services/registry/unittest.rb +34 -0
- data/test/services/resolver/unittest.rb +38 -0
- data/test/simple/unittest.rb +46 -0
- data/test/spacetime/unittest.rb +39 -0
- data/test/stc/catalog_entry_location_v1_20.xml +112 -0
- data/test/stc/obs_data_location_v1_20.xml +108 -0
- data/test/stc/search_location_v1_20.xml +54 -0
- data/test/stc/stc_resource_profile_v1_20.xml +60 -0
- data/test/stc/unittest_v1_20.rb +620 -0
- data/test/voevent/unittest_v1_0.rb +79 -0
- data/test/voevent/unittest_v1_1.rb +70 -0
- data/test/voevent/voevent_v1_0.xml +96 -0
- data/test/voevent/voevent_v1_1.xml +76 -0
- data/test/votables/test.vot +366 -0
- data/test/votables/unittest.rb +54 -0
- 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="<" />
|
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=">">
|
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>
|