UNPKG

rechtspraak-nl

Version:

Utility functions for consuming Rechtspraak.nl open data for Dutch court judgments and generating well-formed linked data

73 lines (72 loc) 2.44 kB
import { Label } from "./fields/label"; import { StandardResourceObject } from "./fields/standard-resource-object"; import { Reference } from "./fields/reference"; import { Temporal } from "./fields/temporal"; import { Publisher } from "./fields/publisher"; import { Spatial } from "./fields/spatial"; import { Subject } from "./fields/subject"; import { Relation } from "./fields/relation"; import { HasVersion } from "./fields/hasVersion"; import { RsDocumentType } from "./fields/type"; import { Procedure } from "./fields/procedure"; import { CoverageType } from "./fields/coverage"; export declare type UriWithProtocol = string; export declare function isUriWithProtocol(s: string): s is UriWithProtocol; export declare type Date = string; export declare type Year = string; export declare type DateTime = string; export declare function isDate(s: string): s is Date; export declare function isDateTime(s: string): s is DateTime; export declare function isYear(s: string): s is DateTime; export interface HasPart { "@type": string; "@id": string; "schema:name"?: string; "schema:alternateName"?: string; "schema:position"?: string; "schema:url": string; "schema:hasPart"?: HasPart[]; } export interface Creator extends StandardResourceObject { "scheme": string; } export interface Abstract { "abstractXml": string; "@value": string; } export interface RechtspraakMetadata { "@context": any; "@type": string; "_id": string; "issued": Date; "htmlIssued"?: Date; "date": Date; "owl:sameAs": UriWithProtocol; "abstract": Abstract; "accessRights": string; "metadataModified": string; "contentModified"?: string; "publisher": Publisher[]; "language": string; "replaces"?: UriWithProtocol[]; "relation"?: Relation[]; "creator": Creator; "procedure"?: Procedure[]; "isReplacedBy"?: UriWithProtocol[]; "references"?: Reference[]; "subject": Subject[]; "temporal"?: Temporal; "zaaknummer"?: string[]; "type": RsDocumentType; "coverage": CoverageType; "hasVersion"?: HasVersion[]; "corpus": string; "couchDbUpdated": string; "source": UriWithProtocol; "about": UriWithProtocol; "page": UriWithProtocol; "title": Label; "spatial"?: Spatial; "textContent"?: string; "schema:hasPart"?: HasPart[]; }