JSON Graph Format (JGF)
JGF,
Jun 02, 2021
Yesterday I considered the question of how to represent a graph in Javascript Object Notation (JSON). I want to use a graph to represent a course network, which would in turn be used to help someone enroll in the course. There isn't any single authoritative way to do this (though there's a specification on GitHub) but I did find this resource that offers a number of approaches (click on 'expand source' to see the actual JSON code). I also found another site offering similar approaches. There's also the approach using JSON Linked Data (JSON-LD). It's JSON that includes a @context element (for example, the context for person) that points to a data type definition and @id element that creates a canonical id; links to other elements are then embedded in the data using their canonical ID. I've gone ahead with a sort of abbreviated JGF using content-addressing IDs (CID) (see IPFS).
Today: 1 Total: 30 [Share]
] [