[tracker-miners/wip/carlosg/graphs: 13/18] tracker-extract: Set graph on extractor rules



commit 6047bd0507ab041acbb46d390084976a4dde4204
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Apr 26 15:03:31 2020 +0200

    tracker-extract: Set graph on extractor rules
    
    There's a total of 4 graphs defined:
    - tracker:Documents
    - tracker:Videos
    - tracker:Audio
    - tracker:Software
    
    The use of most is obvious, the Software graph will store all
    desktop files and iso files indexed.
    
    Each extractor module provides one of them, which will be used
    to determine the target graph of the extracted data.

 src/tracker-extract/10-abw.rule                     | 1 +
 src/tracker-extract/10-bmp.rule                     | 2 +-
 src/tracker-extract/10-comics.rule                  | 1 +
 src/tracker-extract/10-desktop.rule                 | 1 +
 src/tracker-extract/10-dvi.rule                     | 1 +
 src/tracker-extract/10-ebooks.rule                  | 1 +
 src/tracker-extract/10-epub.rule                    | 1 +
 src/tracker-extract/10-flac.rule                    | 1 +
 src/tracker-extract/10-gif.rule                     | 1 +
 src/tracker-extract/10-html.rule                    | 1 +
 src/tracker-extract/10-ico.rule                     | 1 +
 src/tracker-extract/10-jpeg.rule                    | 1 +
 src/tracker-extract/10-mp3.rule                     | 1 +
 src/tracker-extract/10-msoffice.rule                | 1 +
 src/tracker-extract/10-oasis.rule                   | 1 +
 src/tracker-extract/10-pdf.rule                     | 1 +
 src/tracker-extract/10-png.rule                     | 1 +
 src/tracker-extract/10-ps.rule                      | 1 +
 src/tracker-extract/10-raw.rule                     | 1 +
 src/tracker-extract/10-svg.rule                     | 1 +
 src/tracker-extract/10-tiff.rule                    | 1 +
 src/tracker-extract/10-vorbis.rule                  | 1 +
 src/tracker-extract/10-xmp.rule                     | 1 -
 src/tracker-extract/10-xps.rule                     | 1 +
 src/tracker-extract/11-iso.rule                     | 1 +
 src/tracker-extract/11-msoffice-xml.rule            | 1 +
 src/tracker-extract/15-gstreamer-guess.rule         | 1 +
 src/tracker-extract/15-playlist.rule                | 1 +
 src/tracker-extract/15-source-code.rule             | 1 +
 src/tracker-extract/90-gstreamer-audio-generic.rule | 1 +
 src/tracker-extract/90-gstreamer-video-generic.rule | 1 +
 src/tracker-extract/90-libav-audio-generic.rule     | 1 +
 src/tracker-extract/90-libav-video-generic.rule     | 1 +
 src/tracker-extract/90-text-generic.rule            | 1 +
 src/tracker-extract/91-gstreamer-generic-dlna.rule  | 1 -
 35 files changed, 33 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-extract/10-abw.rule b/src/tracker-extract/10-abw.rule
index 6702e0d86..efd865eeb 100644
--- a/src/tracker-extract/10-abw.rule
+++ b/src/tracker-extract/10-abw.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-abw.so
 MimeTypes=application/x-abiword
 FallbackRdfTypes=nfo:Document
+Graph=tracker:Documents
diff --git a/src/tracker-extract/10-bmp.rule b/src/tracker-extract/10-bmp.rule
index 7ce022d7d..55950c278 100644
--- a/src/tracker-extract/10-bmp.rule
+++ b/src/tracker-extract/10-bmp.rule
@@ -2,4 +2,4 @@
 ModulePath=libextract-bmp.so
 MimeTypes=image/bmp
 FallbackRdfTypes=nfo:Image;nmm:Photo;
-
+Graph=tracker:Pictures
diff --git a/src/tracker-extract/10-comics.rule b/src/tracker-extract/10-comics.rule
index 9d2d05c02..cb25399b7 100644
--- a/src/tracker-extract/10-comics.rule
+++ b/src/tracker-extract/10-comics.rule
@@ -1,3 +1,4 @@
 [ExtractorRule]
 
