fts:match only nie:title for videos
Hi,
I have 2 videos files, their informations are:
Querying information for entity: 'Lightyear.2022.IMAX.TRUEFRENCH.HDRip.x264-EXTREME_wWw.Extreme-Down.io.mkv'
'file:///home/krifa/Vid%C3%A9os/Lightyear.2022.IMAX.TRUEFRENCH.HDRip.x264-EXTREME_wWw.Extreme-Down.io.mkv'
Results:
'tracker:extractorHash' = '9cfca1b15159321aec3c7ff69643957cc121638d48669adfd0f86413a3f86c0a'
'nfo:fileLastModified' = '2022-11-24T20:50:38Z'
'nfo:hasHash' = 'urn:bnode:285491'
'nfo:fileName' = 'Lightyear.2022.IMAX.TRUEFRENCH.HDRip.x264-EXTREME_wWw.Extreme-Down.io.mkv'
'nfo:fileSize' = '871231864'
'nfo:belongsToContainer' = 'urn:fileid:/dev/sda2:10223654'
'nfo:fileCreated' = '2022-11-24T20:45:34Z'
'nfo:fileLastAccessed' = '2022-12-03T17:52:53Z'
'nie:isPartOf' = 'urn:fileid:/dev/sda2:10223654'
'nie:created' = '2022-11-24T20:45:34Z'
'nie:interpretedAs' = 'urn:fileid:/dev/sda2:10283759/1'
'nie:dataSource' = 'urn:fileid:/dev/sda2:10223654'
'nie:byteSize' = '871231864'
'nie:url' = 'file:///home/krifa/Vid%C3%A9os/Lightyear.2022.IMAX.TRUEFRENCH.HDRip.x264-EXTREME_wWw.Extreme-Down.io.mkv'
'http://purl.org/dc/elements/1.1/source' = 'urn:fileid:/dev/sda2:10223654'
'http://purl.org/dc/elements/1.1/date' = '2022-11-24T20:50:38Z'
'http://purl.org/dc/elements/1.1/date' = '2022-12-03T17:52:53Z'
'nrl:modified' = '2183'
'rdf:type' = 'http://www.w3.org/2000/01/rdf-schema#Resource'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nie#DataObject'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nfo#FileDataObject'
'nfo:sampleRate' = '48000.0'
'nfo:width' = '720'
'nfo:height' = '408'
'nfo:aspectRatio' = '1.0'
'nfo:duration' = '6304'
'nfo:frameRate' = '23.0'
'nfo:channels' = '2'
'nie:contentCreated' = '2022-08-03T08:39:22Z'
'nie:isStoredAs' = 'file:///home/krifa/Vid%C3%A9os/Lightyear.2022.IMAX.TRUEFRENCH.HDRip.x264-EXTREME_wWw.Extreme-Down.io.mkv'
'nie:mimeType' = 'video/x-matroska'
'nie:informationElementDate' = '2022-08-03T08:39:22Z'
'nie:title' = 'French'
'http://purl.org/dc/elements/1.1/date' = '2022-08-03T08:39:22Z'
'http://purl.org/dc/elements/1.1/title' = 'French'
'nrl:modified' = '2183'
'rdf:type' = 'http://www.w3.org/2000/01/rdf-schema#Resource'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nie#InformationElement'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nfo#Media'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nfo#Visual'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nfo#Audio'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nfo#Video'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nmm#Video'
and for the other one:
Querying information for entity: 'SampleVideo_1280x720_30mb.mp4'
'file:///home/krifa/Vid%C3%A9os/SampleVideo_1280x720_30mb.mp4'
Results:
'tracker:extractorHash' = '9cfca1b15159321aec3c7ff69643957cc121638d48669adfd0f86413a3f86c0a'
'nfo:fileLastModified' = '2022-11-19T01:38:21Z'
'nfo:hasHash' = 'urn:bnode:285370'
'nfo:fileName' = 'SampleVideo_1280x720_30mb.mp4'
'nfo:fileSize' = '31491130'
'nfo:belongsToContainer' = 'urn:fileid:/dev/sda2:10223654'
'nfo:fileCreated' = '2022-11-19T01:38:12Z'
'nfo:fileLastAccessed' = '2022-11-28T21:50:51Z'
'nie:isPartOf' = 'urn:fileid:/dev/sda2:10223654'
'nie:created' = '2022-11-19T01:38:12Z'
'nie:interpretedAs' = 'urn:fileid:/dev/sda2:10283414/1'
'nie:dataSource' = 'urn:fileid:/dev/sda2:10223654'
'nie:byteSize' = '31491130'
'nie:url' = 'file:///home/krifa/Vid%C3%A9os/SampleVideo_1280x720_30mb.mp4'
'http://purl.org/dc/elements/1.1/source' = 'urn:fileid:/dev/sda2:10223654'
'http://purl.org/dc/elements/1.1/date' = '2022-11-19T01:38:21Z'
'http://purl.org/dc/elements/1.1/date' = '2022-11-28T21:50:51Z'
'nrl:modified' = '1963'
'nrl:added' = '2022-11-19T15:25:55Z'
'rdf:type' = 'http://www.w3.org/2000/01/rdf-schema#Resource'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nie#DataObject'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nfo#FileDataObject'
'nfo:sampleRate' = '48000.0'
'nfo:width' = '1280'
'nfo:height' = '720'
'nfo:aspectRatio' = '1.0'
'nfo:duration' = '170'
'nfo:frameRate' = '25.0'
'nfo:channels' = '6'
'nie:contentCreated' = '1970-01-01T00:00:00Z'
'nie:isStoredAs' = 'file:///home/krifa/Vid%C3%A9os/SampleVideo_1280x720_30mb.mp4'
'nie:generator' = 'Lavf53.24.2'
'nie:mimeType' = 'video/mp4'
'nie:informationElementDate' = '1970-01-01T00:00:00Z'
'http://purl.org/dc/elements/1.1/date' = '1970-01-01T00:00:00Z'
'nrl:modified' = '1963'
'rdf:type' = 'http://www.w3.org/2000/01/rdf-schema#Resource'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nie#InformationElement'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nfo#Media'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nfo#Visual'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nfo#Audio'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nfo#Video'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nmm#Video'
Doing this simple query for getting files matching the filename return nothing:
tracker3 sparql --query "SELECT nie:isStoredAs(?urn) nfo:fileName(?urn) nie:title(?urn) { ?urn a nfo:Video . ?urn fts:match 'Light' . }" --dbus-service org.freedesktop.Tracker3.Miner.Files
Results:
None
tracker3 sparql --query "SELECT nie:isStoredAs(?urn) nfo:fileName(?urn) nie:title(?urn) { ?urn a nfo:Video . ?urn fts:match 'Sample' . }" --dbus-service org.freedesktop.Tracker3.Miner.Files
Results:
None
But if the query is part of the nie:title
property we have a results:
tracker3 sparql --query "SELECT nie:isStoredAs(?urn) nfo:fileName(?urn) nie:title(?urn) { ?urn a nfo:Video . ?urn fts:match 'fr' . }" --dbus-service org.freedesktop.Tracker3.Miner.Files
Results:
file:///home/krifa/Vid%C3%A9os/Lightyear.2022.IMAX.TRUEFRENCH.HDRip.x264-EXTREME_wWw.Extreme-Down.io.mkv, (null), French
May I ask if this an expected behavior to match only the nie:title
property ?
EDIT: On ubuntu 22.10, Tracker 3.4.0.
Thanks
Edited by Krifa75