]> kaliko git repositories - mpd-sima.git/blobdiff - data/man/simadb_cli.1.xml
Huge clean-up
[mpd-sima.git] / data / man / simadb_cli.1.xml
index 5448f862d17fa8f41adff99f1533f3e0f0e8be3f..6bab00402194cb068e2b9746a8fd5d3dbd9bb17d 100644 (file)
@@ -60,25 +60,6 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
         <refpurpose>&dhutils; is a command line interface editor for the sima user DB.</refpurpose>
     </refnamediv>
     <refsynopsisdiv>
-        <cmdsynopsis><!-- REGULAR EDIT (ADD) OPTIONS -->
-            <command>&dhutils;</command>
-            <arg choice="plain"><option>--add_similarity=</option><replaceable class="option">similarity_string</replaceable></arg>
-            <arg choice="opt">
-                <option>--check_names</option>
-            </arg>
-            <arg choice="opt">
-                <option>--dbfile=</option><replaceable class="option">db_file</replaceable>
-            </arg>
-            <arg choice="opt">
-                <option>--reciprocal</option>
-            </arg>
-            <arg choice="opt">
-                <option>--host=</option><replaceable class="option">mpd_host</replaceable>
-            </arg>
-            <arg choice="opt">
-                <option>--port=</option><replaceable class="option">mpd_port</replaceable>
-            </arg>
-        </cmdsynopsis>
         <cmdsynopsis><!-- EDIT (RM ARTIST) OPTIONS -->
             <command>&dhutils;</command>
             <arg choice="plain"><option>--remove_artist=</option><replaceable class="parameter">artist</replaceable></arg>
@@ -89,16 +70,6 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
                 <option>--reciprocal</option>
             </arg>
         </cmdsynopsis>
-        <cmdsynopsis><!-- EDIT (RM SIM) OPTIONS -->
-            <command>&dhutils;</command>
-            <arg choice="plain"><option>--remove_similarity=</option><replaceable class="parameter">"main artist,similar artist"</replaceable></arg>
-            <arg choice="opt">
-                <option>--dbfile=</option><replaceable class="option">db_file</replaceable>
-            </arg>
-            <arg choice="opt">
-                <option>--reciprocal</option>
-            </arg>
-        </cmdsynopsis>
         <cmdsynopsis><!-- EDIT (PURGE HIST) OPTIONS -->
             <command>&dhutils;</command>
             <arg choice="plain"><option>--purge_hist</option></arg>
@@ -106,13 +77,6 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
                 <option>--dbfile=</option><replaceable class="option">db_file</replaceable>
             </arg>
         </cmdsynopsis>
-        <cmdsynopsis><!-- REGULAR VIEW OPTIONS -->
-            <command>&dhutils;</command>
-            <arg choice="plain"><option>--view_artist=<replaceable class="parameter">"artist name"</replaceable></option></arg>
-            <arg choice="opt">
-                <option>--dbfile=</option><replaceable class="option">db_file</replaceable>
-            </arg>
-        </cmdsynopsis>
         <cmdsynopsis><!-- VIEW ALL ENTRIES OPTIONS -->
             <command>&dhutils;</command>
             <arg choice="plain"><option>--view_all</option></arg>
@@ -172,33 +136,12 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
         <para>This manual page documents briefly the
             <command>&dhutils;</command> commands.</para>
         <para>simadb_cli is a command line interface to get and edit users
-            similarities and blacklist database used with MPD_sima. The default
+            blacklist database used with MPD_sima. The default
             database file (see <xref linkend="files"/>) can be overridden if
             you want.</para>
-        <para>Consider reading <xref linkend="simadb" /> to understand the
-            structure and relation of similarities within the database.</para>
     </refsect1>
     <refsect1 id="example">
         <title>EXAMPLE</title>
-        <refsect2 id="similarity">
-            <title>Similarity edition</title>
-            <para>Here follows some simple examples on how to deal with similarity database.</para>
-            <para>Pay attention, the following examples set one-way similarities in the DB! Read more about it in <xref linkend="simadb" />.</para>
-            <para><emphasis>Adding a similarity between two artists.</emphasis> In the following example "Pelican" will point 
-                to "Russian Circles" with a match score of 88% (ie. "Russian Circles"
-                88% similar to Pelican, not reciprocal), it will also check against MPD
-                the presence of both artists in the music library.</para>
-            <para><command>&dhutils; --add "Pelican,Russian Circles:80" --check_names</command></para>
-            <para>Similarity string use comma "," as artists separator and semi colon ":" for
-                artist/similarity score separator, cf. <xref linkend="simiformat"/>.</para>
-            <para><emphasis>Adding a similarity between multiple artists.</emphasis> In the following example "Rage
-                Against The Machine" will point to "Tool" and "Audioslave" as similar
-                artists and controls artists names are actually in MPD music library.</para>
-            <para><command>&dhutils; --add "Rage Against The Machine,Tool:70,Audiosalve:80" --check_names</command></para>
-            <para><emphasis>Viewing similarit(y|ies) for an artist.</emphasis> In the
-                following example we are looking for entries for "Rage Against The Machine"</para>
-            <para><command>&dhutils; --view_artist "Rage Against The Machine"</command></para>
-        </refsect2>
         <refsect2 id="blacklist">
             <title>Black list edition</title>
             <para><emphasis>Adding to black list.</emphasis> You can add a single
