Inrupt Vocabulary Libraries#

Inrupt provides the following vocabulary libraries that provide convenience objects (as JavaScript classes) that contain static constants for common identifiers used across Solid (and RDF in general). Rather than hardcoding the identifiers, developers can use these classes instead.

Library

Description

vocab-common-rdf

Inrupt vocab-common-rdf is a library that provides convenience objects for many RDF-related identifiers, such as the Person and familyName identifiers from the Schema.org vocabulary from Google, Microsoft and Yahoo!

vocab-solid

Inrupt vocab-solid is a library that provides convenience objects for many Solid-related identifiers.

vocab-inrupt-core

Inrupt vocab-inrupt-core is a library that provides convenience objects for Inrupt-related identifiers.

Inrupt vocab-common-rdf is a client library that bundles constants that refer to terms in some pre-existing vocabularies. Applications can use these constants to read and write data instead of specifying the URL. For example:

Full Vocabulary URI

vocab-common-rdf Constant

"http://schema.org/familyName"

SCHEMA_INRUPT.familyName

"http://xmlns.com/foaf/0.1/firstName"

FOAF.firstName

Install#

You can use npm to install the libraries; e.g., to install the vocab-common-rdf library:

npm install @inrupt/vocab-common-rdf

See also:

Additional References#