Ainali created this task. Ainali added a project: Wikidata-Query-Service. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION **List of steps to reproduce** (step by step, including full links if applicable): - I make a query like this <https://w.wiki/3YhG>: SELECT ?title WHERE { hint:Query hint:optimizer "None". SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; # Set the project here wikibase:api "Generator"; mwapi:generator "recentchanges"; mwapi:grcnamespace "146"; # Restrict to lexemes mwapi:grctype "new"; mwapi:grcuser "Ainali";. # Your username ?title wikibase:apiOutputItem mwapi:title. } FILTER BOUND (?title) } LIMIT 1 **What happens?**: It gives a result which in JSON looks like this: {"head":{"vars":["title"]},"results":{"bindings":[{"title":{"type":"uri","value":"http://www.wikidata.org/entity/LEXEME:L496172"}}]}} and the query service renders that as wd:LEXEME:L496172 <http://www.wikidata.org/entity/LEXEME:L496172> which is a link that resolves to https://www.wikidata.org/wiki/Lexeme:LEXEME:L496172 which gives a 404 with the error message "This entity does not exist. " **What should have happened instead?**: I would have expected that title would either have the value of `http://www.wikidata.org/entity/L496172` or that it would be a string with the value of `Lexeme:L496172` (like in a regular API-call <https://www.wikidata.org/w/api.php?action=query&format=json&prop=&generator=recentchanges&grcnamespace=146&grcuser=Ainali&grcshow=&grclimit=1&grctype=new>). TASK DETAIL https://phabricator.wikimedia.org/T285606 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ainali Cc: Aklapper, Ainali, MPhamWMF, CBogen, Namenlos314, Gq86, Lucas_Werkmeister_WMDE, EBjune, merbst, Jonas, Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org