RunFiseClerezza

From IKS Project

Jump to: navigation, search

Run Fise on the Apache Clerezza Platform

  1. Compile the latest Clerezza Platform SNAPSHOT (see here) or download it from here (with Sesame backend) or here (with Jena TDB backend)
  2. start the platform
  3. Build (mvn install) the following bundles and install it on the Clerezza Platform. On the Clerezza Platform you can install bundles over the maven uri. E.g. Execute the following command in the OSGi console: "start mvn:eu.iksproject/eu.iksproject.fise.servicesapi". Or you can use file or http uris. E.g. "start http://repo1.maven.org/maven2/commons-io/commons-io/1.4/commons-io-1.4.jar".
 Group Id            Artifact Id
eu.iksproject    eu.iksproject.fise.servicesapi
eu.iksproject    eu.iksproject.fise.jobmanager
eu.iksproject    eu.iksproject.fise.engines.autotagging
eu.iksproject    eu.iksproject.fise.clerezza/
commons-io       commons-io/commons-io-1.4.jar

You find the eu.iksproject maven projects on google code in the iks-project. Commons-io is available in the title central maven repo

  1. Download the lucene index from here and extract it.
  2. Access the Apache Felix Web Management Console under http://localhost:8080/system/console/configMgr/ (login and password is "admin")
  3. Configure the eu.iksproject.fise.engines.autotagging.impl.AutotaggingEnhancementEngine. Set the property "eu.iksproject.fise.engines.autotagging.indexPath" to the extracted lucene-index folder. E.g. "/home/mir/iks-dbpedia-lucene-idx
  4. Make sure you restarted the AutotaggingEnhacementEngine.
  5. You're done


How to use Fise with Clerezza

Now you can put a text on the platform and metadata will automatically be generated. To put a text file you can use the "curl" command like this: curl -uadmin:admin -T myText.txt -H "Content-type: text/plain" http://localhost:8080/myText

After putting it you should be able to see it in the browser when you open "http://localhost:8080/myText" in the browser. Under http://localhost:8080/fise?uri=http://localhost:8080/myText you'll receive the genertated metadata in rdf (To see it in the "application/rdf+xml" format you probably have to modify the ACCEPT header of the request. E.g You install the "modiy headers" addon in firefox).

You can also make sparql queries over the metadata through a POST http://localhost:8080/fise. You have to set a form parameter "query" with the sparql query as value.