I’m at the very beginning of considering ways to add some sort of “What’s nearby?” feature for my content Tiddlers, and I have several questions.
-
I’m wondering if there is useful prior art to look at. Are there ready-made tools for this?
-
I haven’t figured out the presentation, but to do anything worthwhile, I need to be able to collect the data first. These are the factors I’m thinking about, from strongest connection to weakest, for non-system, non-shadow Tiddlers,
A
andB
:-
A
transcludesB
/B
transcludesA
-
A
is taggedB
/B
is taggedA
-
A
andB
both transcludeC
, for someC
/ bothA
andB
are transcluded by someC
-
A
links toB
/B
links toA
-
A
andB
are both taggedC
, for someC
/ someC
is tagged bothA
andB
-
A
has a field with the valueB
/B
has a field with the valueA
-
A
has a list field which includes the valueB
/B
has a list field that includes the valueA
.
Am I missing important other connections? Would you argue for a different ordering of them?
-
-
I’m sure I can create a reasonable model from these, then run something like Dijkstra’s algorithm to find the closest tiddlers to my current one. I imagine this would have to be a JavaScript macro, since I can’t imagine coding the closest neighbor algorithm in native wiki tools. I don’t know how to do that yet, but think I can figure that out, and I imagine the APIs available will trivially give me access to all but #1 and #3. Are those also easily available?
Are there other suggestions for how I might go about any of this?