demo:SmileyStuff
uses the behavior
mechanism demo:dualResImageCollection
, which in turn implements the
behavior definition demo:Collection
.
<module role="fedora.server.resourceIndex.ResourceIndex"
class="fedora.server.resourceIndex.ResourceIndexModule">
<param name="level" value="1"/>
<param name="datastore" value="localMulgaraTriplestore"/>
<param name="syncUpdates" value="false"/>
</module>
<module role="fedora.server.resourceIndex.ResourceIndex"
class="fedora.server.resourceIndex.ResourceIndexModule">
<param name="level" value="1"/>
<param name="datastore" value="localPostgresMPTTriplestore"/>
<param name="syncUpdates" value="true"/>
</module>
connectorClassName
parameter with a valid Trippi Connector class.
<datastore id="localMulgaraTriplestore">
<param name="connectorClassName" value="org.trippi.impl.mulgara.MulgaraConnector"/>
<param name="remote" value="false"/>
<param name="path" value="/opt/fedora/store/resourceIndex"/>
<param name="serverName" value="fedora"/>
<param name="modelName" value="ri"/>
<param name="poolInitialSize" value="3"/>
<param name="poolMaxGrowth" value="-1"/>
<param name="readOnly" value="false"/>
<param name="autoCreate" value="true"/>
<param name="autoTextIndex" value="false"/>
<param name="memoryBuffer" value="true"/>
<param name="autoFlushDormantSeconds" value="5"/>
<param name="autoFlushBufferSize" value="20000"/>
<param name="bufferSafeCapacity" value="40000"/>
<param name="bufferFlushBatchSize" value="20000"/>
</datastore>
java -jar mulgara-2.0.0.jar -k
localhost
java -jar mulgara-2.0.0.jar -s fedora
jdbc:mysql://localhost/mydb
would use the local database
named mydb. For McKoi, jdbc:mckoi://localhost:9157/
would use the local database at port 9157. For oracle,
jdbc:oracle:thin:@localhost:1521:mydb
would use the thin
driver to connect to the local database named mydb at port 1521.
num
(a large numeric type), action
(char(1)), subject
, predicate
, and
object
(all large varchar or text types).
<datastore id="localPostgresMPTTriplestore">
<comment>
Example local MPTStore backed by Postgres.
To use this triplestore for the Resource Index:
1) In fedora.fcfg, change the "datastore" parameter of the
ResourceIndex module to localPostgresMPTTriplestore.
2) Login to your Postgres server as an administrative user and
run the following commands:
CREATE ROLE "fedoraAdmin" LOGIN PASSWORD 'fedoraAdmin'
NOINHERIT CREATEDB
VALID UNTIL 'infinity';
CREATE DATABASE "riTriples"
WITH ENCODING='SQL_ASCII'
OWNER="fedoraAdmin";
3) Make sure you can login to your Postgres server as fedoraAdmin.
4) Download the appropriate Postgres JDBC 3 driver from
http://jdbc.postgresql.org/download.html
and make sure it's accessible to your servlet container.
If you're running Tomcat, putting it in common/lib/ will work.
</comment>
<param name="connectorClassName" value="org.trippi.impl.mpt.MPTConnector"/>
<param name="ddlGenerator" value="org.nsdl.mptstore.impl.postgres.PostgresDDLGenerator"/>
<param name="jdbcDriver" value="org.postgresql.Driver"/>
<param name="jdbcURL" value="jdbc:postgresql://localhost/riTriples"/>
<param name="username" value="fedoraAdmin"/>
<param name="password" value="fedoraAdmin"/>
<param name="poolInitialSize" value="3"/>
<param name="poolMaxSize" value="10"/>
<param name="backslashIsEscape" value="true"/>
<param name="fetchSize" value="1000"/>
<param name="autoFlushDormantSeconds" value="5"/>
<param name="autoFlushBufferSize" value="1000"/>
<param name="bufferFlushBatchSize" value="1000"/>
<param name="bufferSafeCapacity" value="2000"/>
</datastore>