incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Bachmann-Gmür <r...@apache.org>
Subject Stanbol components in clerezza, check it out
Date Wed, 19 Dec 2012 17:12:11 GMT
Hello

I've just resolved CLEREZZA-722 meaning that stanbol web fragments can now
be run inside clerezza. The main difficulties was that many STANBOL
components do not use the OSGi service infrastructure but communicate to
each other via the ServletContext.

Give it a try. To launch the Stanbol Factore in clerezza enter (copy and
paste) the following to the clerezza console:

start("mvn:org.apache.stanbol/org.apache.stanbol.commons.web.home/0.10.0-SNAPSHOT")
import java.net._
val url = new URL("
https://svn.apache.org/repos/asf/stanbol/trunk/launchers/bundlelists/factstore/src/main/bundles/list.xml
")
val conn = url.openConnection
import xml._
val doc = XML.load(conn.getInputStream)
for (b <- doc\"startLevel"\"bundle") {
val groupId = (b\"groupId").text;
val artifactId = (b\"artifactId").text;
val version = (b\"version").text
val mvnUri = "mvn:"+groupId+"/"+artifactId+"/"+version;
println(mvnUri);
try {
val bundle = bundleContext.installBundle(mvnUri)
bundle.start()
} catch {
case ex => out.println("Exception installing bundle", ex)
}


You should now see the factstore on http://localhost:8080/factstore.

Cheers,
Reto

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message