What I’m trying to do
Obsidian newbie here… pardon me if this is something I should have been able to readily find on my own, but I am wondering if there is a way to classify or tag links - similarly to how one can classify or tag notes (using metadata or tags). The purpose would be to be able to specify characteristics of the destination note in relation to the current note in order to know in advance what type of material will be found at the far end of the link, (and potentially to take programmatic action based on these ‘linktags’).
For a simple example, let’s say I want to know in advance what language the destination note is written in. It would be convenient to tag a link as ‘es’, ‘fr’, ‘de’, etc, or perhaps as both ‘es’, and ‘de’ if, say, the destination topic was perhaps a Spanish/German dictionary. Such attributes could then be used to aggregate like materials together - imagine for example a dataview that selected notes on a topic, only if those notes also linked to French language resources.
For a more detailed example, let’s say I am building a noteset regarding contentious topics of argument… I may want to be able to tag links in a note on the topic with attributes such as:
linktag destination (the links goes to a topic which…)
definition (provides a definition of the topic of this note)
detail (provides additional detail on the topic of this note)
example (provides an example of the topic (an ‘is-a’ relationship)
related (is closely related to the current topic (an ‘is-like’ relationship)
evidence_pro (contains evidence supporting the veracity of the current note)
evidence_con (contains adversarial evidence undercutting the veracity of the current note)
argument_pro (contains a logical argument supporting the veracity of the current note)
argument_con (contains a logical argument undercutting the veracity of the current note)
opinion_pro (contains an opinion in favor of topic of the current note)
opinion_con (contains an opinion against the topic of the current note)
primary_src (contains first-hand evidence)
secondary_src (contains second-hand, hearsay, evidence)
then it would be possible, for example, to aggregate all links containing examples, or only those containing opinions from primary sources.
Things I have tried
It seems to me that there would be many, many uses for this ability, but I have not yet discovered how to accomplish this, short of only allowing a single outlink from a note and then specifiying the ‘linktag’ in the source note’s metadata - which is a quite wretched solution - I believe a layer of indirection is called for.
To be clear, a metadata element in the destination note, is useless for this purpose, as I am not primarily seeking to define an attribute of that target note, but rather an attribute about the nature of the relationship between the source note and it’s linked target.
Thoughts? Pointers?
Thank you.