Options
All
  • Public
  • Public/Protected
  • All
Menu

w3c-dcat

Build Status

A utility library to create and convert W3C DCAT in JSON.

Primarily developed for SingularData.net

Installation

npm install w3c-dcat

Use

Support DCAT spec:

import { Dataset } from 'w3c-dcat';

// create a new dataset class
const datasetA = new Dataset();

// create a new dataset with predefined value
const datasetB = new Dataset({ title: 'New Dataset' });

// extend the dataset metadata with an key-value object
datasetA.set({ title: 'New Name' });

// get property value
console.log(datasetA.title);

// get a JSON copy of the dataset metadata
console.log(datasetB.toJSON())

// get a DCAT datset class from other open data vendor's dataset metadata
const datasetC = Dataset.from('ArcGIS', metadata)

TypeScript is natively supported. For more examples, please see tests and documentation.

Supported Vendor

w3c-dcat is able to convert dataset metadata from the following open data vendors:

License

MIT

Index

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc