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.
38 lines
1.1 KiB
38 lines
1.1 KiB
import { ContextDefinition } from "jsonld";
|
|
|
|
/**
|
|
* =============================================================================
|
|
* solidContext: JSONLD Context for solid
|
|
* =============================================================================
|
|
*/
|
|
export const solidContext: ContextDefinition = {
|
|
type: {
|
|
"@id": "@type",
|
|
"@container": "@set",
|
|
},
|
|
Container: "http://www.w3.org/ns/ldp#Container",
|
|
Resource: "http://www.w3.org/ns/ldp#Resource",
|
|
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",
|
|
"@container": "@set",
|
|
},
|
|
Resource2: "http://www.w3.org/ns/iana/media-types/text/turtle#Resource",
|
|
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",
|
|
},
|
|
storage: {
|
|
"@id": "http://www.w3.org/ns/pim/space#storage",
|
|
"@type": "@id",
|
|
"@container": "@set",
|
|
},
|
|
};
|
|
|