[tracker/wip/carlosg/domain-ontologies: 91/124] tracker-store: Install default domain ontology



commit 23e2a25594455ad8a2b90b6692f645dff638c2c3
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jun 19 22:31:40 2017 +0200

    tracker-store: Install default domain ontology
    
    This makes Tracker behave as it ever used to. Also add some comments
    so it serves as a base for other domain ontologies.

 src/tracker-store/Makefile.am  |    4 ++++
 src/tracker-store/default.rule |   38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/Makefile.am b/src/tracker-store/Makefile.am
index 9b9af85..dc5df50 100644
--- a/src/tracker-store/Makefile.am
+++ b/src/tracker-store/Makefile.am
@@ -76,6 +76,9 @@ service_DATA = org.freedesktop.Tracker1.service
 systemd_userdir = $(prefix)/lib/systemd/user
 systemd_user_DATA = tracker-store.service
 
+domain_ontologiesdir = $(datadir)/tracker/domain-ontologies
+domain_ontologies_DATA = default.rule
+
 # Desktop files: First we fix the VERSION and libexecdir
 %.desktop.in: %.desktop.in.in
        @sed -e "s|@libexecdir[@]|${libexecdir}|" \
@@ -115,5 +118,6 @@ EXTRA_DIST += \
        $(config_DATA) \
        $(gsettings_SCHEMAS:.xml=.xml.in) \
        $(man_MANS) \
+       $(domain_ontologies_DATA) \
        meson.build
 
diff --git a/src/tracker-store/default.rule b/src/tracker-store/default.rule
new file mode 100644
index 0000000..d08b3c7
--- /dev/null
+++ b/src/tracker-store/default.rule
@@ -0,0 +1,38 @@
+[DomainOntology]
+# All locations accept
+# 1) Paths relative from a variable, the variables
+#    may be: HOME, XDG_CACHE_HOME, XDG_DATA_HOME, XDG_RUNTIME_DIR,
+#    XDG_DESKTOP_DIR, XDG_DOCUMENTS_DIR, XDG_DOWNLOAD_DIR,
+#    XDG_MUSIC_DIR, XDG_PICTURES_DIR, XDG_PUBLICSHARE_DIR,
+#    XDG_VIDEOS_DIR.
+#
+#    eg. $XDG_CACHE_HOME/...
+#
+# 2) URIs
+#
+#    eg. file:///var/...
+#
+
+# Location for the Tracker database (not optional)
+CacheLocation=$XDG_CACHE_HOME/tracker
+
+# Location for the data journal, used in data recovery
+# situations (optional)
+JournalLocation=$XDG_DATA_HOME/tracker/data
+
+# Name of the ontology to use, must be one located in
+# $(sharedir)/tracker/ontologies
+OntologyName=nepomuk
+
+# Alternatively, the location may be provided with an
+# absolute URI. One of OntologyName and OntologyLocation
+# must be provided
+#OntologyLocation=file:///...
+
+# DBus name for the owner (not optional). Tracker will use
+# the domain as the prefix of the DBus name for all the
+# services related to this domain ontology.
+#
+# eg. org.gnome.Photos
+Domain=org.freedesktop
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]