MimeTypes=application/x-cbr;application/x-cbz;application/x-cbt;application/x-cb7;application/vnd.comicbook+zip;
 FallbackRdfTypes=nfo:EBook;
+Graph=tracker:Documents
diff --git a/src/tracker-extract/10-desktop.rule b/src/tracker-extract/10-desktop.rule
index 851bd097a..8cf3fd436 100644
--- a/src/tracker-extract/10-desktop.rule
+++ b/src/tracker-extract/10-desktop.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-desktop.so
 MimeTypes=application/x-desktop
 FallbackRdfTypes=nfo:SoftwareApplication;
+Graph=tracker:Software
diff --git a/src/tracker-extract/10-dvi.rule b/src/tracker-extract/10-dvi.rule
index 5ce40af8d..f2b11ac02 100644
--- a/src/tracker-extract/10-dvi.rule
+++ b/src/tracker-extract/10-dvi.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-dvi.so
 MimeTypes=application/x-dvi
 FallbackRdfTypes=nfo:Document
+Graph=tracker:Documents
diff --git a/src/tracker-extract/10-ebooks.rule b/src/tracker-extract/10-ebooks.rule
index d7a03d697..b273ac17f 100644
--- a/src/tracker-extract/10-ebooks.rule
+++ b/src/tracker-extract/10-ebooks.rule
@@ -1,3 +1,4 @@
 [ExtractorRule]
 
MimeTypes=application/x-zip-compressed-fb2;application/x-fictionbook+xml;application/x-mobipocket-ebook;image/vnd.djvu+multipage;
 FallbackRdfTypes=nfo:EBook;nfo:PaginatedTextDocument;
+Graph=tracker:Documents
diff --git a/src/tracker-extract/10-epub.rule b/src/tracker-extract/10-epub.rule
index d19ebd637..753f8d5a6 100644
--- a/src/tracker-extract/10-epub.rule
+++ b/src/tracker-extract/10-epub.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-epub.so
 MimeTypes=application/epub+zip
 FallbackRdfTypes=nfo:EBook;nfo:TextDocument;
+Graph=tracker:Documents
diff --git a/src/tracker-extract/10-flac.rule b/src/tracker-extract/10-flac.rule
index 088e72285..a0e4bacab 100644
--- a/src/tracker-extract/10-flac.rule
+++ b/src/tracker-extract/10-flac.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-flac.so
 MimeTypes=audio/x-flac
 FallbackRdfTypes=nfo:Audio;
+Graph=tracker:Audio
diff --git a/src/tracker-extract/10-gif.rule b/src/tracker-extract/10-gif.rule
index a88780b8e..05efe4e5c 100644
--- a/src/tracker-extract/10-gif.rule
+++ b/src/tracker-extract/10-gif.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-gif.so
 MimeTypes=image/gif
 FallbackRdfTypes=nfo:Image;nmm:Photo;
+Graph=tracker:Pictures
\ No newline at end of file
diff --git a/src/tracker-extract/10-html.rule b/src/tracker-extract/10-html.rule
index e26f356f2..ca14c8786 100644
--- a/src/tracker-extract/10-html.rule
+++ b/src/tracker-extract/10-html.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-html.so
 MimeTypes=text/html;application/xhtml+xml;
 FallbackRdfTypes=nfo:HtmlDocument
+Graph=tracker:Documents
diff --git a/src/tracker-extract/10-ico.rule b/src/tracker-extract/10-ico.rule
index 47d71a19d..8c0d7c90a 100644
--- a/src/tracker-extract/10-ico.rule
+++ b/src/tracker-extract/10-ico.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-icon.so
 MimeTypes=image/vnd.microsoft.icon
 FallbackRdfTypes=nfo:Image;nfo:Icon;
