parent
4905197d23
commit
2b92fb47a9
@ -1,38 +1,87 @@ |
|||||||
import { ContextDefinition } from "jsonld"; |
import { LdoJsonldContext } from "@ldo/ldo"; |
||||||
|
|
||||||
/** |
/** |
||||||
* ============================================================================= |
* ============================================================================= |
||||||
* solidContext: JSONLD Context for solid |
* solidContext: JSONLD Context for solid |
||||||
* ============================================================================= |
* ============================================================================= |
||||||
*/ |
*/ |
||||||
export const solidContext: ContextDefinition = { |
export const solidContext: LdoJsonldContext = { |
||||||
type: { |
Container: { |
||||||
"@id": "@type", |
"@id": "http://www.w3.org/ns/ldp#Container", |
||||||
"@container": "@set", |
"@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", |
||||||
|
}, |
||||||
|
}, |
||||||
}, |
}, |
||||||
Container: "http://www.w3.org/ns/ldp#Container", |
Resource: { |
||||||
Resource: "http://www.w3.org/ns/ldp#Resource", |
"@id": "http://www.w3.org/ns/ldp#Resource", |
||||||
modified: { |
"@context": { |
||||||
"@id": "http://purl.org/dc/terms/modified", |
type: { |
||||||
"@type": "http://www.w3.org/2001/XMLSchema#string", |
"@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", |
||||||
|
}, |
||||||
|
}, |
||||||
}, |
}, |
||||||
contains: { |
Resource2: { |
||||||
"@id": "http://www.w3.org/ns/ldp#contains", |
"@id": "http://www.w3.org/ns/iana/media-types/text/turtle#Resource", |
||||||
"@type": "@id", |
"@context": { |
||||||
"@container": "@set", |
type: { |
||||||
}, |
"@id": "@type", |
||||||
Resource2: "http://www.w3.org/ns/iana/media-types/text/turtle#Resource", |
"@isCollection": true, |
||||||
mtime: { |
}, |
||||||
"@id": "http://www.w3.org/ns/posix/stat#mtime", |
modified: { |
||||||
"@type": "http://www.w3.org/2001/XMLSchema#decimal", |
"@id": "http://purl.org/dc/terms/modified", |
||||||
}, |
"@type": "http://www.w3.org/2001/XMLSchema#string", |
||||||
size: { |
}, |
||||||
"@id": "http://www.w3.org/ns/posix/stat#size", |
mtime: { |
||||||
"@type": "http://www.w3.org/2001/XMLSchema#integer", |
"@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: { |
storage: { |
||||||
"@id": "http://www.w3.org/ns/pim/space#storage", |
"@id": "http://www.w3.org/ns/pim/space#storage", |
||||||
"@type": "@id", |
"@type": "@id", |
||||||
"@container": "@set", |
"@isCollection": true, |
||||||
}, |
}, |
||||||
}; |
}; |
||||||
|
Loading…
Reference in new issue