commit | 1f1b3301073a368f7221ea070ed4f46f397ea68b | [log] [tgz] |
---|---|---|
author | Tony Stevenson <pctony@apache.org> | Thu Sep 20 13:10:59 2012 +0000 |
committer | Tony Stevenson <pctony@apache.org> | Thu Sep 20 13:10:59 2012 +0000 |
tree | 6389abd975f30c1b6d67302b7bc70a0510f1d9e0 | |
parent | d467d7ee02154116b6a64caef2db730d892bba04 [diff] |
Stanbol TLP graduation git-svn-id: https://svn.apache.org/repos/asf/stanbol/branches/cameltrial@1388017 13f79535-47bb-0310-9956-ffa450edef68
$ cd flow/ ; mvn clean install; $ cd launchers/fullflow ; mvn clean install;
$ cd flow/fullflow/target ; java -jar org.apache.stanbol.launchers.fullflow-0.9.0-incubating.jar;
By default a file endpoint will fetch all files in /tmp/chaininput folder, process it with the langId engine and then write the xml-rdf result in /tmp/chainoutput folder.
The flow endpoint offer sub-ressource that allow you to directly call some predefined particular flow.
Template for this request is :
$ curl -X POST -H "Accept: text/turtle" -H "Content-type: text/plain" --data "Here comes a little test with Paris as content and also Berlin but why not detect city as Boston and some well know people like Bob Marley." http://localhost:8080/flow/{{flowName}}
Where {{flowName}} can have the values :
Flow/Route definition for default can be find here : https://svn.apache.org/repos/asf/incubator/stanbol/branches/cameltrial/flow/weightedgraphflow/src/main/java/org/apache/stanbol/flow/weightedgraphflow/WeightedChain.java
Others Flow/routes definition resides here : https://svn.apache.org/repos/asf/incubator/stanbol/branches/cameltrial/flow/filepoolgraphflow/src/main/java/org/apache/stanbol/flow/filepoolgraphflow/FileRoute.java