@@ -242,20 +185,6 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
                     <para>Print version and exit.</para>
                 </listitem>
             </varlistentry>
-            <varlistentry> <!-- add similarity -->
-                <term><option>-a <replaceable class="parameter">similarity_string</replaceable></option></term>
-                <term><option>--add_similarity=<replaceable class="parameter">similarity_string</replaceable></option></term>
-                <listitem>
-                    <para>Add similarity to the database.<sbr />For more details about the <replaceable class="option">similarity_string</replaceable> see <xref linkend="simiformat"/>.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry> <!-- check_names -->
-                <term><option>-c</option></term>
-                <term><option>--check_names</option></term>
-                <listitem>
-                    <para>Use with <option>--add_similarity</option> in order to check artists names used in <replaceable class="parameter">similarity_string</replaceable>. &dhutils; will control presence of artists names in MPD library. Default is to look for MPD server on localhost:6600 or environment variables <envar>MPD_HOST</envar> and <envar>MPD_PORT</envar> if set.<sbr />You can as well give &dhutils; host/port on the command line using respectively <option>-S</option> and <option>-P</option>.</para>
-                </listitem>
-            </varlistentry>
             <varlistentry> <!-- black list artist -->
                 <term><option>--bl_art=<replaceable class="parameter">artist_name</replaceable></option></term>
                 <listitem>
@@ -282,53 +211,18 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
                     <para>Purge history, you may supply an alternative DB file with --dbfile option.</para>
                 </listitem>
             </varlistentry>
-            <varlistentry> <!-- reciprocal -->
-                <term><option>-r</option></term>
-                <term><option>--reciprocal</option></term>
-                <listitem>
-                    <para>Use with an editing options in order to edit reciprocal similarity as well. <option>--add_similarity</option> and <option>--remove_{artist|similarity}</option> are supporting reciprocal edition.</para>
-                    <para><emphasis>N.B</emphasis>: this option has to appear after the editing option on the command line.</para>
-                    <para>See <xref linkend="simadb"/> for further information about reciprocity notion.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry> <!-- remove artist -->
-                <term><option>--remove_artist=<replaceable class="parameter">artist</replaceable></option></term>
-                <listitem>
-                    <para>Use to remove an artist entry (as main artist) with its associated similarities. To remove artist where it appears as a similar artist use the <option>--reciprocal</option> option.</para>
-                </listitem>
-            </varlistentry>
             <varlistentry> <!-- remove bl id -->
                 <term><option>--remove_bl=<replaceable class="parameter">row_id</replaceable></option></term>
                 <listitem>
                     <para>Use to remove a black list entry. To get the row_id to suppress use <option>--view_bl</option> option.</para>
                 </listitem>
             </varlistentry>
-            <varlistentry> <!-- remove similarity -->
-                <term><option>--remove_similarity=<replaceable class="parameter">"main artist,similar artist"</replaceable></option></term>
-                <listitem>
-                    <para>Use to remove a single similarity between a main artist and an associated similarity. Give the main artist first, use comma (",") to separate it from similar artist.<sbr />Use of <option>--reciprocal</option> is possible here, see <xref linkend="simadb" />.</para>
-                    <para>This option is useful in case you want to remove only a specific similarity between two artists, to remove completely an artist use <option>--remove_artist</option> instead.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry> <!-- view artist -->
-                <term><option>-v <replaceable class="parameter">"artist name"</replaceable></option></term>
-                <term><option>--view_artist=<replaceable class="parameter">"artist name"</replaceable></option></term>
-                <listitem>
-                    <para>Get entries for <replaceable class="parameter">"artist name"</replaceable> in the data base (print to stdout).</para>
-                </listitem>
-            </varlistentry>
             <varlistentry> <!-- view bl -->
                 <term><option>--view_bl</option></term>
                 <listitem>
                     <para>Get all entries in the black list.</para>
                 </listitem>
             </varlistentry>
-            <varlistentry> <!-- view all -->
-                <term><option>--view_all</option></term>
-                <listitem>
-                    <para>Get all entries in the data base (print to stdout).</para>
-                </listitem>
-            </varlistentry>
             <varlistentry>
                 <term><option>-P <replaceable class="parameter">mpd_port</replaceable></option></term>
                 <term><option>--port=<replaceable class="parameter">mpd_port</replaceable></option></term>
