blob: c2730c80b7a51dd97c23f3a6fd83874788827db6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#
# Demonstrate support for latest VOTable standard spec.
# Set the test description string.
votest.descr = "Demonstrate support for latest VOTable standard spec."
# Convert the data$logical to a local path.
s1 = data_url // "/votable_1.2.xml"
s2 = "file://" // data_path // "/votable_1.2.xml"
s3 = "file:///localhost" // data_path // "/votable_1.2.xml"
print ("------------------------------------------------------------------")
print ("Req 1.4: VOTable Interface code will support the IVOA Standard")
print (" specification of the VOTable format at time of release.")
print ("------------------------------------------------------------------")
fcache init
print (" ")
print (" The requirement is demonstrated using a VOTable v1.2 document")
print ("retrieved from the CADC and modified to add v1.2-specific features:")
print (" ")
print (" - INFO elements before </TABLE>, </RESOURCE> and </VOTABLE>")
print (" - INFO elements w/ 'utype', 'ucd', 'ref' and 'unit' attributes")
print (" - FIELDref and PARAMref elements w/ 'ucd' and 'utype' attributes")
print (" ")
print ("The parse will print an error if these v1.2-specifics aren't supported")
print (" ")
print (" ")
# Execute the test commands.
print ("\nLogical Path: data$votable_1.2.xml") # logical path
tlcol ("data$votable_1.2.xml")
print ("\nHTTP URI: " // s1) # remote http URI
tlcol (s1)
print ("\nFile URI: " // s2) # file URI
tlcol (s2)
print ("\nFile URI: " // s3) # file URI
tlcol (s3)
|