WikidataFacts created this task.
WikidataFacts added projects: Wikidata-Query-Service, Wikidata.
Herald added a subscriber: Aklapper.
Herald added a project: Discovery.

TASK DESCRIPTION
SELECT ?person ?personLabel WHERE {
  {
    SELECT ?person WHERE {
      BIND(wd:Q23 AS ?person).
      ?person wdt:P31 wd:Q5.
      SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
    }
    LIMIT 1
  }
}

Query link

Caused by: com.bigdata.rdf.internal.NotMaterializedException: Vocab(2):XSDUnsignedByte(23)

	at com.bigdata.rdf.internal.impl.AbstractIV.getValue(AbstractIV.java:993)
	at com.bigdata.rdf.sail.Bigdata2Sesame2BindingSetIterator.getBindingSet(Bigdata2Sesame2BindingSetIterator.java:298)
	at com.bigdata.rdf.sail.Bigdata2Sesame2BindingSetIterator.hasNext(Bigdata2Sesame2BindingSetIterator.java:140)
	... 11 more

Some similar queries have an XSDUnsignedInt instead of the XSDUnsignedByte in the error message.

Removing pretty much anything from the query above – any of the selected variables in either query, the limit, the subquery, the ?person wdt:P31 wd:Q5. triple, the label service – makes the error disappear, so some very strange combination of factors seems to be happening here. The only exception is the BIND() form, which is merely an optimization – without it, the query will take a while before it produces the same error.


TASK DETAIL
https://phabricator.wikimedia.org/T147577

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: WikidataFacts
Cc: Aklapper, WikidataFacts, mschwarzer, Avner, debt, Gehel, D3r1ck01, Jonas, FloNight, Xmlizer, Izno, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Deskana, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to