stuff like JSON or XML doesn't even handle acyclic graphs well

it doesn't handle the case where the same sub object is referenced in more than one location

JSON and XML only handle strictly hierarchical data structures

@LunaDragofelis XML allows for references, we're pretty sure, so that can be used to make graphs in a relatively semantic way.

@Lady @LunaDragofelis Oh, actually that's way nicer than we remember. Though, we suspect it would be a task to write a correct parser for it.

@violet @LunaDragofelis nah, turtle is not that hard, especially compared to like JSON-LD or other solutions

but if ease of parsing is your concern, just serialize your graph as a flat list of triples (N-Triples) and leave it as that

Follow

@violet @LunaDragofelis practically speaking, building a (directed) graph just boils down to consuming a list of triples so the fastest and easiest syntax is to just use that as your serialization form

which is actually not that difficult to express in any language; the hard part is making it readable for humans

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.