commit | d467d7ee02154116b6a64caef2db730d892bba04 | [log] [tgz] |
---|---|---|
author | Florent André <florent@apache.org> | Tue Jun 19 00:03:56 2012 +0000 |
committer | Florent André <florent@apache.org> | Tue Jun 19 00:03:56 2012 +0000 |
tree | 6389abd975f30c1b6d67302b7bc70a0510f1d9e0 | |
parent | 70588075090da93717556a3f530da3dca3ad0d8b [diff] |
finally beat it ! :). Note for later : don't do eclipse bigs renaming when svn offline. git-svn-id: https://svn.apache.org/repos/asf/incubator/stanbol/branches/cameltrial@1351537 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