@ontologies/skos

This package contains the terms from the SKOS Simple Knowledge Organization System ontology for JavaScript and TypeScript.

Usage no npm install needed!

<script type="module">
  import ontologiesSkos from 'https://cdn.skypack.dev/@ontologies/skos';
</script>

README

SKOS Simple Knowledge Organization System ontology

This package contains the terms from the SKOS Simple Knowledge Organization System ontology for JavaScript and TypeScript.

Namespace: http://www.w3.org/2004/02/skos/core#

Normative spec: https://www.w3.org/TR/skos-reference/

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

Source: https://www.w3.org/2009/08/skos-reference/skos.rdf

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 skos from '@ontologies/skos'

console.log(skos.vocTerm) // { termType: 'NamedNode', value: "http://www.w3.org/2004/02/skos/core#vocTerm" }

With named exports

import { vocTerm } from '@ontologies/skos'

console.log(vocTerm) // { termType: 'NamedNode', value: "http://www.w3.org/2004/02/skos/core#vocTerm" }

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

import * as skos from '@ontologies/skos'

console.log(skos.ns('myTerm')) // { termType: 'NamedNode', value: "http://www.w3.org/2004/02/skos/core#myTerm" }

Statistics

Total term count: 32

Of which classes 4 (including data types)

Of which properties: 18

Other terms: 10