Lucas_Werkmeister_WMDE created this task.
Lucas_Werkmeister_WMDE added a project: Wikidata-Query-Service.
Herald added a subscriber: Aklapper.
Herald added a project: Wikidata.

TASK DESCRIPTION

I stumbled across this due to a bug in a query of mine (if you’re curious: I forgot the IRI() in this query), but I suppose WDQS should not throw an exception here.

SELECT ?x ?xLabel WHERE {
  BIND(STR(wd:Q1) AS ?x)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}




Caused by: java.lang.IllegalArgumentException

	at com.bigdata.rdf.lexicon.LexiconRelation._getTermId(LexiconRelation.java:3121)
	at com.bigdata.rdf.lexicon.LexiconRelation.getValue(LexiconRelation.java:3209)
	at com.bigdata.rdf.lexicon.LexiconRelation.getTerm(LexiconRelation.java:3180)
	at org.wikidata.query.rdf.blazegraph.label.LabelService$ResolutionContext.bestEffortLabel(LabelService.java:556)
	at org.wikidata.query.rdf.blazegraph.label.LabelService$ResolutionContext.pickOrBuildBestLabel(LabelService.java:493)
	at org.wikidata.query.rdf.blazegraph.label.LabelService$ResolutionContext.resolve(LabelService.java:418)
	at org.wikidata.query.rdf.blazegraph.label.LabelService$LabelServiceCall$Chunk.next(LabelService.java:273)
	at org.wikidata.query.rdf.blazegraph.label.LabelService$LabelServiceCall$Chunk.next(LabelService.java:245)
	at com.bigdata.striterator.ChunkedWrappedIterator.nextChunk(ChunkedWrappedIterator.java:252)
	at com.bigdata.striterator.Chunkerator.next(Chunkerator.java:96)
	at com.bigdata.striterator.Chunkerator.next(Chunkerator.java:44)
	at com.bigdata.bop.join.JVMHashJoinUtility.hashJoin2(JVMHashJoinUtility.java:572)
	... 7 more

The bug seems to happen for any string that starts with http://. For other strings, the label service returns the string as the label, which is probably a good thing.


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

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

To: Lucas_Werkmeister_WMDE
Cc: Aklapper, Lucas_Werkmeister_WMDE, Lahi, Gq86, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, Jonas, Xmlizer, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to