@ontologies/as

Extended Activity Streams 2.0 Vocabulary

Usage no npm install needed!

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

README

ActivityStreams 2.0 ontology

This package contains the terms from the ActivityStreams 2.0 ontology for JavaScript and TypeScript.

Namespace: https://www.w3.org/ns/activitystreams#

Normative spec: https://www.w3.org/TR/activitystreams-core/

Source: https://www.w3.org/ns/activitystreams-owl

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

console.log(as.vocTerm) // { termType: 'NamedNode', value: "https://www.w3.org/ns/activitystreams#vocTerm" }

With named exports

import { vocTerm } from '@ontologies/as'

console.log(vocTerm) // { termType: 'NamedNode', value: "https://www.w3.org/ns/activitystreams#vocTerm" }

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

import * as as from '@ontologies/as'

console.log(as.ns('myTerm')) // { termType: 'NamedNode', value: "https://www.w3.org/ns/activitystreams#myTerm" }

Statistics

Total term count: 124

Of which classes 55 (including data types)

Of which properties: 69

Other terms: 0