@ontologies/schema
v2.0.0
Published
This package contains the terms from the Schema.org ontology for JavaScript and TypeScript.
Downloads
45
Maintainers
Readme
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