rfe11342: Sesame SPARQL 1.1 Query tests

The Sesame SPARQL 1.1 query tests can now be run on AG using:

$ ant sesame-sparql-query-tests

which uses an AGRepository instance to exercise the AG Java client
and server collectively for SPARQL 1.1 query compliance.

These tests are not included in prepush tests; there are currently
some errors/failures reported by the test suite.

make prepush passes.
make javadoc runs clean.

Change-Id: Ic2af6d9a951b63b9bed493cfc740b3bd17f29927
Reviewed-on: https://gerrit.franz.com:9080/1949
Reviewed-by: Ahmon Dancy <dancy@franz.com>
Tested-by: Kevin Layer <layer@franz.com>
rfe11308: Sesame SPARQL Update tests

The Sesame SPARQL Update tests can now be run on AG using:

$ ant sparql-update-tests

The SPARQL 1.1 Query tests are now run using:

$ ant sparql-query-tests

Both use an AGRepository instance to exercise the AG Java client
and server collectively for SPARQL compliance.

These tests are not included in prepush tests; there are currently
some errors/failures reported by the test suite.

make prepush passes.
make javadoc runs clean.

Change-Id: Id77330d1c4b8072eb5015601dfd01be022deca2f
Reviewed-on: https://gerrit.franz.com:9080/1936
Reviewed-by: Ahmon Dancy <dancy@franz.com>
Tested-by: Kevin Layer <layer@franz.com>
rfe11523: updated Sesame RepositoryConnection tests

The Sesame RepositoryConnection tests can now be run on AG using:

$ ant repository-connection-tests

which uses an AGRepository instance to exercise the AG Java client
and server collectively for Sesame 2.6.5 RepositoryConnection
compliance.

These tests are not included in prepush tests; there are currently
some errors/failures reported by the test suite requiring separate
server fixes/enhancements.

make prepush passes.
make javadoc runs clean.

Change-Id: I7477107969f6f3934695c312c69099494e9279c9
Reviewed-on: https://gerrit.franz.com:9080/2224
Reviewed-by: Ahmon Dancy <dancy@franz.com>
Reviewed-by: John O'Rourke <jor@franz.com>
Tested-by: Kevin Layer <layer@franz.com>
bug21099: java pool holds sockets open

tests-added   : AGConnPoolClosingTest, CljTest
tests-run     : java test-bigger
performance   : reduce socket usage

<release-notes>
bug21099: java pool holds sockets open

Problem: the AGConnPool used one MultiThreadedHttpConnectionManager
per AGRepositoryConnection, but only closed it with the pool rather
than with the repo. This used multiple connections to the main AGraph
port and left http socket connections open for them and a session port
after the AGRepositoryConnection was closed. Session ports are not
recycled by the AGraph server if SessionPorts is not specified.

Fix: use a SimpleHttpConnectionManager for each AGRepositoryConnection
and close both at the same time. This minimizes socket connections and
avoids the secondary pool within MultiThreadedHttpConnectionManager.
</release-notes>

Also fixes the Ant target dependencies since the jars are required and
includes the libs.

Test code now uses the clojure library.

Includes a disabled test to reproduce bug21109.

Test code executes netstat to check for open sockets.

Changed some other tests to use java-catalog instead of root.

Change-Id: I1960f8fc2eda2146b4e6f7110d6cd791f3146d81
Reviewed-on: https://gerrit.franz.com:9080/2226
Reviewed-by: Kevin Layer <layer@franz.com>
Tested-by: Kevin Layer <layer@franz.com>