Do Dataview queries replace your MOCs?

it takes some time to generate MOCs manually. I was looking a the Dataview plugin and the first thing that came to my mind was that this plugin could replace the creation of MOCs.

What’s your take on this?

I agree that Dataview would automate creation of MOC, but I guess there’s few things to note.

  1. I believe Obsidian Publish still hasn’t supported 3rd party plugin, so your MOC is not valid for that. Same goes if you publish digital garden using other alternatives.
  2. Some people create MOC with some thoughts, “pruning” it to only show the right and relevant links – I believe this provide a benefit, helping with your thinking and thoughts structuring

Anyway, just for sharing (if anyone find it useful) I do use dataview in similar fashion but for daily notes.

  • Instead of using templater to create links to my daily notes inside my weekly (or monthly) note, I use dataview to aggregate.
  • I find this is more relevant to me as I don’t actually write daily (so if I use templater, there will be links only for some of the days)

image

2 Likes

What queries did you use in your screenshot and how did you get the results to display that way? Nifty!

You can, with some Javascript, Templater, and up-to-date dataviewjs “print” the results of a dataview query out to static Markdown for use with Obsidian Publish: @Lise showed how to for an example table! You would have to delete the table and re-insert the template (“Templater: Insert Template” or something like that, do not have to make a new file) in order to update the “printed” results, but worth experimenting with!

i took Minimal’s card view (css snippet to change table to that look). here’s my query. btw in my monthly view, i pull key highlights from weekly (which i use summary:: {highlights/summary text}

dataview query
TABLE
	dateformat(file.day,"ccc, MMM dd") as Date
FROM
	"journals"
WHERE
	file.day.weekyear = number(split(this.file.name, "W")[1]) AND
	file.day.year = number(split(this.file.name, "W")[0])
SORT
	file.name ASC

thanks for sharing that workaround for static dataview output. surely will be useful for others

1 Like

I treat MOCs (I call them ‘elephant paths’) both as a creative output in itself as well as navigational aid. Creative output in itself as it is an annotated, evolving, and curated overview of material. It links to other notes, but it’s not just a bunch of links, I explain in the MOC why those links are shown together.
Dataview queries are ‘blind’ in the sense they just list a logically selected range of notes. That can be helpful when starting a MOC (what do I have about X?), and some of my MOCs have Dataview queries in them to list new potential material to be adopted in the MOC.

3 Likes

Thanks to all. Based on your input, it seems that dataview is not replacement, but it complimentary to creating MOCs.

I’ve been grappling with a similar issue lately; I’ll share my thinking in case it sparks something in a reader.

I would love to have some kind of automated MOC that found notes that are related to some subject. I tried to use Dataview to find notes on different subjects, but the results were … crude, I guess. They were missing a lot of notes that I would have considered relevant to the subject (but everything they did contain was generally spot-on).

I thought about this, and briefly tried editing the notes that I wanted in that MOC to have the right tag/metadata/whatever. But then I realized that I was essentially building the MOC myself—just in the individual notes instead of the MOC note. After that, I started just adding the notes to the list myself.

Dataview still had a purpose here, though. I wrote that the notes the queries found were almost all relevant (high precision)—they were just missing a lot (low recall). So I kept that query at the top, but modified it to exclude the notes that were linked from the MOC. It’s almost like a list of orphans on the subject—seeing something new in the results prompts me to either add it to my MOC or recategorize/reorganize it.

Not MOC, but Index in some way.

Index records every files related to a subject. I need to gather every files presenting my “contacts”, Dataview does the job and adds a “phone number” to my table for me. It has to be exhaustive.

MOC are maps I do with conscience. I need this process to be deliberate, as I want to give sens to a very closed number of notes. MOC prepares futur articles in some way, futur important worldbuilding parts, futur parts of my novels. I need to annotate and articulate ideas. Dataview can’t do that for me.

Correct me if I am wrong, but I thought Dataview queries do not appear in Graphview, so I use Dataview queries for indexing eg. Daily Notes, Tasks etc and MOCs for knowledge.

As effective as Dataview is, Moc’s, or Structured notes, or whatever you call them, appear in Graphview (@Carriolan ) and display backlinks. What a search query doesn’t.