Files
CommunitySolidServer/lib/ldp/http/RepresentationMetadata.ts
2020-05-19 12:22:25 +02:00

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;
}