summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPekka Vuorela <pekka.vuorela@jolla.com>2021-05-05 15:45:45 +0300
committerVictor Toso <victortoso@gnome.org>2021-10-04 13:49:26 +0000
commit346696c16d48a4503c02a9910065f1659f29310e (patch)
tree8f1274d362083f3e1f1e020c763807000c793a80
parent340da5d552067b8a1738091f6a24b42ff07323b7 (diff)
downloadgrilo-plugins-346696c16d48a4503c02a9910065f1659f29310e.tar.gz
Adjust tracker3 query documentation
Commit d3e3b2fd474c switch from string to grilo media type, thus adjust the comment here. The example listing could be enhanced more but for starters switched nie:url to nie:isStoredAs which works with tracker:Audio.
-rw-r--r--src/tracker3/grl-tracker-source-api.c42
1 files changed, 3 insertions, 39 deletions
diff --git a/src/tracker3/grl-tracker-source-api.c b/src/tracker3/grl-tracker-source-api.c
index 5517f47..1772ec4 100644
--- a/src/tracker3/grl-tracker-source-api.c
+++ b/src/tracker3/grl-tracker-source-api.c
@@ -561,51 +561,15 @@ grl_tracker_source_writable_keys (GrlSource *source)
* Columns must be named with the Grilo key name that the column
* represent. Unnamed or unknown columns will be ignored.
*
- * First column must be the media type, and it does not need to be named. It
- * must match with any value supported in rdf:type() property, or
- * grilo#Container. Types understood are:
- *
- * <itemizedlist>
- * <listitem>
- * <para>
- * <literal>nmm#MusicPiece</literal>
- * </para>
- * </listitem>
- * <listitem>
- * <para>
- * <literal>nmm#Video</literal>
- * </para>
- * </listitem>
- * <listitem>
- * <para>
- * <literal>nmm#Photo</literal>
- * </para>
- * </listitem>
- * <listitem>
- * <para>
- * <literal>nmm#Artist</literal>
- * </para>
- * </listitem>
- * <listitem>
- * <para>
- * <literal>nmm#MusicAlbum</literal>
- * </para>
- * </listitem>
- * <listitem>
- * <para>
- * <literal>grilo#Container</literal>
- * </para>
- * </listitem>
- * </itemizedlist>
- *
+ * First column must be grilo media enum value, and it does not need to be named.
* An example for searching all songs:
*
* <informalexample>
* <programlisting>
- * SELECT rdf:type(?song)
+ * SELECT 1
* ?song AS ?id
* nie:title(?song) AS ?title
- * nie:url(?song) AS ?url
+ * nie:isStoredAs(?song) AS ?url
* WHERE { ?song a nmm:MusicPiece }
* </programlisting>
* </informalexample>