This package contains the terms from the Schema.org ontology for JavaScript and TypeScript.
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
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
``typescript
import * as schema from '@ontologies/schema'
console.log(schema.vocTerm) // { termType: 'NamedNode', value: "http://schema.org/vocTerm" }
`
With named exports
`typescript
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
`typescript
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