TypeScript library for Node 16+ and command line interface for working with Web Data Commons datasets
npm i webdatacommons
import WebDataCommons from "webdatacommons";
const classSubsets = await new WebDataCommons({cacheDirectoryPath: "path/to/directory"}).schemaDotOrgDataSet().classSubsets();
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