Click or drag to resize

WikibaseDataType Class

This is preliminary documentation and is subject to change.

Atomic instances indicating a Wikibase Property type.
Inheritance Hierarchy
SystemObject
  WikiClientLibrary.Wikibase.DataTypesWikibaseDataType

Namespace: WikiClientLibrary.Wikibase.DataTypes
Assembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public abstract class WikibaseDataType

The WikibaseDataType type exposes the following members.

Constructors
 NameDescription
Protected methodWikibaseDataTypeInitializes a new instance of the WikibaseDataType class
Top
Properties
 NameDescription
Public propertyMappedType The mapped CLR type for the data type.
Public propertyName The property type name.
Public propertyValueTypeName The value type name.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodParse Converts the JSON to the CLR value.
Public methodToJson Converts the CLR value to JSON.
Public methodToStringReturns a string that represents the current object.
(Overrides ObjectToString)
Top
Remarks

In Wikibase, there are two different notion of types: one is "property type", the other is "value type". They follow n:1 relation, i.e. one property type corresponds to one value type, but the same value type can represent different property types.

For example, wikibase-item property type corresponds to wikibase-entityid value type, while wikibase-property property type also corresponds to wikibase-entityid value type. For a list of Wikibase built-in data types, see d:Special:ListDatatypes.

For a list of predefined WikibaseDataType instances, see BuiltInDataTypes.

See Also