RDFLiteral
Extends

Description

Wrapper for easier usage of SPARQL RDLiterals as objects and for declaring triple patterns as its subject.

Methods

withType( type: string ): Literal

Add an specific type to the RDFLiteral.

Relative types of the XMLSchema can be provided and resolved internally.

Parameters

NameTypeDescription
string

The IRI type to be added.

withLanguage( language: string ): Literal

Add an specific language tag to the RDFLiteral.

Parameters

NameTypeDescription
string

The language tag to be added.

RDFLiteral

Description

Constant with utils for RDFLiteral objects.

Methods

createFrom<C extends Container<RDFLiteralToken>, O extends object>( container: C, object: O ): O & RDFLiteral

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

Parameters

NameTypeDescription
C

The related container with the data for the TripleSubject statement.

O

The base base from where to create the TripleSubject statement.

Returns

The TripleSubject statement created from the object provided.