Java Interface for APE
The Java Interface for APE is part of the Attempto Parsing Engine (APE). Copyright 2008-2013, Attempto Group, University of Zurich (http://attempto.ifi.uzh.ch).
To simplify calling APE from Java programs, we provide the
ACEParser interface which
is effectively a Java-style front-end to querying the predicate
ACEParser is implemented by the following classes:
APELocalaccesses APE via JPL, the bidirectional Prolog/Java interface, which is included in the SWI-Prolog installation;
APESocketaccesses APE via its socket server;
APEWebserviceaccesses APE via its HTTP server.
Building with Maven
The Java Interface for APE can be compiled into a single jar-file
First install SWI-Prolog's JPL into your local Maven repository.
See install-jpl.sh for an example on how do it.
You might also need to update the JPL version number in
pom.xml to match your version
Building the jar-file.
mvn package -DskipTests
Building the documentation, licenses, etc.
In order to run the unit tests (
mvn test), first compile
APELocal tests to succeed, place
ape.exe into the APE root directory
and execute (in any directory):
eval `swipl -dump-runtime-variables` export LD_PRELOAD=$PLBASE/lib/$PLARCH/libjpl.so:$PLBASE/lib/$PLARCH/libswipl.so
APESocket tests to succeed, start the APE socket server:
ape.exe -server -port 5000
APEWebservice tests to succeed, start the APE HTTP server:
ape.exe -httpserver -port 8000