RDFLiteralExtends
Extends
Description
Wrapper for easier usage of SPARQL RDLiterals as objects and for declaring triple patterns as its subject.
Methods
withType( type: string ): LiteralAdd 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 ): LiteralAdd 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 & RDFLiteralFactory 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.