This web application provides access to astronomical data using the following Virtual Observatory protocols:
Protocol | Version | Endpoint Base |
---|---|---|
Table Access Protocol | v1.0 | /tap |
Simple Cone Search | v1.03 | /scs |
Simple Image Access | v2.0 | /sia2 |
Datalink | v1.0 | /datalink |
Each protocol has an /availability
and /capabilities
endpoint (e.g. /tap/capabilities
) which comply
with the IVOA Support Interfaces (VOSI) v1.0 specification. The /capabilities
endpoint
lists all other endpoints and is the means clients will use
for auto discovery of services. The /capabilities
will also be included in the IVOA registry entries for each VO Tools instance.
The application is designed to be reusable both within CSIRO and by other data centers. As a result there should be no CSIRO specific code or functionality included in the application. All customisation is also accessible using configuration rather than via code.
Current Release: v1.4
Notes for each release are available at release_notes.md
- Java v8 SDK
- Web container: tested with Tomcat 7
- Postgres database running PostgreSQL 9.4 or later and pgShere v1.1 or later
CASDA Vo Tools is distributed as a ready to install war file (web archive). This can be directly deployed in a Java web container such as Tomcat.
The casda_vo_tools.war file can either be downloaded from the files tab at CASDA VO Tools v1.4 on CSIRO Data Access Portal or you can build it using the instructions below.
- Tomcat should be configured to expand war files (for ease of configuration).
- The casda_vo_tools.war file should be added to the webapps folder in Tomcat.
- Start Tomcat (or restart Tomcat if it is already running)
- Open
http://localhost:8080/casda_vo_tools/
to see a welcome message. - Then open
http://localhost:8080/casda_vo_tools/configure/home
to access the initial configuration screen.
Note that the server name and port may vary depending on your deployment server and how tomcat is configured.
A full guide to interactive configuration is provided at Deploying_CASDA_VO_Tools.pdf however a short intro is provided here.
Two configuration systems are available for use in the CASDA VO Tools application.
- Spring Boot's externalized configuration which
uses
application.properties
andconfig/application-casda_vo_tools.properties
. These can be within the war file or placed in the runtime working directory. Seesrc/main/resources/application.properties
for further details. - A custom
config/configuration.yaml
file in the runtime working directory. This is the main means by which an external data center would configure their VO Tools instance.
Either config system can be used in a particular deployment. If present, the yaml will override the spring boot config.
The configuration can be interactively managed using the endpoint /configure/home
. This is documented in
/src/docs/Deploying CASDA VO Tools.docx
For an initial installation, you should follow these basic steps:
-
Go to
http://localhost:8080/casda_vo_tools/configure/home
-
If a database connection is detected then a login will be required. The default login details are User:
voadmin
Password:password
-
Click
Current
to see the current configuration -
Change the values for
connection.url
,connection.username
, andconnection.password
to connect to your database. -
Select
Update
as the allowed access level and clickExplore
to read in the details of your database and create the TAP metadata tables -
Add schema and table entries e.g.
schemas:
ivoa: !au.csiro.casda.votools.config.SchemaConfig {}
tables:
ivoa.obscore: {} -
Select
Update
as the allowed access level and clickApply
to save the configuration and update the TAP metadata tables -
Edit
config/authz
to change the password to one of your choosing. -
Go to
http://localhost:8080/casda_vo_tools/tap
-
The UI you see at this address can be used to execute some ADQL queries. eg:
SELECT * FROM tap_schema.tables
###Logging
The log4j configuration file is detected using default behaviour of log4j, by being named according to convention (log4j2.xml) and provided on the classpath. When running locally or in the application environments, the log4j configuration file is bundled with the application. When running under Eclipse, the log configuration file is copied into the local Eclipse-managed server's WEB-INF/classes directory, because it's in the src/test/resources folder, and loaded via the classpath. A custom logging config can be placed at config/CasdaVoTools-log4j2.xml under the Tomcat working directory.
Logs will be written by default to the following location, relative to the working directory of the Tomcat process:
logs/casda_vo_tools.log
CASDA VO Tools is a Java web application. It has a fairly standard layout and the build is managed using the Gradle Build Tool .
The Gradle build is configured to download all dependencies, compile the code, run the unit tests and build the war file.
On Windows:
gradlew clean build
On Unix or Mac:
./gradlew clean build
For information on developing CASDA VO Tools, see DEVELOPERS.md