mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
38 lines
1.6 KiB
JSON
38 lines
1.6 KiB
JSON
{
|
|
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^4.0.0/components/context.jsonld",
|
|
"comment": "DataAccessor configuration using a QuotaStrategy to enforce quota on the server.",
|
|
"@graph": [
|
|
{
|
|
"comment": "DataAccessor that writes data to the disk with atomicity in mind",
|
|
"@id": "urn:solid-server:default:AtomicFileDataAccessor",
|
|
"@type": "AtomicFileDataAccessor",
|
|
"resourceMapper": { "@id": "urn:solid-server:default:FileIdentifierMapper" },
|
|
"rootFilePath": { "@id": "urn:solid-server:default:variable:rootFilePath" },
|
|
"tempFilePath": "/.internal/tempFiles/"
|
|
},
|
|
|
|
{
|
|
"comment": "Calculates the space already taken up by a resource",
|
|
"@id": "urn:solid-server:default:SizeReporter",
|
|
"@type": "FileSizeReporter",
|
|
"fileIdentifierMapper": { "@id": "urn:solid-server:default:FileIdentifierMapper" },
|
|
"rootFilePath": { "@id": "urn:solid-server:default:variable:rootFilePath" }
|
|
},
|
|
|
|
{
|
|
"comment": "Validates the data being written to the server",
|
|
"@id": "urn:solid-server:default:QuotaValidator",
|
|
"@type": "QuotaValidator",
|
|
"strategy": { "@id": "urn:solid-server:default:QuotaStrategy" }
|
|
},
|
|
|
|
{
|
|
"comment": "Simple wrapper for another DataAccessor but adds validation",
|
|
"@id": "urn:solid-server:default:FileDataAccessor",
|
|
"@type": "ValidatingDataAccessor",
|
|
"accessor": { "@id": "urn:solid-server:default:AtomicFileDataAccessor" },
|
|
"validator": { "@id": "urn:solid-server:default:QuotaValidator" }
|
|
}
|
|
]
|
|
}
|