Merge pull request #144 from awoods/vivo-1741

Update example default triple store from SDB to TDB
This commit is contained in:
Ralph O'Flinn 2020-02-25 08:53:31 -06:00 committed by GitHub
commit 7fdcd6e264
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 18 deletions

View file

@ -26,7 +26,7 @@
:hasSearchIndexer :basicSearchIndexer ; :hasSearchIndexer :basicSearchIndexer ;
:hasImageProcessor :iioImageProcessor ; :hasImageProcessor :iioImageProcessor ;
:hasFileStorage :ptiFileStorage ; :hasFileStorage :ptiFileStorage ;
:hasContentTripleSource :sdbContentTripleSource ; :hasContentTripleSource :tdbContentTripleSource ;
:hasConfigurationTripleSource :tdbConfigurationTripleSource ; :hasConfigurationTripleSource :tdbConfigurationTripleSource ;
:hasTBoxReasonerModule :jfactTBoxReasonerModule . :hasTBoxReasonerModule :jfactTBoxReasonerModule .
@ -89,15 +89,15 @@
# endpoint, or a Virtuoso endpoint, with parameters as shown. # endpoint, or a Virtuoso endpoint, with parameters as shown.
# #
:sdbContentTripleSource #:sdbContentTripleSource
a vitroWebapp:triplesource.impl.sdb.ContentTripleSourceSDB , # a vitroWebapp:triplesource.impl.sdb.ContentTripleSourceSDB ,
vitroWebapp:modules.tripleSource.ContentTripleSource . # vitroWebapp:modules.tripleSource.ContentTripleSource .
#:tdbContentTripleSource :tdbContentTripleSource
# a vitroWebapp:triplesource.impl.tdb.ContentTripleSourceTDB , a vitroWebapp:triplesource.impl.tdb.ContentTripleSourceTDB ,
# vitroWebapp:modules.tripleSource.ContentTripleSource ; vitroWebapp:modules.tripleSource.ContentTripleSource ;
# # May be an absolute path, or relative to the Vitro home directory. # May be an absolute path, or relative to the Vitro home directory.
# :hasTdbDirectory "tdbContentModels" . :hasTdbDirectory "tdbContentModels" .
#:sparqlContentTripleSource #:sparqlContentTripleSource
# a vitroWebapp:triplesource.impl.sparql.ContentTripleSourceSPARQL , # a vitroWebapp:triplesource.impl.sparql.ContentTripleSourceSPARQL ,

View file

@ -56,14 +56,17 @@ argon2.parallelism =1
argon2.memory = 1024 argon2.memory = 1024
argon2.time = 1000 argon2.time = 1000
#
# NOTE: VitroConnection.DataSource.* properties are only used in conjuction with
# an SDB triple store.
# #
# The basic parameters for a database connection. Change the end of the # The basic parameters for a database connection. Change the end of the
# URL to reflect your database name (if it is not "vitrodb"). Change the username # URL to reflect your database name (if it is not "vitrodb"). Change the username
# and password to match the authorized database user you created. # and password to match the authorized database user you created.
# #
VitroConnection.DataSource.url = jdbc:mysql://localhost/vitrodb # VitroConnection.DataSource.url = jdbc:mysql://localhost/vitrodb
VitroConnection.DataSource.username = vitrodbUsername # VitroConnection.DataSource.username = vitrodbUsername
VitroConnection.DataSource.password = vitrodbPassword # VitroConnection.DataSource.password = vitrodbPassword
# #
# Email parameters which VIVO can use to send mail. If these are left empty, # Email parameters which VIVO can use to send mail. If these are left empty,
@ -118,14 +121,14 @@ selfEditing.idMatchingProperty = http://vivo.mydomain.edu/ns#networkId
# The maximum number of active connections in the database connection pool. # The maximum number of active connections in the database connection pool.
# Increase this value to support a greater number of concurrent page requests. # Increase this value to support a greater number of concurrent page requests.
# #
VitroConnection.DataSource.pool.maxActive = 40 # VitroConnection.DataSource.pool.maxActive = 40
# #
# The maximum number of database connections that will be allowed # The maximum number of database connections that will be allowed
# to remain idle in the connection pool. Default is 25% # to remain idle in the connection pool. Default is 25%
# of the maximum number of active connections. # of the maximum number of active connections.
# #
VitroConnection.DataSource.pool.maxIdle = 10 # VitroConnection.DataSource.pool.maxIdle = 10
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -136,9 +139,9 @@ VitroConnection.DataSource.pool.maxIdle = 10
# Parameters to change in order to use VIVO with a database other than # Parameters to change in order to use VIVO with a database other than
# MySQL. # MySQL.
# #
VitroConnection.DataSource.dbtype = MySQL # VitroConnection.DataSource.dbtype = MySQL
VitroConnection.DataSource.driver = com.mysql.jdbc.Driver # VitroConnection.DataSource.driver = com.mysql.jdbc.Driver
VitroConnection.DataSource.validationQuery = SELECT 1 # VitroConnection.DataSource.validationQuery = SELECT 1
# Note: the above parameters allow you to change the relational database that # Note: the above parameters allow you to change the relational database that
# is used as the back end for Jena SDB. If you want to use a triple store # is used as the back end for Jena SDB. If you want to use a triple store
@ -392,4 +395,4 @@ createAndLink.providers = doi, pmid
# Triple pattern fragments is a very fast, very simple means for querying a triple store. # Triple pattern fragments is a very fast, very simple means for querying a triple store.
# The triple pattern fragments API in VIVO puts little load on the server, providing a simple means for getting data from the triple store. The API has a web interface for manual use, can be used from the command line via curl, and can be used by programs. # The triple pattern fragments API in VIVO puts little load on the server, providing a simple means for getting data from the triple store. The API has a web interface for manual use, can be used from the command line via curl, and can be used by programs.
# #
# tpf.activeFlag = true # tpf.activeFlag = true