+Graph=tracker:Pictures
diff --git a/src/tracker-extract/10-jpeg.rule b/src/tracker-extract/10-jpeg.rule
index 424d9e498..8d2a5d7c3 100644
--- a/src/tracker-extract/10-jpeg.rule
+++ b/src/tracker-extract/10-jpeg.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-jpeg.so
 MimeTypes=image/jpeg
 FallbackRdfTypes=nfo:Image;nmm:Photo;
+Graph=tracker:Pictures
diff --git a/src/tracker-extract/10-mp3.rule b/src/tracker-extract/10-mp3.rule
index 015f798b2..a88ab9c0a 100644
--- a/src/tracker-extract/10-mp3.rule
+++ b/src/tracker-extract/10-mp3.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-mp3.so
 MimeTypes=audio/mpeg;audio/x-mp3;
 FallbackRdfTypes=nmm:MusicPiece;nfo:Audio;
+Graph=tracker:Audio
diff --git a/src/tracker-extract/10-msoffice.rule b/src/tracker-extract/10-msoffice.rule
index d65bcc04c..65cae3e32 100644
--- a/src/tracker-extract/10-msoffice.rule
+++ b/src/tracker-extract/10-msoffice.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-msoffice.so
 
MimeTypes=application/vnd.ms-word;application/vnd.ms-word.*;application/vnd.ms-powerpoint;application/vnd.ms-excel;application/vnd.ms-access;application/vnd.ms-publisher;application/vnd.ms-tnef;application/vnd.ms-word;application/vnd.ms-works;application/vnd.ms-wpl;application/msword;
 FallbackRdfTypes=nfo:Document
+Graph=tracker:Documents
diff --git a/src/tracker-extract/10-oasis.rule b/src/tracker-extract/10-oasis.rule
index d49f7bf54..f3187adf9 100644
--- a/src/tracker-extract/10-oasis.rule
+++ b/src/tracker-extract/10-oasis.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-oasis.so
 MimeTypes=application/vnd.oasis.opendocument.*
 FallbackRdfTypes=nfo:PaginatedTextDocument
+Graph=tracker:Documents
diff --git a/src/tracker-extract/10-pdf.rule b/src/tracker-extract/10-pdf.rule
index d9f2f49c8..a72f0f4a5 100644
--- a/src/tracker-extract/10-pdf.rule
+++ b/src/tracker-extract/10-pdf.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-pdf.so
 MimeTypes=application/pdf
 FallbackRdfTypes=nfo:PaginatedTextDocument
+Graph=tracker:Documents
diff --git a/src/tracker-extract/10-png.rule b/src/tracker-extract/10-png.rule
index c97a46aea..9bc90ac8a 100644
--- a/src/tracker-extract/10-png.rule
+++ b/src/tracker-extract/10-png.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-png.so
 MimeTypes=image/png;sketch/png;
 FallbackRdfTypes=nfo:Image;nmm:Photo;
+Graph=tracker:Pictures
diff --git a/src/tracker-extract/10-ps.rule b/src/tracker-extract/10-ps.rule
index 874ceb16a..a34663bda 100644
--- a/src/tracker-extract/10-ps.rule
+++ b/src/tracker-extract/10-ps.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-ps.so
 MimeTypes=application/x-gzpostscript;application/postscript;
 FallbackRdfTypes=nfo:PaginatedTextDocument
+Graph=tracker:Documents
diff --git a/src/tracker-extract/10-raw.rule b/src/tracker-extract/10-raw.rule
index 07023e8ee..e86a1227c 100644
--- a/src/tracker-extract/10-raw.rule
+++ b/src/tracker-extract/10-raw.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-raw.so
 
MimeTypes=image/x-dcraw;image/x-adobe-dng;image/x-canon-cr2;image/x-canon-crw;image/x-epson-erf;image/x-fuji-raf;image/x-minolta-mrw;image/x-nikon-nef;image/x-olympus-orf;image/x-panasonic-rw;image/x-pentax-pef;image/x-raw;image/x-samsung-raw;image/x-sigma-x3f;image/x-sony-arw;image/x-sony-srf;image/x-sony-sr2;
 FallbackRdfTypes=nfo:Image;nmm:Photo;
