mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
40 lines
1.6 KiB
JSON
40 lines
1.6 KiB
JSON
{
|
|
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^0.0.0/components/context.jsonld",
|
|
"import": [
|
|
"files-scs:config/util/representation-conversion/converters/content-type-replacer.json",
|
|
"files-scs:config/util/representation-conversion/converters/quad-to-rdf.json",
|
|
"files-scs:config/util/representation-conversion/converters/rdf-to-quad.json"
|
|
],
|
|
"@graph": [
|
|
{
|
|
"comment": "Handles data conversion when required.",
|
|
"@id": "urn:solid-server:default:RepresentationConverter",
|
|
"@type": "WaterfallHandler",
|
|
"handlers": [
|
|
{ "@id": "urn:solid-server:default:IndexConverter" },
|
|
{
|
|
"@type": "IfNeededConverter",
|
|
"comment": "Only continue converting if the requester cannot accept the available content type"
|
|
},
|
|
{ "@id": "urn:solid-server:default:ContentTypeReplacer" },
|
|
{
|
|
"comment": "Automatically finds a path through a set of converters from one type to another.",
|
|
"@id": "urn:solid-server:default:ChainedConverter",
|
|
"@type": "ChainedConverter",
|
|
"converters": [
|
|
{ "@id": "urn:solid-server:default:RdfToQuadConverter" },
|
|
{ "@id": "urn:solid-server:default:QuadToRdfConverter" },
|
|
{ "@type": "ErrorToQuadConverter" },
|
|
{
|
|
"@type": "ErrorToTemplateConverter",
|
|
"engine": { "@type": "HandlebarsTemplateEngine" },
|
|
"templatePath": "$PACKAGE_ROOT/templates/error/error.hbs",
|
|
"contentType": "text/html"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|