mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00

This also uses the new `import type` syntax for importing rdf-js types, as it is required for making this new linter rule pass. Closes #132
48 lines
975 B
TypeScript
48 lines
975 B
TypeScript
/**
|
|
* Contains metadata relevant to a representation.
|
|
*/
|
|
import type { Quad } from 'rdf-js';
|
|
|
|
/**
|
|
* Metadata corresponding to a {@link Representation}.
|
|
*/
|
|
export interface RepresentationMetadata {
|
|
/**
|
|
* All metadata triples of the resource.
|
|
*/
|
|
raw: Quad[];
|
|
/**
|
|
* Optional metadata profiles.
|
|
*/
|
|
profiles?: string[];
|
|
/**
|
|
* Optional size of the representation.
|
|
*/
|
|
byteSize?: number;
|
|
/**
|
|
* Optional content type of the representation.
|
|
*/
|
|
contentType?: string;
|
|
/**
|
|
* Optional encoding of the representation.
|
|
*/
|
|
encoding?: string;
|
|
/**
|
|
* Optional language of the representation.
|
|
*/
|
|
language?: string;
|
|
/**
|
|
* Optional timestamp of the representation.
|
|
*/
|
|
dateTime?: Date;
|
|
/**
|
|
* Optional link relationships of the representation.
|
|
*/
|
|
linkRel?: { [id: string]: Set<string> };
|
|
/**
|
|
* Optional slug of the representation.
|
|
* Used to suggest the URI for the resource created.
|
|
*/
|
|
slug?: string;
|
|
}
|