+Graph=tracker:Pictures
diff --git a/src/tracker-extract/10-svg.rule b/src/tracker-extract/10-svg.rule
index bff464413..7cfa23501 100644
--- a/src/tracker-extract/10-svg.rule
+++ b/src/tracker-extract/10-svg.rule
@@ -1,3 +1,4 @@
 [ExtractorRule]
 MimeTypes=image/svg+xml;image/svg+xml-compressed;
 FallbackRdfTypes=nfo:Image;nfo:VectorImage;
+Graph=tracker:Pictures
diff --git a/src/tracker-extract/10-tiff.rule b/src/tracker-extract/10-tiff.rule
index ce331944d..db71abfc2 100644
--- a/src/tracker-extract/10-tiff.rule
+++ b/src/tracker-extract/10-tiff.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-tiff.so
 MimeTypes=image/tiff
 FallbackRdfTypes=nfo:Image;nmm:Photo;
+Graph=tracker:Pictures
diff --git a/src/tracker-extract/10-vorbis.rule b/src/tracker-extract/10-vorbis.rule
index 48f99817e..cb175c571 100644
--- a/src/tracker-extract/10-vorbis.rule
+++ b/src/tracker-extract/10-vorbis.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-vorbis.so
 MimeTypes=audio/x-vorbis+ogg;application/ogg;
 FallbackRdfTypes=nmm:MusicPiece;nfo:Audio;
+Graph=tracker:Audio
diff --git a/src/tracker-extract/10-xmp.rule b/src/tracker-extract/10-xmp.rule
index e9288db52..5ec86ff72 100644
--- a/src/tracker-extract/10-xmp.rule
+++ b/src/tracker-extract/10-xmp.rule
@@ -1,4 +1,3 @@
 [ExtractorRule]
 ModulePath=libextract-xmp.so
 MimeTypes=application/rdf+xml
-
diff --git a/src/tracker-extract/10-xps.rule b/src/tracker-extract/10-xps.rule
index 6bfdd2703..2ebd186ea 100644
--- a/src/tracker-extract/10-xps.rule
+++ b/src/tracker-extract/10-xps.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-xps.so
 MimeTypes=application/oxps;application/vnd.ms-xpsdocument;
 FallbackRdfTypes=nfo:PaginatedTextDocument
+Graph=tracker:Documents
diff --git a/src/tracker-extract/11-iso.rule b/src/tracker-extract/11-iso.rule
index 3a5c69ec6..0a3daf575 100644
--- a/src/tracker-extract/11-iso.rule
+++ b/src/tracker-extract/11-iso.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-iso.so
 MimeTypes=application/x-cd-image
 FallbackRdfTypes=nfo:FilesystemImage
+Graph=tracker:Software
diff --git a/src/tracker-extract/11-msoffice-xml.rule b/src/tracker-extract/11-msoffice-xml.rule
index 5df19f0e7..8c0dbb00c 100644
--- a/src/tracker-extract/11-msoffice-xml.rule
+++ b/src/tracker-extract/11-msoffice-xml.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-msoffice-xml.so
 
MimeTypes=application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.openxmlformats-officedocument.presentationml.slideshow;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.openxmlformats-officedocument.wordprocessingml.document;
 FallbackRdfTypes=nfo:PaginatedTextDocument
+Graph=tracker:Documents
diff --git a/src/tracker-extract/15-gstreamer-guess.rule b/src/tracker-extract/15-gstreamer-guess.rule
index ad71d03e7..6225b1b5b 100644
--- a/src/tracker-extract/15-gstreamer-guess.rule
+++ b/src/tracker-extract/15-gstreamer-guess.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-gstreamer.so
 MimeTypes=video/3gpp;video/mp4;video/x-ms-asf;application/vnd.ms-asf;application/vnd.rn-realmedia;
 FallbackRdfTypes=nfo:Media;nfo:Video;
+Graph=tracker:Video
diff --git a/src/tracker-extract/15-playlist.rule b/src/tracker-extract/15-playlist.rule
index 8804f8708..c8ceb3a3a 100644
--- a/src/tracker-extract/15-playlist.rule
+++ b/src/tracker-extract/15-playlist.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-playlist.so
 
