3.0.5 • Published 3 months ago

webdatacommons v3.0.5

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
3 months ago

webdatacommons

TypeScript library for Node 16+ and command line interface for working with Web Data Commons datasets

Installation

npm i webdatacommons

Usage

From JavaScript/TypeScript

import WebDataCommons from "webdatacommons";

const classSubsets = await new WebDataCommons({cacheDirectoryPath: "path/to/directory"}).schemaDotOrgDataSet().classSubsets();

From the command line

Extract quads for the pay-level domain balsamohomes.com from the AdministrativeArea class-specific subset and print them to the console:

    webdatacommons schema.org extract -c AdministrativeArea -d balsamohomes.com