Skip to content

Commit

Permalink
Add Camel-based triplestore implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
acoburn authored and Andrew Woods committed May 5, 2015
1 parent 5c7912a commit 38d0783
Show file tree
Hide file tree
Showing 32 changed files with 1,786 additions and 270 deletions.
13 changes: 9 additions & 4 deletions README.md
Expand Up @@ -24,13 +24,18 @@ and as a web-deployable `war` artifact (`audit-triplestore-web`),
so it can be deployed in either Karaf or a web container such as
Jetty/Tomcat.

### Solr Indexer
### Repository Indexer (Solr)

This application listens to Fedora's event stream, and
indexes objects in an external Solr server.
This application listens to Fedora's event stream and
indexes objects into an external Solr server.

### Repository Indexer (Triplestore)

This application listens to Fedora's event stream and
indexes objects into an external triplestore.

## Building

To build these projects use this command

MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=512m" mvn clean install
MAVEN_OPTS="-Xmx1024m" mvn clean install
2 changes: 1 addition & 1 deletion audit-triplestore-web/pom.xml
Expand Up @@ -78,7 +78,7 @@
</plugin>

<plugin>
<groupId>org.mortbay.jetty</groupId>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
</plugin>

Expand Down
11 changes: 11 additions & 0 deletions audit-triplestore/pom.xml
Expand Up @@ -88,6 +88,11 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<configuration>
<portNames>
<portName>fuseki.dynamic.test.port</portName>
</portNames>
</configuration>
</plugin>

<plugin>
Expand All @@ -98,6 +103,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<argLine>${jacoco.agent.it.arg}</argLine>
<systemPropertyVariables>
<fuseki.dynamic.test.port>${fuseki.dynamic.test.port}</fuseki.dynamic.test.port>
</systemPropertyVariables>
</configuration>
</plugin>

<plugin>
Expand Down
2 changes: 1 addition & 1 deletion indexing-solr-web/pom.xml
Expand Up @@ -82,7 +82,7 @@
</plugin>

<plugin>
<groupId>org.mortbay.jetty</groupId>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
</plugin>

Expand Down
55 changes: 53 additions & 2 deletions indexing-solr/README.md
Expand Up @@ -7,7 +7,7 @@ for [Fedora4](http://fcrepo.org).

To build this project use

MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=512m" mvn install
MAVEN_OPTS="-Xmx1024m" mvn install

##Running from the command line

Expand All @@ -22,7 +22,58 @@ This project can be deployed in an OSGi container. For example using
[Apache Karaf](http://karaf.apache.org), you can run the following
command from its shell:

osgi:install -s mvn:org.fcrepo.camel/audit-triplestore/{VERSION}
osgi:install -s mvn:org.fcrepo.camel/indexing-solr/{VERSION}

##Configuration

The application can be configured by creating a file in
`$KARAF_HOME/etc/org.fcrepo.camel.indexing.triplestore.cfg`. The following
values are available for configuration:

In the event of failure, the maximum number of times a redelivery will be attempted.

error.maxRedeliveries=10

If the fedora repository requires authentication, the following values
can be set:

fcrepo.authUsername=<username>
fcrepo.authPassword=<password>
fcrepo.authHost=<host realm>

The baseUrl for the fedora repository.

fcrepo.baseUrl=localhost:8080/fcrepo4/rest

The default `LDPath` transformation to use. This is overridden on a per-object
basis with the `indexing:hasIndexingTransformation` predicate.

fcrepo.defaultTransform=default

If you would like to index only those objects with a type `indexing:Indexable`,
set this property to `true`

indexing.predicate=false

The JMS connection URI, used for connecting to a local or remote ActiveMQ broker.

jms.brokerUrl=tcp://localhost:61616

The camel URI for the incoming message stream.

input.stream=activemq:topic:fedora

The baseUrl for the Solr server. If using Solr 4.x or better, the URL should include
the core name.

solr.baseUrl=localhost:8983/solr/collection1

The timeframe (in milliseconds) within which new items should be committed to the solr index.

solr.commitWithin=10000

By editing this file, any currently running routes will be immediately redeployed
with the new values.

For more help see the Apache Camel documentation

Expand Down

0 comments on commit 38d0783

Please sign in to comment.