mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Apply naming-convention rules
This commit is contained in:
@@ -13,13 +13,13 @@ import { pipeStreamsAndErrors } from './Util';
|
||||
export class MetadataController {
|
||||
/**
|
||||
* Helper function to generate quads for a Container or Resource.
|
||||
* @param URI - The URI for which the quads should be generated.
|
||||
* @param uri - The URI for which the quads should be generated.
|
||||
* @param stats - The Stats of the subject.
|
||||
*
|
||||
* @returns The generated quads.
|
||||
*/
|
||||
public generateResourceQuads(URI: string, stats: Stats): Quad[] {
|
||||
const metadata = new RepresentationMetadata(URI);
|
||||
public generateResourceQuads(uri: string, stats: Stats): Quad[] {
|
||||
const metadata = new RepresentationMetadata(uri);
|
||||
if (stats.isDirectory()) {
|
||||
metadata.add(RDF.type, getNamedNode(LDP.Container));
|
||||
metadata.add(RDF.type, getNamedNode(LDP.BasicContainer));
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
const createSuffixFn = (prefix: string): ((suf: string) => string) => (suffix: string): string => `${prefix}${suffix}`;
|
||||
|
||||
const ACL_PREFIX = createSuffixFn('http://www.w3.org/ns/auth/acl#');
|
||||
|
||||
Reference in New Issue
Block a user