Wikibase |
This is preliminary documentation and is subject to change.
The WikibaseDataType type exposes the following members.
Name | Description | |
---|---|---|
WikibaseDataType | Initializes a new instance of the WikibaseDataType class |
Name | Description | |
---|---|---|
MappedType | The mapped CLR type for the data type. | |
Name | The property type name. | |
ValueTypeName | The value type name. |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
Parse | Converts the JSON to the CLR value. | |
ToJson | Converts the CLR value to JSON. | |
ToString | Returns a string that represents the current object. (Overrides ObjectToString) |
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.