Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.85 KB

converters.md

File metadata and controls

53 lines (34 loc) · 1.85 KB

Converters

IcsToJsonConverter

type: IcsToJsonConverter

Converts an ics file to json file, only the following fields are kept:

interface Event {
  summary: string;
  start: Date;
  end: Date;
  description?: string;
  url?: string;
  location?: string;
}

JsonToIcsConverter

type: JsonToIcsConverter

Convert a json file to an ics file with events of the same format as IcsToJsonConverter.

JsonToRdfConverter

type: JsonToRdfConverter

Code for this convertor is hosted here.

RdfRepresentationConverter

type: ChainedConverter

RepresentationConverter

type: WaterfallHandler

Converts data to a representation of the requested output. (More information about representations: page 3)

The following converters are tried (in order) to match the requested output:

  1. IndexConverter (See CSS)
  2. IfNeededConverter (See CSS)
  3. ContentTypeReplacer (See CSS)
  4. JsonToRdfConverter
  5. IcsToJsonConverter
  6. RdfRepresentationConverter

This converter follows the waterfall principle, i.e. if the Indexconverter can convert to a given output type, the converter will stop and those underneath won't be tried.