- Notifications
You must be signed in to change notification settings - Fork31
Java libraries implementing the IVOA protocol: ADQL, UWS and TAP
gmantele/vollt
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This GitHub repository contains the sources of 3 libraries implementingIVOA standards and protocols:
For a complete documentation/tutorial and a demo of the 3 libraries you should visit the following websites:ADQLTuto,UWSTuto andTAPTuto.
These libraries are developed inJava 7.
The three of these libraries are under the terms of theLGPL v3 license. You can find the full description and all the conditions of use in the files src/COPYING and src/COPYING.LESSER.
I strongly encourage youto declare any issue you encounterhere. Thus anybody who has the same problem can see whether his/her problem is already known. If the problem is known the progress and/or comments about its resolution will be published.
In addition, if you have forked this repository and made some corrections on your side which are likely to interest any other user of the libraries, please,send a pull requesthere. If these modifications are in adequation with the IVOA definition and are not too specific to your usecase, they will be integrated (maybe after some modifications) on this repository and thus made available to everybody.
Each library has its own package (adql
for ADQL,uws
for UWS andtap
for TAP). These packages are independent excepttap
which needs the two other packages. In addition to these packages, you will also findcds
which is a dependency for the libraries.
Below are summed up the dependencies of each library:
ADQL | UWS | TAP | |
---|---|---|---|
Packageadql | X | X | |
Packagecds.utils | X | X | |
Postgres JDBC Driver | X | X | |
Packageuws | X | X | |
JSON library | X | X | |
HTTP Servlet API | X | X | |
HTTP Multipart Library | X | X | |
XML Library | X | ||
Packagescds.* | X | ||
STIL Library | X |
In thelib
directory, you will find 3 JAR files:
- TheHTTP Multipart Library:
commons-fileupload-1.3.3.jar
(andcommons-io-2.6.jar
). This library helps dealing with uploads. - TheSTIL Library:
stil_3.3-2.jar
(i.e. packagesnom.tap
,org.apache.tools.bzip2
,uk.ac.starlink
). This library helps supporting VOTable (read and write) and some other output formats. - TheJSON Library:
json-20180813.jar
(i.e. the former included packageorg.json
). This library helps manipulating JSON content.This library was already used (before v4.4 of UWS-Lib and v2.3 of TAP-Lib) but it was included in the sources instead of being considered as an external library.
ThePostgres JDBC Driver is needed ONLY IF you want to use (and keep)adql.translator.PgSphereTranslator
. You can get this driver on thePostgreSQL website. The required package for the ADQL and TAP libraries isorg.postgresql
(and particularly the classorg.postgresql.Driver
).
TheHTTP Servlet API is generally available in the libraries coming along the Web Application Server you are using. For instance, for Tomcat, it is in the directorylib
(or/var/lib/tomcat-x/lib
if installed with Aptitude on a Linux system ;x
is the version number of Tomcat). The required package for the UWS and TAP library isjavax.servlet
.
Note: The Postgres JDBC Driver and the HTTP Servlet API are not provided in this Git repository in order to avoid version incompatibility with the host system (i.e. your machine when you checkout/clone/fork this repository).
The sources of these three libraries come with some JUnit test files. You can find them in thetest
directory.
If you are using Eclipse (or maybe also with another Integrated Development Environment), JUnit is generally already available. Then you can directly execute and compile the provided JUnit test files. So you do not need the two libraries mentionned just below.
Otherwise, you will need to get the JUnit library. Generally it is provided with the JDK, but you can find the corresponding JAR also on theJUnit website.
You may also need another library calledhamcrest
. You can find this one on itsMaven repository ; just to be sure to have everything needed, just takehamcrest-all
as a JAR.
Note: The JUnit and Hamcrest libraries are not provided in this Git repository in order to avoid version incompatibility with the host system (i.e. your machine when you checkout/clone/fork this repository).
At the root of the repository, there are 3 ANT scripts. Each is dedicated to one library. They are able to generate JAR for sources, binaries and Javadoc.
6 properties must be set before using one of these scripts:
POSTGRES
only for ADQL and TAP if you want to keep adql.translator.PgSphereTranslator: a path toward a JAR or a binary directory containing allorg.postgresql.*
- [https://jdbc.postgresql.org/download.html](JDBC Postgres driver)SERVLET-API
only for UWS and TAP: a path toward a JAR or a binary directory containing alljavax.servlet.*
XML-API
only for UWS: a path toward a JAR or binary directory containing alljavax.xml
JUNIT-API
not required if you are not interested by running the JUnit tests: a path toward one or several JARs or binary directories containing all classes to use JUnit.HAMCREST
not required if you are not interested by running the JUnit tests: a path toward a or binary JAR containing the hamcrest library, required by JUnit.JNDI-API
only for TAP AND only if you are interested by running the JUnit tests: a path toward one or several JARs or binary directories containing all classes to run a JNDI. Several libraries exist for that ;Simple-JNDI is very simple and is used by the libraries developer to run the related JUnit tests.
Note: No JNDI library is provided in this Git repository because any JNDI Library may work and there is no reason to impose a specific one. Besides, similarly as the other libraries required to compile the sources, it lets avoiding version incompatibility with the host system (i.e. your machine when you checkout/clone/fork this repository).
All of these ANT scripts have the following main targets:
junitValidation
: Executes all JUnit tests related to the target library and stop ANT at any error. If the target library is TAP, the JUnit tests of the three libraries are run.buildLib
DEFAULT: run the JUnit tests and if they are all successful, compile the target library's classes and build a JAR file with them and their dependencies.buildLibAndSrc
: same asbuildLib
+ building of a JAR file containing all the sources and the required libraries.buildJavadoc
: generate a JAR containing the Javadoc of the target library's classes.buildAll
: equivalent ofbuildLibAndSrc
andbuildJavadoc
together. The result is 3 JARs: one with the compiled classes, one with the corresponding sources and the last one with the Javadoc.
The code can be built with Gradle, either as a jar file to be included in other projectsor as a war file to be deployed in Tomcat.
About
Java libraries implementing the IVOA protocol: ADQL, UWS and TAP