@@ -356,54 +250,6 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
             </varlistentry>
         </variablelist>
     </refsect1>
-    <refsect1 id="simiformat">
-        <title>SIMILARITY FORMAT</title>
-        <para>The <replaceable class="parameter">similarity_string</replaceable> has to be formatted following a special pattern in order for simadb_cli to extract similarity relations between artists names. Usually a similarity entry is defined as a main artist, lets say <emphasis>main_art</emphasis>, followed by a list of similar artists which you want to be related to that <emphasis>main_art</emphasis>, each artist of that list with a specific similarity value, a match score, quantifying the similarity relation with the <emphasis>main_art</emphasis>. The match score value is an integer in [0 ,100] with 100 corresponding to a perfect match.</para>
-        <para><replaceable class="parameter">similarity_string</replaceable> is then to be formatted as follow:</para>
-        <para><command>main_art,first artist:&lt;score&gt;,second artist:&lt;score&gt;</command></para>
-        <para>Each artist group are separated with commas (",") and inside each group the artist name and the match score is colon (":") separated. Obviously the first artist group, as the main artist, does not have a match score.</para>
-        <para>Lets see how it works with an example. I consider "Led Zeppelin" to be similar to "Tool" with a match score of 25, I also want to have "Audioslave" related to "Led Zeppelin" with a score of 20. Then the <replaceable class="parameter">similarity_string</replaceable> will be the following:</para>
-        <para><command>Led Zeppelin,Tool:25,Audiosalve:20</command></para>
-        <para>See <xref linkend="simadb" /> for more details about how similarities are handled</para>
-    </refsect1>
-    <refsect1 id="simadb">
-        <title>A WORD ABOUT SIMA DATA BASE</title>
-        <para>The similarity database is defined from the point of view of a <emphasis>main artist</emphasis> which is declared related to a list of <emphasis>similar artists</emphasis>. That means when you define <emphasis>main_art</emphasis> to be similar to <emphasis>sim_art A</emphasis> and <emphasis>sim_art B</emphasis> the reciprocal won't be true, <emphasis>sim_art A</emphasis> and <emphasis>sim_art B</emphasis> are not similar to <emphasis>main_art</emphasis>. At least this is the default behavior when you edit entries with simadb_cli, this is also the way last.fm is working concerning similar artists. This documentation is using that particular terminology to specify which kind of artist we are dealing with : "main artist" or "similar artist".<sbr />The <option>--reciprocal</option> option allows one to add reciprocal relation where <emphasis>sim_art A</emphasis> and <emphasis>sim_art B</emphasis> become respectively the <emphasis>main_art</emphasis>. Using <option>--reciprocal</option> you will then edit two more entries in the database. To summarize here is what you'll end up with in your data base adding similarity with this string <command>main_art,sim_art A:34,sim_art B:45</command>.</para>
-        <para><command>simadb_cli --reciprocal --add_similarity=main_art,sim_art A:34,sim_art B:45</command></para>
-        <para>main_art similar to sim_art A:34 and sim_art B:45<sbr />sim_art A  similar to main_art:34<sbr />sim_art B  similar to main_art:45</para>
-        <para>Without the reciprocal option you would have add only the first similarity. Usually using the reciprocal option is the desired behavior, at least what users have in mind when thinking of similarity relation between to artists but keep in mind that it may lead to have MPD_sima more sensible to loop over the same two artist (ASSERTION TO BE CONFIRMED).</para>
-    </refsect1>
-    <!--
-    <refsect1 id="diagnostics">
-        <title>DIAGNOSTICS</title>
-        <para>The following diagnostics may be issued
-            on <filename class="devicefile">stderr</filename>:</para>
-        <variablelist>
-            <varlistentry>
-                <term><errortext>Bad configuration file. Exiting.</errortext></term>
-                <listitem>
-                    <para>The configuration file seems to contain a broken configuration
-                        line. Use the <option>-''-verbose</option> option, to get more info.
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-        <para><command>&dhpackage;</command> provides some return codes, that can
-            be used in scripts:</para>
-        <segmentedlist>
-            <segtitle>Code</segtitle>
-            <segtitle>Diagnostic</segtitle>
-            <seglistitem>
-                <seg><errorcode>0</errorcode></seg>
-                <seg>Program exited successfully.</seg>
-            </seglistitem>
-            <seglistitem>
-                <seg><errorcode>1</errorcode></seg>
-                <seg>The configuration file seems to be broken.</seg>
-            </seglistitem>
-        </segmentedlist>
-    </refsect1>
-    -->
   <xi:include href="feedback.xml" />
   <xi:include href="seealso.xml" />
 </refentry>