RDFLiteralExtends
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
Name | Type | Description |
---|---|---|
string | The IRI type to be added. |
withLanguage( language: string ): Literal
Add an specific language tag to the RDFLiteral.
Parameters
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
C | The related container with the data for the | |
O | The base base from where to create the |
Returns
The TripleSubject
statement created from the object provided.