Page MenuHomePhabricator

Allow Wikinews sites as MediaWiki API endpoints in Wikidata Query Service
Closed, ResolvedPublic

Description

E.g. the query

SELECT DISTINCT ?item 
WHERE {
 {
   SELECT ?item WHERE {
    SERVICE wikibase:mwapi {
      bd:serviceParam wikibase:endpoint "en.wikinews.org" .
      bd:serviceParam wikibase:api "Generator" .
      bd:serviceParam mwapi:generator "search" .
      bd:serviceParam mwapi:gsrsearch "hastemplate:current" .
      bd:serviceParam mwapi:gsrlimit "max" .
      ?item wikibase:apiOutputItem mwapi:item .
    }
  } LIMIT 100
 }
 hint:Prior hint:runFirst "true".
} LIMIT 100

currently gives an error "Host en.wikinews.org is not allowed", and the same goes for other Wikinews sites.

Event Timeline

Restricted Application added a project: Wikidata. · View Herald TranscriptAug 18 2018, 12:39 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Smalyshev closed this task as Resolved.Aug 20 2018, 8:31 PM
Smalyshev claimed this task.

wikinews added to allowed services, query works now.