Once the SparqlIndexer configured to index the records, we can use the triplestore to perform external SPARQL searchings with SPARQL Recipes.
The triplestore need to be started before running the message consumer web app. Please follow the instructions to setup the triplestore.
Configuration
The SparqlIndexer is configured using Spring that can be done using Java bean setter methods. Here is a sample configuration fragment showing how to configure and use it:
<!-- sparql-update indexer --> <bean id="sparqlUpdate" class="org.fcrepo.indexer.sparql.SparqlIndexer"> <!-- fuseki --> <property name="queryBase" value="http://${fuseki.host:localhost}:${fuseki.port:3030}/test/query"/> <property name="updateBase" value="http://${fuseki.host:localhost}:${fuseki.port:3030}/test/update"/> <property name="formUpdates"> <value type="java.lang.Boolean">false</value> </property> <!-- sesame --> <!-- <property name="queryBase" value="http://${sesame.host:localhost}:${sesame.port:8081}/openrdf-sesame/repositories/test"/> <property name="updateBase" value="http://${sesame.host:localhost}:${sesame.port:8081}/openrdf-sesame/repositories/test/statements"/> <property name="formUpdates"> <value type="java.lang.Boolean">true</value> </property> --> </bean> <!-- Message Driven POJO (MDP) that manages individual indexers --> <bean id="indexerGroup" class="org.fcrepo.indexer.IndexerGroup"> <constructor-arg name="repositoryURL" value="http://${fcrepo.host:localhost}:${fcrepo.port:8080}${fcrepo.context:/}rest" /> <constructor-arg name="indexers"> <set> ... <ref bean="sparqlUpdate"/> ... </set> </constructor-arg> ... </bean>