Previous Topic

Next Topic

Integrating into Kowari

Since the resolver and content handler jars are external, it is difficult to integrate them into the Kowari jar. Therefore they need to be added to the CLASSPATH environment variable to be accessible when Kowari runs.

For systems running the Windows® operating system, set the classpath as follows:

set CLASSPATH=%CLASSPATH%;<Full jar path>\myResolver.jar;<Full jar path>\myHandler.jar

Where myResolver.jar and myHandler.jar are the names of your compiled jars and <Full jar path> is their fully qualified path (for example, C:\myResolvers).

For systems running a Linux® or UNIX® operating system, set the classpath as follows:

export CLASSPATH=$CLASSPATH:{Full jar path}/myResolver.jar:{Full jar path}/myHandler.jar

Both the HTTP resolver and MP3 content handler are already packaged in Kowari so doing this with the jars created by the tutorial have no effect. They are for learning purposes only.

In addition to adding the jars to the classpath, the server also needs to know about the new resolvers and content handlers so it can use them when required. These are stored in the tucana-config.xml file (see the Kowari Configuration File section).

To include your resolver or handler in the Kowari server, use the following steps:

  1. In the tucana-config.xml file, find the <TripleStoreImplementation> tag. In this section there may already be some configured resolvers and handlers. The order is not important, so find a suitable place to insert your new resolver or handler.
  2. For resolvers, add a tag <ResolverFactoryClass>{class name}</ResolverFactoryClass> where {class name} is the full class name of the resolver's factory class. For example, org.kowari.resolver.http.HttpResolverFactory
  3. For content handlers, add a tag <ContentHandlerClass>{class name}</ContentHandlerClass> where {class name} is the full class name of the content handler's implementation class. For example, org.kowari.content.mp3.MP3ContentHandler

The MP3 content handler and HTTP resolver are already configured as part of Kowari and should not be added again. They are for learning purposes only.

See Also

HTTP Resolver and MP3 Content Handler Tutorial

Prerequisites

Developing Protocol Resolvers

Developing Content Handlers

Compiling with Ant

Latest News

Kowari 1.1.0 Pre-release 1 Released

Kowari 1.0.5 Released

Kowari 1.0.4.1 Released

Kowari 1.0.4 Released

DAWG Evaluates iTQL

Kowari article in XML.com

Kowari mentioned on XML.com

Kowari 1.0.3 Released

Kowari Lite Introduced

Kowari 1.0.2 Released

Kowari 1.0.1 Released

View all news items


Open Source logo Tucana Technologies Logo SourceForge.net Logo

© 2001-2004 Tucana Technologies, Inc. Some rights reserved.