SemSim, The SEMantic SIMilarity Framework


Home
Getting Started
Architecture
User guide

Configuration

To configure the semantic similarity framework you should add the following config files to the classpath.
  • semsim-config.properties (Semantic repository config, and general similarity config
  • semsim-config.xml (Specific spring configuration)
  • semsim-measures.xml (Similarity measures)

semsim-config.properties

# MySQL Database Configuration
semsim.database.driver=com.mysql.jdbc.Driver
semsim.database.url=jdbc:mysql://localhost/imdb_semantic
semsim.database.username=root
semsim.database.password=admin
semsim.database.type=MySQL
semsim.database.model=imdb-test

# Oracle Database Configuration
#semsim.database.driver=oracle.jdbc.driver.OracleDriver
#semsim.database.url=jdbc:oracle:thin:@server:1521:sid
#semsim.database.username=inscription
#semsim.database.password=inscription
#semsim.database.type=Oracle
#semsim.database.model=imdb-test

# Odbc Database Configuration
#semsim.database.driver=sun.jdbc.odbc.JdbcOdbcDriver
#semsim.database.url=jdbc:odbc:gusto
#semsim.database.type=MsSQL

# Word Net Configuration
wordnet.config=config/wordnet/wordnet.xml
wordnet.infocontent=file:config/wordnet/ic-bnc-resnik-add1.dat
wordnet.mapping=file:config/wordnet/domain_independent.txt


semsim-config.xml

Specific Configuration corresponding to the domain

Link to spring configuration
	

Configuring the data source

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" lazy-init="true">
  ...
</bean>

Defining the persistence plugin

<bean id="persistencePlugin" class="com.gusto.engine.semsim.persistence.impl.PersistencePluginDatabaseImpl">
  <property name="jdbcTemplate">...
  <property name="config">...
  ...
</bean>

Configuring the domain specific SemanticSimilarity service

<bean id="movieLensSemanticSimilarity" class="com.gusto.movielens.service.semantic.MovieLensSemanticSimilarity" 
	      parent="semsimSemanticSimilarity">
  <property name="resourceSimilarityMap">...
  <property name="urlToId">...
  <property name="persistencePlugin">...
  <property name="configUtils">...
  <property name="similarityUtils">...
  ...
</bean>