[47969a6] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY soprano-download-http "&sourceforge-repo;/soprano/soprano-&soprano-version;.tar.bz2">
|
---|
| 8 | <!ENTITY soprano-download-ftp " ">
|
---|
[87dcccc4] | 9 | <!ENTITY soprano-md5sum "91413e5783efeee0beb747ea4c5c9ef0">
|
---|
[47969a6] | 10 | <!ENTITY soprano-size "1.9 MB">
|
---|
[87dcccc4] | 11 | <!ENTITY soprano-buildsize "22 MB">
|
---|
| 12 | <!ENTITY soprano-time "0.6 SBU">
|
---|
[47969a6] | 13 | ]>
|
---|
| 14 |
|
---|
[8f1699f2] | 15 | <sect1 id="soprano" xreflabel="Soprano-&soprano-version;">
|
---|
[47969a6] | 16 | <?dbhtml filename="soprano.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>Soprano-&soprano-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="soprano">
|
---|
[b194f2b] | 22 | <primary sortas="a-Soprano">Soprano</primary>
|
---|
[47969a6] | 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to Soprano</title>
|
---|
| 27 |
|
---|
[8f1699f2] | 28 | <para>
|
---|
[0d7900a] | 29 | <application>Soprano</application> (formally known as QRDF) is a
|
---|
[8f1699f2] | 30 | library which provides a nice Qt interface to RDF storage solutions.
|
---|
| 31 | It has a modular structure which allows to replace the actual RDF
|
---|
| 32 | storage implementation used.
|
---|
| 33 | </para>
|
---|
[47969a6] | 34 |
|
---|
[2a00b77] | 35 | &lfs75_checked;
|
---|
[47969a6] | 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
[8f1699f2] | 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url="&soprano-download-http;"/>
|
---|
| 42 | </para>
|
---|
[47969a6] | 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
[8f1699f2] | 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&soprano-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
[47969a6] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[8f1699f2] | 50 | <para>
|
---|
| 51 | Download MD5 sum: &soprano-md5sum;
|
---|
| 52 | </para>
|
---|
[47969a6] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[8f1699f2] | 55 | <para>
|
---|
| 56 | Download size: &soprano-size;
|
---|
| 57 | </para>
|
---|
[47969a6] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[8f1699f2] | 60 | <para>
|
---|
| 61 | Estimated disk space required: &soprano-buildsize;
|
---|
| 62 | </para>
|
---|
[47969a6] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[8f1699f2] | 65 | <para>
|
---|
| 66 | Estimated build time: &soprano-time;
|
---|
| 67 | </para>
|
---|
[47969a6] | 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
[8f1699f2] | 70 |
|
---|
[eaa2ba5] | 71 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 72 | <itemizedlist spacing='compact'>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>Required patch: <ulink
|
---|
| 75 | url="&patch-root;/soprano-&soprano-version;-dbus-1.patch"/></para>
|
---|
| 76 | </listitem>
|
---|
| 77 | </itemizedlist>
|
---|
| 78 |
|
---|
[47969a6] | 79 | <bridgehead renderas="sect3">Soprano Dependencies</bridgehead>
|
---|
| 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 82 | <para role="required">
|
---|
[0d7900a] | 83 | <xref linkend="cmake"/>,
|
---|
[e8c07fad] | 84 | <xref linkend="qt4"/>, and
|
---|
| 85 | <xref linkend="redland"/>
|
---|
[47969a6] | 86 | </para>
|
---|
| 87 |
|
---|
[e8c07fad] | 88 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[47969a6] | 89 | <para role="recommended">
|
---|
[e8c07fad] | 90 | <xref linkend="clucene"/>,
|
---|
[54666831] | 91 | <xref linkend="dbus"/>,
|
---|
[0d7900a] | 92 | <xref linkend="libiodbc"/> (required for the Virtuoso backend. Additionally,
|
---|
| 93 | <xref linkend="virtuoso"/> is required as a runtime dependency for this
|
---|
[8f1699f2] | 94 | backend.)
|
---|
[6d59558] | 95 | </para>
|
---|
[0d7900a] | 96 |
|
---|
[6d59558] | 97 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 98 | <para role="optional">
|
---|
[87dcccc4] | 99 | <xref linkend="doxygen"/> (to build the documentation) and
|
---|
[8f1699f2] | 100 | <ulink url="http://www.openrdf.org/">Sesame2</ulink>
|
---|
[47969a6] | 101 | </para>
|
---|
| 102 |
|
---|
| 103 | <para condition="html" role="usernotes">User Notes:
|
---|
[8f1699f2] | 104 | <ulink url="&blfs-wiki;/soprano"/>
|
---|
| 105 | </para>
|
---|
[47969a6] | 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="installation">
|
---|
| 109 | <title>Installation of Soprano</title>
|
---|
| 110 |
|
---|
| 111 | <para>Install <application>soprano</application> by running the following
|
---|
| 112 | commands:</para>
|
---|
| 113 |
|
---|
[eaa2ba5] | 114 | <screen><userinput>patch -Np1 -i ../soprano-&soprano-version;-dbus-1.patch &&
|
---|
[2a00b77] | 115 |
|
---|
[eaa2ba5] | 116 | mkdir build &&
|
---|
[2a00b77] | 117 | cd build &&
|
---|
| 118 |
|
---|
[8f1699f2] | 119 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 120 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 121 | .. &&
|
---|
[47969a6] | 122 | make</userinput></screen>
|
---|
| 123 |
|
---|
[c6ebba90] | 124 | <para>This package does not come with a working test suite.</para>
|
---|
| 125 |
|
---|
[8f1699f2] | 126 | <para>
|
---|
| 127 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 128 | </para>
|
---|
[47969a6] | 129 |
|
---|
| 130 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 131 |
|
---|
| 132 | </sect2>
|
---|
| 133 | <sect2 role="commands">
|
---|
| 134 | <title>Command Explanations</title>
|
---|
| 135 |
|
---|
[8f1699f2] | 136 | <para>
|
---|
| 137 | <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used
|
---|
| 138 | to apply higher level of the compiler optimizations.
|
---|
| 139 | </para>
|
---|
| 140 |
|
---|
[e8c07fad] | 141 | <para>
|
---|
| 142 | <option>-DSOPRANO_DISABLE_CLUCENE_INDEX=ON</option>: This switch disables
|
---|
| 143 | compilation of Clucene-based full-text index.
|
---|
| 144 | </para>
|
---|
| 145 |
|
---|
[47969a6] | 146 | </sect2>
|
---|
[0d7900a] | 147 |
|
---|
[47969a6] | 148 | <sect2 role="configuration">
|
---|
| 149 | <title>Configuration of Soprano</title>
|
---|
| 150 |
|
---|
[8f1699f2] | 151 | <para>
|
---|
| 152 | Create a directory where <application>Soprano</application> places some
|
---|
[2a00b77] | 153 | runtime data as the <systemitem class="username">root</systemitem> user:
|
---|
[8f1699f2] | 154 | </para>
|
---|
| 155 |
|
---|
[47969a6] | 156 | <screen role="root"><userinput>install -m755 -d /srv/soprano</userinput></screen>
|
---|
| 157 |
|
---|
[8f1699f2] | 158 | <para>
|
---|
| 159 | The <command>sopranod</command> accepts some parameters. To configure
|
---|
| 160 | how the bootscript starts <command>sopranod</command>,
|
---|
[f3429309] | 161 | create a configuration file again as the
|
---|
[2a00b77] | 162 | <systemitem class="username">root</systemitem> user:
|
---|
[8f1699f2] | 163 | </para>
|
---|
[47969a6] | 164 |
|
---|
| 165 | <screen role="root"><userinput>cat > /etc/sysconfig/soprano <<EOF
|
---|
| 166 | # Begin /etc/sysconfig/soprano
|
---|
| 167 |
|
---|
| 168 | SOPRANO_STORAGE="/srv/soprano"
|
---|
[6d59558] | 169 | SOPRANO_BACKEND="virtuoso" # virtuoso, sesame2, redland
|
---|
[47969a6] | 170 | #SOPRANO_OPTIONS="$SOPRANO_OPTIONS --port 4711" # Default port is 5000
|
---|
| 171 |
|
---|
| 172 | # End /etc/sysconfig/soprano
|
---|
| 173 | EOF</userinput></screen>
|
---|
| 174 |
|
---|
[6d59558] | 175 | <sect3 id="soprano-init">
|
---|
[47969a6] | 176 | <title>Boot Script</title>
|
---|
| 177 |
|
---|
[6d59558] | 178 | <note>
|
---|
[8f1699f2] | 179 | <para>
|
---|
| 180 | It is not required to start the <application>Soprano</application>
|
---|
[0d7900a] | 181 | server at boottime for <application>KDE</application>.
|
---|
[8f1699f2] | 182 | <application>KDE</application> will start
|
---|
| 183 | <application>Soprano</application> as needed.
|
---|
| 184 | </para>
|
---|
[6d59558] | 185 | </note>
|
---|
[0d7900a] | 186 |
|
---|
[8f1699f2] | 187 | <para>
|
---|
| 188 | In order to get <application>Soprano</application> started
|
---|
| 189 | automatically when the system is booted, install the
|
---|
| 190 | <filename>/etc/rc.d/init.d/soprano</filename> init script included
|
---|
[f3429309] | 191 | in the <xref linkend="bootscripts"/> package as the
|
---|
[2a00b77] | 192 | <systemitem class="username">root</systemitem> user:
|
---|
[8f1699f2] | 193 | </para>
|
---|
[47969a6] | 194 |
|
---|
| 195 | <indexterm zone="soprano soprano-init">
|
---|
| 196 | <primary sortas="f-soprano">soprano</primary>
|
---|
| 197 | </indexterm>
|
---|
| 198 |
|
---|
| 199 | <screen role="root"><userinput>make install-soprano</userinput></screen>
|
---|
| 200 |
|
---|
| 201 | </sect3>
|
---|
| 202 |
|
---|
| 203 | </sect2>
|
---|
| 204 |
|
---|
| 205 | <sect2 role="content">
|
---|
| 206 | <title>Contents</title>
|
---|
| 207 |
|
---|
| 208 | <segmentedlist>
|
---|
| 209 | <segtitle>Installed Programs</segtitle>
|
---|
| 210 | <segtitle>Installed Libraries</segtitle>
|
---|
[86f9469] | 211 | <segtitle>Installed Directories</segtitle>
|
---|
[47969a6] | 212 |
|
---|
| 213 | <seglistitem>
|
---|
[8f1699f2] | 214 | <seg>
|
---|
[55d9118] | 215 | onto2vocabularyclass, sopranocmd, and sopranod
|
---|
[8f1699f2] | 216 | </seg>
|
---|
| 217 | <seg>
|
---|
[87dcccc4] | 218 | libsopranoclient.so, libsopranoindex.so, libsopranoserver.so, and libsoprano.so
|
---|
[8f1699f2] | 219 | </seg>
|
---|
[028759b] | 220 | <seg>
|
---|
[8f1699f2] | 221 | /usr/include/soprano,
|
---|
| 222 | /usr/include/Soprano,
|
---|
[55d9118] | 223 | /usr/lib/soprano, and
|
---|
[8f1699f2] | 224 | /usr/share/soprano
|
---|
| 225 | </seg>
|
---|
[47969a6] | 226 | </seglistitem>
|
---|
| 227 | </segmentedlist>
|
---|
[8f1699f2] | 228 |
|
---|
[47969a6] | 229 | </sect2>
|
---|
| 230 |
|
---|
| 231 | </sect1>
|
---|