[tracker-miners/wip/carlosg/tracker-3.0-api-breaks: 46/57] data: Install default domain ontology file



commit c7b9fd51adc98c1e14352b3f5d9054500fe8846c
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Dec 31 12:28:10 2019 +0100

    data: Install default domain ontology file
    
    Domain ontologies are a high-level way to configure tracker
    services. As the Tracker repo is all about libtracker-sparql and
    nothing about services anymore, this domain ontology definition
    must move to tracker-miners.

 data/default.rule | 40 ++++++++++++++++++++++++++++++++++++++++
 data/meson.build  |  3 +++
 2 files changed, 43 insertions(+)
---
diff --git a/data/default.rule b/data/default.rule
new file mode 100644
index 000000000..dd6961cf6
--- /dev/null
+++ b/data/default.rule
@@ -0,0 +1,40 @@
+[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
+
+# 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
+
+# Miners that the domain ontology will require. This is
+# purely a hint (mainly for libtracker-control), and not
+# any sort of white list. Anything else knowing about this
+# domain ontology may still perform updates, miners and
+# non-miners.
+Miners=Miner.Files;Miner.Extract;Miner.Applications;Miner.RSS
diff --git a/data/meson.build b/data/meson.build
index 6da887ce4..fc9cc68f8 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -69,3 +69,6 @@ custom_target('tracker-miners-compile-schemas',
   depend_files: schemas)
 
 tracker_miners_uninstalled_gsettings_schema_dir = meson.current_build_dir()
+
+install_data('default.rule',
+    install_dir: join_paths(get_option('datadir'), 'tracker', 'domain-ontologies'))


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