Rust implementation of NextGraph, a Decentralized and local-first web 3.0 ecosystem
https://nextgraph.org
byzantine-fault-tolerancecrdtsdappsdecentralizede2eeeventual-consistencyjson-ldlocal-firstmarkdownocapoffline-firstp2pp2p-networkprivacy-protectionrdfrich-text-editorself-hostedsemantic-websparqlweb3collaboration
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.3 KiB
82 lines
2.3 KiB
import { LdoJsonldContext } from "@ldo/ldo";
|
|
|
|
/**
|
|
* =============================================================================
|
|
* containerContext: JSONLD Context for container
|
|
* =============================================================================
|
|
*/
|
|
export const containerContext: LdoJsonldContext = {
|
|
type: {
|
|
"@id": "@type",
|
|
"@isCollection": true,
|
|
},
|
|
Container: {
|
|
"@id": "http://www.w3.org/ns/ldp#Container",
|
|
"@context": {
|
|
type: {
|
|
"@id": "@type",
|
|
"@isCollection": true,
|
|
},
|
|
modified: {
|
|
"@id": "http://purl.org/dc/terms/modified",
|
|
"@type": "http://www.w3.org/2001/XMLSchema#string",
|
|
},
|
|
contains: {
|
|
"@id": "http://www.w3.org/ns/ldp#contains",
|
|
"@type": "@id",
|
|
"@isCollection": true,
|
|
},
|
|
mtime: {
|
|
"@id": "http://www.w3.org/ns/posix/stat#mtime",
|
|
"@type": "http://www.w3.org/2001/XMLSchema#decimal",
|
|
},
|
|
size: {
|
|
"@id": "http://www.w3.org/ns/posix/stat#size",
|
|
"@type": "http://www.w3.org/2001/XMLSchema#integer",
|
|
},
|
|
},
|
|
},
|
|
Resource: {
|
|
"@id": "http://www.w3.org/ns/ldp#Resource",
|
|
"@context": {
|
|
type: {
|
|
"@id": "@type",
|
|
"@isCollection": true,
|
|
},
|
|
modified: {
|
|
"@id": "http://purl.org/dc/terms/modified",
|
|
"@type": "http://www.w3.org/2001/XMLSchema#string",
|
|
},
|
|
contains: {
|
|
"@id": "http://www.w3.org/ns/ldp#contains",
|
|
"@type": "@id",
|
|
"@isCollection": true,
|
|
},
|
|
mtime: {
|
|
"@id": "http://www.w3.org/ns/posix/stat#mtime",
|
|
"@type": "http://www.w3.org/2001/XMLSchema#decimal",
|
|
},
|
|
size: {
|
|
"@id": "http://www.w3.org/ns/posix/stat#size",
|
|
"@type": "http://www.w3.org/2001/XMLSchema#integer",
|
|
},
|
|
},
|
|
},
|
|
modified: {
|
|
"@id": "http://purl.org/dc/terms/modified",
|
|
"@type": "http://www.w3.org/2001/XMLSchema#string",
|
|
},
|
|
contains: {
|
|
"@id": "http://www.w3.org/ns/ldp#contains",
|
|
"@type": "@id",
|
|
"@isCollection": true,
|
|
},
|
|
mtime: {
|
|
"@id": "http://www.w3.org/ns/posix/stat#mtime",
|
|
"@type": "http://www.w3.org/2001/XMLSchema#decimal",
|
|
},
|
|
size: {
|
|
"@id": "http://www.w3.org/ns/posix/stat#size",
|
|
"@type": "http://www.w3.org/2001/XMLSchema#integer",
|
|
},
|
|
};
|
|
|