Skip to content

RDF to IPFS

Author: Michael Vorburger.ch
Status: Idea

Abstract

We outline and demonstrate how RDF graphs can be store on IPFS with IPLD.

Description

RDF graphs are DAGs where IRIs identify both nodes and edges.

We propose to consider RDF as a set of Things (triple statements with the same Subject).

Canonicalizing each Thing allows us to create a store them, and use their ipfs:$CID URL as an alternative IRI, stored in the RDF store with the original Thing.

When storing another Thing, we replace the typically http: IRI in its links with such ipfs:$CID.

There may be a “chicken and egg” problem is you cannot “create a linear sequence” of Things hm…

The serialization format (JSON, CBOR, TTL as Text) does not matter much at least initially - it’s the Links that are interesting.

Implementations

Enola.dev may further explore this idea, depending on our availability.

This Spec would get updated with additional details as we learn more about the feasibility of doing this.

Please reach out if this idea interests you.

References