|Puck Meerburg 4383d9fd49 Use proper namespace for mapping language strings to RDF||3 maanden geleden|
|schema||6 maanden geleden|
|src||3 maanden geleden|
|.gitignore||11 maanden geleden|
|Cargo.toml||4 maanden geleden|
|README.md||11 maanden geleden|
(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.
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
cargo doc to do it yourself.
The database currently stores its data in two tables:
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!)
This table is slightly complicated, as it has to support everything that RDF can:
id: unique ID for the quad.
predicate_id: These point into the
table, fort the corresponding RDF quad attributes.
attribute_id: used if object points to another ID.
language: The value, and type or language of the quad.
The code only supports
type_id being set, both of them being
set is unsupported.