Resource

Description

Wrapper for easier usage of IRIs and prefixed names as objects and for declaring triple patterns as its subject.

Resource

Description

Constant with the utils for Resource objects.

Methods

createFrom<C extends Container<IRIToken>, O extends object>( container: C, object: O ): O & Resource

Factory function that allows to crete a Resource from the object provided.

Parameters

NameTypeDescription
C

The related container with the data for the Resource statement.

O

The base base from where to create the Resource statement.

Returns

The Resource statement created from the object provided.