@ontologies/schema
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Schema.org ontology

This package contains the terms from the Schema.org ontology for JavaScript and TypeScript.

Namespace: http://schema.org/

LOV: https://lov.linkeddata.es/dataset/lov/vocabs/schema

Source: http://schema.org/version/latest/schema.ttl

About

This readme was automatically generated, for more information see the main ontologies repository.

The terms in this vocabulary are generated from their RDF representations which generally aren't the canonical definitions, please refer to the specification for their canonical definitions.

Usage

With default export

import * as schema from '@ontologies/schema'

console.log(schema.vocTerm) // { termType: 'NamedNode', value: "http://schema.org/vocTerm" }

With named exports

import { vocTerm } from '@ontologies/schema'

console.log(vocTerm) // { termType: 'NamedNode', value: "http://schema.org/vocTerm" }

Use the ns function when missing a term or when using custom extensions

import * as schema from '@ontologies/schema'

console.log(schema.ns('myTerm')) // { termType: 'NamedNode', value: "http://schema.org/myTerm" }

Statistics

Total term count: 1646

Of which classes 624 (including data types)

Of which properties: 905

Other terms: 117

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @ontologies/schema

      Weekly Downloads

      8

      Version

      2.0.0

      License

      GPL-3.0-or-later

      Unpacked Size

      1.24 MB

      Total Files

      6

      Last publish

      Collaborators

      • fletcher91