diff options
author | Sam Thursfield <sam@afuera.me.uk> | 2020-08-29 15:58:58 +0200 |
---|---|---|
committer | Sam Thursfield <sam@afuera.me.uk> | 2020-09-02 18:50:17 +0200 |
commit | 29105fc9f6abf2eca6f986104763d21b9f22f0fb (patch) | |
tree | 856e7828b9d5dee63b668f6e789167a11aab48c2 /data | |
parent | f9c79fce6d90e7e5842f2c56a1ec98a151126874 (diff) | |
download | nautilus-29105fc9f6abf2eca6f986104763d21b9f22f0fb.tar.gz |
tag-manager: Track files rather than contents
Nautilus is a file manager, so we should star files.
Previously we starred the content resources extracted by Tracker Miner
FS, instead. This had the advantage that the stars would follow file
renames. It had the downside of being more complex and limited in
which files can be starred. In Tracker 2.x, the feature only worked
in folders indexed by Tracker Miner FS. With Tracker 3.x, it was
additionally limited to files where Tracker had extracted metadata
-- mainly just documents and media files.
This commit takes the simpler approach of storing the star against
the file URL. All files can now be starred, and stars will no longer
persist when a file is moved or renamed.
Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/160
Diffstat (limited to 'data')
-rw-r--r-- | data/ontology/nautilus.ontology | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/data/ontology/nautilus.ontology b/data/ontology/nautilus.ontology index ed56df447..a3706bc27 100644 --- a/data/ontology/nautilus.ontology +++ b/data/ontology/nautilus.ontology @@ -8,12 +8,13 @@ nautilus: a nrl:Namespace, nrl:Ontology ; nrl:prefix "nautilus" ; nrl:lastModified "2020-05-01T10:00:00Z" . -nautilus:FileReference a rdfs:Class ; - rdfs:comment "A unique ID for a file, corresponding with the nie:InformationElement created by tracker-miner-fs. We use a unique ID rather than the file URL so the star will follow renames." ; - rdfs:subClassOf rdfs:Resource . +nautilus:File a rdfs:Class ; + rdfs:comment "Represents a file on disk by its URL. Equivalent to http://tracker.api.gnome.org/ontology/v3/nfo#FileDataObject" ; + rdfs:subClassOf rdfs:Resource ; + nrl:notify true . nautilus:starred a rdf:Property ; - rdfs:comment "Marks resources that are starred in Nautilus." ; - rdfs:domain nautilus:FileReference ; + rdfs:comment "Marks files that are starred in Nautilus." ; + rdfs:domain nautilus:File ; rdfs:range xsd:boolean ; nrl:maxCardinality 1 . |