-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTextpressoDatabaseGlobals.pm
executable file
·87 lines (61 loc) · 2.74 KB
/
TextpressoDatabaseGlobals.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package TextpressoDatabaseGlobals;
# Package provides global constants for all
# database related matters of the Textpresso
# system.
#
# (c) 2007 Hans-Michael Muller, Caltech, Pasadena.
use strict;
require Exporter;
our @ISA = qw(Exporter);
our @EXPORT = qw(DB_ROOT DB_TMP DB_STOPWORDS DB_LITERATURE DB_LITERATURE_DEFAULTS DB_SEARCH_MODE DB_SEARCH_MODE_DEFAULT DB_INDEX DB_TEXT DB_ANNOTATION DB_SEARCH_FLAVOR DB_SEARCH_RANGES DB_SEARCH_RANGES_DEFAULT DB_IS_BIBLIOGRAPHY DB_IS_TEXT DB_SEARCH_TARGETS DB_SEARCH_TARGETS_DEFAULTS DB_DISPLAY_FIELDS DB_MISCELLANEOUS DB_SUPPLEMENTAL DB_OUTLINKS DB_LINKLISTS);
# The following constants need adjustments for each implementation
use constant DB_ROOT => '/Library/WebServer/WebServer/textpresso/tdb/';
use constant DB_TMP => '';
use constant DB_STOPWORDS => '/Library/WebServer/WebServer/textpresso/misc/stopwords';
# end constants that need adjustments
use constant DB_LITERATURE => { 'ecoli' => 'ecoli/', 'neurospora' => 'neurospora/'};
use constant DB_LITERATURE_DEFAULTS => ['ecoli'];#, 'neurospora'];
use constant DB_SEARCH_MODE => ['boolean', 'vector (tf*idf)', 'latent themes'];
use constant DB_SEARCH_MODE_DEFAULT => 'boolean';
use constant DB_INDEX => 'ind/';
use constant DB_TEXT => 'txt/';
use constant DB_ANNOTATION => 'ann/';
use constant DB_SEARCH_FLAVOR => { keyword => 'keyword/',
category => 'semantic/categories/',
attribute => 'semantic/attributes/'};
use constant DB_SEARCH_RANGES => { sentence => 'sentence',
field => 'target',
document => 'document'};
use constant DB_SEARCH_RANGES_DEFAULT => 'sentence';
use constant DB_IS_BIBLIOGRAPHY => 'author citation journal type year';
use constant DB_IS_TEXT => 'abstract body title';
use constant DB_SEARCH_TARGETS => { author => 'author/',
year => 'year/',
abstract => 'abstract/',
body => 'body/',
mesh => 'mesh/',
journal => 'journal/',
type => 'type/',
pmid => 'accession/',
title => 'title/'};
use constant DB_DISPLAY_FIELDS => { author => 'author/',
accession => 'accession/',
citation => 'citation/',
journal => 'journal/',
type => 'type/',
year => 'year/',
abstract => 'abstract/',
title => 'title/',
mesh => 'mesh/'};
use constant DB_SEARCH_TARGETS_DEFAULTS => ['abstract', 'body', 'title'];
use constant DB_MISCELLANEOUS => { scripts => 'scr/',
temporary => 'tmp/'};
use constant DB_SUPPLEMENTAL => { endnote_noabstract => 'end/',
endnote_abstract => 'eab/',
lexicon => 'lex/',
pdfs => 'pdf/'};
use constant DB_OUTLINKS => { related_articles => 'rel/',
full_text_links => 'url/',
wormbase_links => 'wbl/'};
use constant DB_LINKLISTS => { wormbase_links => 'wbl/'};
1;