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

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i @ontologies/as

Weekly Downloads

13

Version

2.0.0

License

GPL-3.0-or-later

Unpacked Size

53.1 kB

Total Files

6

Last publish

Collaborators

  • fletcher91