NOTE: The work on this application is still in progress

searchcoilΛογισμικό & κατασκευή λογ/κού

15 Αυγ 2012 (πριν από 5 χρόνια και 3 μήνες)

242 εμφανίσεις

The project BRAIN (Bui
lding Research And Innovation Networks)


web application “connectApp”


Coventry University

Document created by Ajdin Brandic (Coventry University)

-

March 2011

NOTE: The work on this application is still in progress. Issues and the latest
downloads can be found at
http://code.google.com/p/brainapp
-
web



Requires:Netbeans 6.9.1 and MySQL, DiscoWordnetBasic a
pplication, Tomcat, Java,
Spring framework

and Hibernate (persistence not used)




=========================================

To Install:

Assumes that MySQL has been pre
-
installed and you have access to it via an
database management tool (PHPMyAdmin or M
ySQL Workbench).


1.

Create a database
(i.e.
“brainappv2”
)
.

2.

Run content of connectAppDB.sql

(change db name if not “
brainappv2
”)

3.

Update “mysql” database tables “db” and “user”
then

run

flush privileges

statement
.

4.

Import connectApp netbeans project into your v
ersion of NetBeans

IDE
.

5.

Amend database connection details in jdbc.properties file (
located
in the

default


package)

to correspond to

the

details in

mysql.user


table
.

6.

Amend file

application.controller.SearchFormController


on line 1125
(change
wordnetd
isco
access key
in
wordnetDiscoSynonyms method
(DiscoWordnetService discowordnet = new
DiscoWordnetService(sea
rchterms, "whateveryourkeyis");
)

This key can be anything you like.
Once you install the
DiscoWordnetBasic
service

you’ll update its code with
the same key

(see step 12)
.

7.

Import
DiscoWordnetBasic
into your NetBeans IDE

8.

Download WordNet database from
(
http://wordnet.princeton.edu/wordnet/download/
) then paste the file
s

into a
folder o
f your choice (i.e. wordnet_files)

9.

Download DISCO files (
_0.cfs
,
segments.gen
, segments_2, segments_3
) from

http://www.linguatools.de/disco/disco
-
languagedatapackets_en.
html#BNC

then paste them into a folder of your choice (i.e. disco_files)

10.

Amend

“DataAnalysis.DISOQuery” with file path to DISCO database (i.e.
disco_files/DISCO)

11.

Amend

“DataAnalysis.WordNetQuery” with file path to WordNet database
(i.e. w
ord
n
et
_files/word
net)

12.

Amend “Controller.GeneralController” “showSearch” method line 31.
Replace access key with your own (same as in the step 6.).

13.

Current username/password is “
test1
/
test1
”. This can be changed in “spring
-
security.xml” file.

14.

Yahoo! Term extractor functio
nality might require and API key. You can get
a Yahoo API key from
https://developer.apps.yahoo.com/wsregapp/









The project BRAIN (Bui
lding Research And Innovation Networks)


web application “connectApp”


Coventry University

Document created by Ajdin Brandic (Coventry University)

-

March 2011

=========================================


To
P
opulate
T
he
D
atabase (applies
to connectApp v0.2 only):


For the application to work correctly following tables (columns) should be populated:

NOTE: see ERD diagram ‘
dbERD_v0.1.png




mainentity (entityID, entityTypeID, fname, sname);

entitytypes (entityTypeID, description);

entityac
complishment (entityID, accompTypeID, entityAccomplishmentID, title);

accomplishmenttype (accompTypeID, accompTypeDescription);

contactdetails (entityID,

email)


this table can be empty;

blacklist (id, term)


this table is used as support to our search a
lgorithm however it




can be left empty;



Other tables and columns are part of initial design however functionality to use this
data has not been developed
in release version 0.2 (connectApp v
0.2
).



NOTE:
This application was developed in coll
aboration between Dimoklis Despotakis

[front end]

(Leeds University)

and
Ajdin Brandic

[front and back end]

(Coventry
University).



Related docs:


connectAppLibList



“connectAppDB.sql”




bdERD_v0.1.png


“README”