Skip to content

tracker-miner-fs: Use tracker:IndexedFolder for index roots

Carlos Garnacho requested to merge wip/carlosg/indexed-folder-ontology into master

Replace the usage of tracker:Volume with tracker:IndexedFolder for all index roots. We no longer use a single datasource for all indexed folders, nfo:FileDataObjects will instead all reference their respective tracker:IndexedFolder as the nie:dataSource.

This makes it cheaper to access all files in an indexed folder (as long as there is access to the tracker:FileSystem graph), e.g.:

SELECT ?u {
  ?u nie:dataSource ?s .
  <file:///home/carlos/Music> nie:interpretedAs/nie:rootElementOf ?s
}

As opposed to substring matching.

As a consequence, the handling of data relative to removable mounts is now done together with the rest of mount folder data. We now only update tracker:available and tracker:unmountDate on mounts being added/removed.

NB: Depends on tracker!265 (merged)

Edited by Carlos Garnacho

Merge request reports