Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getEntityFromSitelink - Unsupported type quantity #3

Open
pastorius187 opened this issue Aug 20, 2014 · 1 comment
Open

getEntityFromSitelink - Unsupported type quantity #3

pastorius187 opened this issue Aug 20, 2014 · 1 comment

Comments

@pastorius187
Copy link

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)

@Ahoerstemeier
Copy link

The quantity datatype is not supported, the newly introduced monolingual text neither.
My rework branch has the quantity already, and will have the monolingual text soon - see https://github.com/Ahoerstemeier/wikibase.net/tree/rework

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants