Content-type: text/html Downes.ca ~ Stephen's Web ~ JSON Graph Format (JGF)

Stephen Downes

Knowledge, Learning, Community

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: 4 Total: 100 [Direct link] [Share]


Stephen Downes Stephen Downes, Casselman, Canada
stephen@downes.ca

Copyright 2024
Last Updated: Nov 21, 2024 2:14 p.m.

Canadian Flag Creative Commons License.

Force:yes