[tracker/wip/carlosg/domain-ontologies: 86/116] tracker-store: Install default domain ontology



commit e01d4b82770d88fb69d7899eb12b295fc63a55b8
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  |    3 +++
 src/tracker-store/default.rule |   38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/Makefile.am b/src/tracker-store/Makefile.am
index 9b9af85..2e1df86 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}|" \
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]