Skip to content

Commit

Permalink
update README.md and CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
haoliangyu committed Dec 8, 2017
1 parent fbf3351 commit a0a9df9
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Change Log

## 0.1.0 (2017-12-08)
* Initial publication
55 changes: 54 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,55 @@
# w3c-dcat
A utility library to create and convert W3C DCAT in JSON

[![Build Status](https://travis-ci.org/haoliangyu/w3c-dcat.svg?branch=master)](https://travis-ci.org/haoliangyu/w3c-dcat)

A utility library to create and convert [W3C DCAT](https://www.w3.org/TR/vocab-dcat/) in JSON.

Primarily developed for [SingularData.net](https://github.com/SingularData/SingularData.net)

## Installation

``` bash
npm install w3c-dcat
```

## Use

Support DCAT spec:
* [Dataset](https://www.w3.org/TR/vocab-dcat/#class-dataset)

``` javascript
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(values);

// extend the dataset metadata with an key-value object
datasetA.set(values);

// get a value-only copy of the dataset metadata
console.log(datasetB.get())

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

```

[TypeScript](https://www.typescriptlang.org/) is natively supported. For more examples, please see [tests](https://github.com/haoliangyu/w3c-dcat/blob/master/test/index.test.ts) and [documentation](https://haoliangyu.github.io/w3c-dcat/).

### Supported Vendor

`w3c-dcat` is able to convert dataset metadata from the following open data vendors:
* [ArcGIS](https://hub.arcgis.com/pages/open-data) (v2 API)
* [CKAN](https://ckan.org/) (v3 API)
* [DKAN](https://getdkan.org/)
* [GeoNode](http://geonode.org/)
* [Junar](http://www.junar.com/index9ed2.html?lang=en) (v2 API)
* [OpenDataSoft](https://www.opendatasoft.com/) (v2 API)
* [Socrata](https://socrata.com/solutions/open-data-citizen-engagement/) (v1 API)

## License

MIT
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"description": "A utility library to create and convert W3C DCAT in JSON",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"test": "mocha test/**/*.test.ts --require ts-node/register",
"doc": "typedoc --theme minimal --name 'w3c-dcat' --out docs --readme README.md --includeDeclarations --excludeExternals src",
Expand Down

0 comments on commit a0a9df9

Please sign in to comment.