<commit_before>dcat
====

Archive and make discoverable data and links with
[schema.org](http://schema.org) metadata.

[![NPM](https://nodei.co/npm/dcat.png)](https://nodei.co/npm/dcat/)

Usage (CLI)
===========

## tl;dr

    dcat --help


## Registering an User (```adduser```)

Run

    dcat adduser

and follow the prompting wizard.

## Publishing (```publish```)

### Simple document

```dcat``` allows the publication of [JSON-LD](http://www.w3.org/TR/json-ld)
documents using [dcat.io](https://dcat.io) context. This context
extends [schema.org](http://schema.org) with terms relevant to do I/O
and preserve data integrity (like ```filePath``` and ```Checksum```).

At the minimum, a document has to contain

- a context (```@context```) set to https://dcat.io,
- an id (```@id```) to uniquely identify things published on
  dcat.io with URLs. All relative URLs will be resolved with a base
  (defined in the [context](https://dcat.io) (```@base```)) of
  ```https://dcat.io```

e.g.

    {
      "@context": "https://dcat.io",
      "@id": "mydoc"
    }

To publish this document (```mydoc```), create a file named ```JSONLD``` and in the directory containing ```JSONLD``` run:

    dcat publish

After publication the document will be available at ```https://dcat.io/mydoc```.

Documents can contain any properties from
[schema.org](http://schema.org) or from any other ontologies as long
as the associated ```@context``` are provided.

### Versioning

If a [```version```](http://schema.org/version) property is specified<commit_msg>fix md<commit_after>dcat
====

Archive and make discoverable data and links with
[schema.org](http://schema.org) metadata.

[![NPM](https://nodei.co/npm/dcat.png)](https://nodei.co/npm/dcat/)

Usage (CLI)
===========

## tl;dr

    dcat --help


## Registering an User (```adduser```)

Run

    dcat adduser

and follow the prompting wizard.

## Publishing (```publish```)

### Simple document

```dcat``` allows the publication of [JSON-LD](http://www.w3.org/TR/json-ld)
documents using [dcat.io](https://dcat.io) context. This context
extends [schema.org](http://schema.org) with terms relevant to do I/O
and preserve data integrity (like ```filePath``` and ```Checksum```).

At the minimum, a document has to contain

- a context (```@context```) set to https://dcat.io,
- an id (```@id```) to uniquely identify things published on
  dcat.io with URLs. All relative URLs will be resolved with a base
  (defined in the [context](https://dcat.io) (```@base```)) of ```https://dcat.io```


e.g.

    {
      "@context": "https://dcat.io",
      "@id": "mydoc"
    }

To publish this document (```mydoc```), create a file named ```JSONLD``` and in the directory containing ```JSONLD``` run:

    dcat publish

After publication the document will be available at ```https://dcat.io/mydoc```.

Documents can contain any properties from
[schema.org](http://schema.org) or from any other ontologies as long
as the associated ```@context``` are provided.

### Versioning

If a [```version```](http://schema.org/version) property is specified
{'fraction_non_alphanumeric': 0.1838856400259909, 'fraction_numerical': 0.000649772579597141, 'mean_word_length': 4.039279869067103, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2692591', 'n_tokens_mistral': 1029, 'n_tokens_neox': 976, 'n_words': 326}