|
|
|
@ -1,17 +1,18 @@ |
|
|
|
|
import { ContextDefinition } from "jsonld"; |
|
|
|
|
import { LdoJsonldContext } from "@ldo/ldo"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* ============================================================================= |
|
|
|
|
* solidContext: JSONLD Context for solid |
|
|
|
|
* ============================================================================= |
|
|
|
|
*/ |
|
|
|
|
export const solidContext: ContextDefinition = { |
|
|
|
|
export const solidContext: LdoJsonldContext = { |
|
|
|
|
Container: { |
|
|
|
|
"@id": "http://www.w3.org/ns/ldp#Container", |
|
|
|
|
"@context": { |
|
|
|
|
type: { |
|
|
|
|
"@id": "@type", |
|
|
|
|
"@container": "@set", |
|
|
|
|
"@isCollection": true, |
|
|
|
|
}, |
|
|
|
|
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", |
|
|
|
@ -19,9 +20,8 @@ export const solidContext: ContextDefinition = { |
|
|
|
|
contains: { |
|
|
|
|
"@id": "http://www.w3.org/ns/ldp#contains", |
|
|
|
|
"@type": "@id", |
|
|
|
|
"@container": "@set", |
|
|
|
|
"@isCollection": true, |
|
|
|
|
}, |
|
|
|
|
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", |
|
|
|
@ -30,9 +30,58 @@ export const solidContext: ContextDefinition = { |
|
|
|
|
"@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", |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Resource2: { |
|
|
|
|
"@id": "http://www.w3.org/ns/iana/media-types/text/turtle#Resource", |
|
|
|
|
"@context": { |
|
|
|
|
type: { |
|
|
|
|
"@id": "@type", |
|
|
|
|
"@isCollection": true, |
|
|
|
|
}, |
|
|
|
|
modified: { |
|
|
|
|
"@id": "http://purl.org/dc/terms/modified", |
|
|
|
|
"@type": "http://www.w3.org/2001/XMLSchema#string", |
|
|
|
|
}, |
|
|
|
|
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", |
|
|
|
|
"@isCollection": true, |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|