MimeTypes=audio/x-mpegurl;audio/mpegurl;audio/x-scpls;audio/x-pn-realaudio;application/ram;application/vnd.ms-wpl;application/smil;audio/x-ms-asx;
 FallbackRdfTypes=nmm:Playlist;nfo:MediaList;
+Graph=tracker:Audio
diff --git a/src/tracker-extract/15-source-code.rule b/src/tracker-extract/15-source-code.rule
index 60cde8bcd..69e3224b6 100644
--- a/src/tracker-extract/15-source-code.rule
+++ b/src/tracker-extract/15-source-code.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-text.so
 
MimeTypes=text/x-csrc;text/x-c++src;text/x-chdr;text/x-vala;text/x-java;application/javascript;application/x-php;text/x-python;application/x-perl;application/x-shellscript;text/x-fortran;text/x-pascal;
 FallbackRdfTypes=nfo:SourceCode;nfo:PlainTextDocument;
+Graph=tracker:Documents
diff --git a/src/tracker-extract/90-gstreamer-audio-generic.rule 
b/src/tracker-extract/90-gstreamer-audio-generic.rule
index 404077d82..fd8bcbe1f 100644
--- a/src/tracker-extract/90-gstreamer-audio-generic.rule
+++ b/src/tracker-extract/90-gstreamer-audio-generic.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-gstreamer.so
 MimeTypes=audio/*;
 FallbackRdfTypes=nfo:Audio;
+Graph=tracker:Audio
diff --git a/src/tracker-extract/90-gstreamer-video-generic.rule 
b/src/tracker-extract/90-gstreamer-video-generic.rule
index 3d9e46217..c40cb8b99 100644
--- a/src/tracker-extract/90-gstreamer-video-generic.rule
+++ b/src/tracker-extract/90-gstreamer-video-generic.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-gstreamer.so
 MimeTypes=video/*;
 FallbackRdfTypes=nmm:Video;
+Graph=tracker:Video
diff --git a/src/tracker-extract/90-libav-audio-generic.rule b/src/tracker-extract/90-libav-audio-generic.rule
index 59e94842c..905f5c700 100644
--- a/src/tracker-extract/90-libav-audio-generic.rule
+++ b/src/tracker-extract/90-libav-audio-generic.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-libav.so
 MimeTypes=audio/*;
 FallbackRdfTypes=nmm:MusicPiece;nfo:Audio;
+Graph=tracker:Audio
diff --git a/src/tracker-extract/90-libav-video-generic.rule b/src/tracker-extract/90-libav-video-generic.rule
index 675540c62..3a2ffa61b 100644
--- a/src/tracker-extract/90-libav-video-generic.rule
+++ b/src/tracker-extract/90-libav-video-generic.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-libav.so
 MimeTypes=video/*;
 FallbackRdfTypes=nmm:Video;
+Graph=tracker:Video
diff --git a/src/tracker-extract/90-text-generic.rule b/src/tracker-extract/90-text-generic.rule
index e2fd5928b..341d4f004 100644
--- a/src/tracker-extract/90-text-generic.rule
+++ b/src/tracker-extract/90-text-generic.rule
@@ -2,3 +2,4 @@
 ModulePath=libextract-text.so
 MimeTypes=text/*
 FallbackRdfTypes=nfo:Document;nfo:PlainTextDocument;
+Graph=tracker:Documents
diff --git a/src/tracker-extract/91-gstreamer-generic-dlna.rule 
b/src/tracker-extract/91-gstreamer-generic-dlna.rule
index b25e84c34..d5bc154a9 100644
--- a/src/tracker-extract/91-gstreamer-generic-dlna.rule
+++ b/src/tracker-extract/91-gstreamer-generic-dlna.rule
@@ -1,4 +1,3 @@
 [ExtractorRule]
 ModulePath=libextract-gstreamer.so
 MimeTypes=dlna/*;
-


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