I further developed the previously written "hashtag link" idea into a 
"metadata link".

It is a good idea to group hashtag links by category so that you don’t have 
to browse a long list of all tags when, for example, you only want to see a 
list of food ingredients. We can solve this with the conventional 
"[[#component: Cheese]]" form, which also solves the notation of metadata 
and field values. By opening the link and viewing its backlinks, you can 
get notes that have the same "property".

Query compared to fields:

   - List of properties
      - Field: [all[tiddlers]fields[]]
      - Metadata link: [all[tiddlers]links[]prefix[#]splitbefore[:]]
   - List of values for the "name" property
      - Field: [all[tiddlers]get[name]]
      - Metadata link: [all[tiddlers]links[]removeprefix[#name:]]
   - List of notes where "name: Core"
      - Field: [all[tiddlers]field:name[Core]]
      - Metadata link: [[#name: Core]backlinks[]]
   
Usage compared to fields:

   - Without writing a filter expression, you can get notes with the same 
   property by viewing only the backlinks
   - Metadata is also part of the text, so there will be no duplication
      - For example, if we label the ingredients in the fields of a recipe 
      so that we can filter them, they should also be included in the text 
      because of the amount required
   - A full text search will also find the values
      - This can be a disadvantage at times, for example if your goal is to 
      store "hidden" data independently of the text
      - If we create a search tab that lists missing tiddlers, we can also 
      search for properties directly
   - We can refer to a specific value
      - For example, in TiddlyWiki we can't reference the "type: 
      application/pdf" field value to get a list of PDF files, but if we use 
the 
      "[[#type: application/pdf]]" link notation, we can link to the specific 
      "field value"
   - Different values for the same category can be specified with different 
   links
      - Multiple values can be specified in a field, but it is not always 
      clear that a field can contain only one value or a title list.
   - Metadata links can only be placed in text notes, we cannot add them to 
   binaries (eg PDF)
   - Text formatting options (such as in all Operator 
   <https://tiddlywiki.com/#all%20Operator> fields) are determined by the 
   text formatting options of the links, as this is actually just a link
   - It only fits to the surrounding text if the link text differs from the 
   target of the link (eg "0.2 kg [[cheese|#ingredient: Cheese]]")
   - They can also be listed at the beginning of a tiddler as a file header
   
Example usage:

Recipe

* 0.2 kg [[cheese|#ingredient: Cheese]]
* 0.5 kg [[ground beef|#ingredient: Beef]]

Be sure to use [[olive oil|#ingredient: Olive oil]]!

Music

[[# category: Music]]

* [[#author: Audeka]]
* [[#author: Rawtekk]]
* [[#album: Here's to them]]

... YouTube embed video ...

I created a ViewTemplate where we can view and filter the properties in a 
table, just click on the links to search for more similar notes or open a 
tiddler in edit mode to view the original content: 
https://bimlas.gitlab.io/demo/tw5/property-comparison.html

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a913a996-195b-41a3-8cba-772c0cb3a85en%40googlegroups.com.

Reply via email to