Skip to content

getEntityFromSitelink - Unsupported type quantity #3

Description

@pastorius187

t doesnt work. getEntityFromSitelink throws an exception

Dim api As WikibaseApi = New WikibaseApi("https://www.wikidata.org", "Wikibase.NET Example/0.1")
api.login("XXX", "YYYYY")
Dim entityProvider As New EntityProvider(api)
Dim languages = { "en", "cs"}
Dim entityBySitelink As Entity = entityProvider.getEntityFromSitelink("enwiki", "Prague", languages)
 ...

A first chance exception of type 'System.NotSupportedException' occurred in Wikibase.NET.dll
System.NotSupportedException: Unsupported type quantity
v Wikibase.DataValues.DataValueFactory.newDataValue(String type, JsonValue value)
v Wikibase.DataValues.DataValueFactory.newFromArray(JsonObject data)
v Wikibase.Snak.newFromArray(JsonObject data)
v Wikibase.Claim.fillData(JsonObject data)
v Wikibase.Statement.fillData(JsonObject data)
v Wikibase.Claim..ctor(Entity entity, JsonObject data)
v Wikibase.Statement..ctor(Entity entity, JsonObject data)
v Wikibase.Claim.newFromArray(Entity entity, JsonObject data)
v Wikibase.Entity.fillData(JsonObject data)
v Wikibase.Item.fillData(JsonObject data)
v Wikibase.Entity..ctor(WikibaseApi api, JsonObject data)
v Wikibase.Item..ctor(WikibaseApi api, JsonObject data)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions