-
Notifications
You must be signed in to change notification settings - Fork 4
/
fct_sticker.xml
132 lines (129 loc) · 7.21 KB
/
fct_sticker.xml
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?xml version="1.0" encoding="ASCII"?>
<!DOCTYPE sticker SYSTEM "vad_sticker.dtd">
<sticker version="1.0.010505A" xml:lang="en-UK">
<caption>
<name package="fct">
<prop name="Title" value="Faceted Browser"/>
<prop name="Developer" value="OpenLink Software"/>
<prop name="Copyright" value="(C) 1998-2023 OpenLink Software"/>
<prop name="Download" value="http://www.openlinksw.com/virtuoso"/>
<prop name="Download" value="http://www.openlinksw.co.uk/virtuoso"/>
</name>
<version package="$VERSION$">
<prop name="Release Date" value="$PACKDATE$"/>
<prop name="Build" value="Release, optimized"/>
</version>
</caption>
<dependencies>
</dependencies>
<procedures uninstallation="supported">
<sql purpose="pre-install"><![CDATA[
if (lt (sys_stat ('st_dbms_ver'), '$NEED_VERSION$'))
{
result ('ERROR', 'The Faceted Browser package requires server version $NEED_VERSION$ or greater');
signal ('FATAL', 'The Faceted Browser package requires server version $NEED_VERSION$ or greater');
}
if (__proc_exists ('DB.DBA.SPONGER_DOCUMENT_EXPIRATION') is null)
{
result ('ERROR', 'The Faceted Browser package requires server version 07.20.3226, 08.01.3301 or greater');
signal ('FATAL', 'The Faceted Browser package requires server version 07.20.3226, 08.01.3301 or greater');
}
]]></sql>
<sql purpose="post-install">
;
</sql>
</procedures>
<ddls>
<sql purpose="post-install">
<![CDATA[
set_qualifier ('DB');
registry_set('_fct_url_', 'virt://WS.WS.SYS_DAV_RES.RES_FULL_PATH.RES_CONTENT:$BASE_PATH$/fct/');
registry_set('_fct_path_', '$BASE_PATH$/fct/');
registry_set('_fct_dav_', '$ISDAV$');
if (lt (sys_stat ('st_dbms_ver'), '06.00.3126') and not exists (select 1 from DB.DBA.SYS_KEYS where upper (KEY_NAME) = 'RDF_QUAD_OPGS') and (select count(*) from (select top 10000 1 as x from RDF_QUAD) stb) < 10000) {
log_message ('Altering the index layout on RDF_QUAD');
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/fct_inx.sql', 0, 'report', 1);
log_message ('done.');
}
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/ns.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/virt_rdf_label.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/virt_rdf_url.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/facet.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/complete_ddl.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/b3s_cl_rexec.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/cl_prx.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/complete.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/complete_svc.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/description.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/facet_agg.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/facet_svc.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/facet_view.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/nsdecl.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/search.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/sum.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/val_scopes.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/fct_endpoints.sql', 0, 'report', 1);
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/conductor/vad_fct_config.sql', 0, 'report', 1);
if (sys_stat ('cl_run_local_only') = 1)
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/complete_single.sql', 0, 'report', 1);
else {
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/complete_cl.sql', 0, 'report', 1);
}
if (exists (select 1 from DB.DBA.SYS_KEYS where upper (KEY_NAME) = 'RDF_QUAD_SP'))
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/srank23.sql', 0, 'report', 1);
else if (exists (select 1 from DB.DBA.SYS_KEYS where upper (KEY_NAME) = 'RDF_QUAD_OPGS'))
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/srank.sql', 0, 'report', 1);
else {
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/srank_1.sql', 0, 'report', 1);
result ('00000', 'You should read http://host:port/fct/install.html for instructions');
}
result ('00000', 'GUI is accesible via http://host:port/fct');
result ('00000', 'Post-installation guide is available from http://host:port/fct/post_install.html');
DB.DBA.VAD_LOAD_SQL_FILE('$BASE_PATH$/fct/sql/grants.sql', 0, 'report', 1);
-- Copy fct VAD's configuration page resources to Conductor UI's folder
DB.DBA.fct_vad_configure ('fct', 'fct/conductor', 'vad_fct_config.vspx');
DB.DBA.fct_vad_configure ('fct', 'fct/conductor', 'vad_fct_config.js');
-- Check if automated label fill is enabled
if (virtuoso_ini_item_value ('SPARQL', 'LabelInferenceName') = 'facets')
registry_set ('urilbl_ac_init_status', '2');
]]>
</sql>
<sql purpose='pre-uninstall'>
<![CDATA[
registry_remove ('fct_server_supports_invfp');
DB.DBA.VAD_LOAD_SQL_FILE('/DAV/VAD/fct/sql/fct_drop.sql', 1, 'report', 1);
]]>
</sql>
</ddls>
<resources>
<file type="$TYPE$" source_uri="owl/*.owl" target_uri="fct/" />
<file type="$TYPE$" source_uri="sql/*.sql" target_uri="fct/" />
<file type="$TYPE$" source_uri="*.html" target_uri="fct/" />
<file type="$TYPE$" source_uri="www/*.vsp" target_uri="fct/" />
<file type="$TYPE$" source_uri="www/*.html" target_uri="fct/" />
<file type="$TYPE$" source_uri="*.vsp" target_uri="fct/" />
<file type="$TYPE$" source_uri="xslt/*.xsl" target_uri="fct/" />
<file type="$TYPE$" source_uri="js/*.js" target_uri="fct/" />
<file type="$TYPE$" source_uri="images/*" target_uri="fct/" />
<file type="$TYPE$" source_uri="oat/toolkit/*.js" target_uri="fct/" />
<file type="$TYPE$" source_uri="oat/styles/*" target_uri="fct/" />
<file type="$TYPE$" source_uri="oat/xslt/*" target_uri="fct/" />
<file type="$TYPE$" source_uri="oat/images/*" target_uri="fct/" />
<file type="$TYPE$" source_uri="oat/images/markers/*" target_uri="fct/" />
<file type="$TYPE$" source_uri="rdfdesc/*.vsp" target_uri="fct/" />
<file type="$TYPE$" source_uri="css/*.css" target_uri="fct/" />
<file type="$TYPE$" source_uri="css/images/*.png" target_uri="fct/css/" />
<file type="$TYPE$" source_uri="fontawesome/*" target_uri="fct/" />
<file type="$TYPE$" source_uri="fontawesome/css/*" target_uri="fct/" />
<file type="$TYPE$" source_uri="fontawesome/js/*" target_uri="fct/" />
<file type="$TYPE$" source_uri="fontawesome/less/*" target_uri="fct/" />
<file type="$TYPE$" source_uri="fontawesome/metadata/*" target_uri="fct/" />
<file type="$TYPE$" source_uri="fontawesome/scss/*" target_uri="fct/" />
<file type="$TYPE$" source_uri="fontawesome/svgs/*" target_uri="fct/" />
<file type="$TYPE$" source_uri="fontawesome/webfonts/*" target_uri="fct/" />
<file type="$TYPE$" source_uri="fonts/*" target_uri="fct/" />
<file type="$TYPE$" source_uri="conductor/*" target_uri="fct/" />
</resources>
<registry>
</registry>
</sticker>