C# Class RDFSharp.Model.RDFTypedLiteral

RDFTypedLiteral represents a RDFLiteral which is denoted by a Datatype.
Inheritance: RDFSharp.Model.RDFLiteral
Exibir arquivo Open project: mdesalvo/RDFSharp Class Usage Examples

Public Methods

Method Description
RDFTypedLiteral ( String value, RDFModelEnums datatype ) : System

Default-ctor to build a typed literal with given value and given datatype. Semantic validation of given value against given datatype is performed.

ToString ( ) : String

Gives the string representation of the typed literal

Private Methods

Method Description
HasBooleanDatatype ( ) : System.Boolean

Checks if the datatype of this typed literal is compatible with boolean

HasDatetimeDatatype ( ) : System.Boolean

Checks if the datatype of this typed literal is compatible with datetime

HasDecimalDatatype ( ) : System.Boolean

Checks if the datatype of this typed literal is compatible with decimal

HasStringDatatype ( ) : System.Boolean

Checks if the datatype of this typed literal is compatible with string

HasTimespanDatatype ( ) : System.Boolean

Checks if the datatype of this typed literal is compatible with timespan

Method Details

RDFTypedLiteral() public method

Default-ctor to build a typed literal with given value and given datatype. Semantic validation of given value against given datatype is performed.
public RDFTypedLiteral ( String value, RDFModelEnums datatype ) : System
value String
datatype RDFModelEnums
return System

ToString() public method

Gives the string representation of the typed literal
public ToString ( ) : String
return String