mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
36 lines
664 B
TypeScript
36 lines
664 B
TypeScript
/**
|
|
* Contains metadata relevant to a representation.
|
|
*/
|
|
import { Quad } from 'rdf-js';
|
|
|
|
export interface RepresentationMetadata {
|
|
/**
|
|
* All metadata triples of the resource.
|
|
*/
|
|
raw: Quad[];
|
|
/**
|
|
* The 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;
|
|
}
|