Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Puck Meerburg 4383d9fd49 Use proper namespace for mapping language strings to RDF 3 mēnešus atpakaļ
schema Rewrite first part of the EntityStore into using proper async 6 mēnešus atpakaļ
src Use proper namespace for mapping language strings to RDF 3 mēnešus atpakaļ
.gitignore Initial commit of the Cellar 11 mēnešus atpakaļ
Cargo.toml temporarily pin revision 4 mēnešus atpakaļ
README.md Initial commit of the Cellar 11 mēnešus atpakaļ

README.md

Kroeg Cellar

(I’d have called this kroeg-kelder but that’d probably go too far)

Simple JSON-LD storage mechanism, storing everything in a database of RDF quads.

Usage

This code is made mostly to work inside of Kroeg, but the external API is documented with rustdoc, which isn’t publicly generated yet. Clone therepo then run cargo doc to do it yourself.

Design

The database currently stores its data in two tables:

Attribute

This table maps an ID number to a URL, allowing for e.g. quick lookups and even quicker renaming of objects (just change its value in this table, and everything automatically updates!)

Quad

This table is slightly complicated, as it has to support everything that RDF can:

  • id: unique ID for the quad.
  • quad_id, subject_id, predicate_id: These point into the Attribute table, fort the corresponding RDF quad attributes.

  • attribute_id: used if object points to another ID.

  • object, type_id, language: The value, and type or language of the quad. The code only supports language or type_id being set, both of them being set is unsupported.