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