@Test public void testWbGetEntitiesPropsFilters() throws MediaWikiApiErrorException, IOException { WbGetEntitiesActionData properties = new WbGetEntitiesActionData(); properties.ids = "Q6|Q42|P31"; properties.props = "datatype|labels|aliases|descriptions|claims|sitelinks"; properties.languages = "en"; properties.sitefilter = "enwiki"; Map<String, EntityDocument> result1 = action.wbGetEntities(properties); Map<String, EntityDocument> result2 = action.wbGetEntities( properties.ids, null, null, properties.props, null, null); assertTrue(result1.containsKey("Q42")); assertEquals(result1, result2); }
public Map<String, EntityDocument> wbGetEntities( WbGetEntitiesActionData properties) throws MediaWikiApiErrorException, IOException { return wbGetEntities(properties.ids, properties.sites, properties.titles, properties.props, properties.languages, properties.sitefilter); }
WbGetEntitiesAction { public Map<String, EntityDocument> wbGetEntities( WbGetEntitiesActionData properties) throws MediaWikiApiErrorException, IOException { return wbGetEntities(properties.ids, properties.sites, properties.titles, properties.props, properties.languages, properties.sitefilter); } }
WbGetEntitiesAction { public Map<String, EntityDocument> wbGetEntities( WbGetEntitiesActionData properties) throws MediaWikiApiErrorException, IOException { return wbGetEntities(properties.ids, properties.sites, properties.titles, properties.props, properties.languages, properties.sitefilter); } WbGetEntitiesAction(ApiConnection connection, String siteIri); }
WbGetEntitiesAction { public Map<String, EntityDocument> wbGetEntities( WbGetEntitiesActionData properties) throws MediaWikiApiErrorException, IOException { return wbGetEntities(properties.ids, properties.sites, properties.titles, properties.props, properties.languages, properties.sitefilter); } WbGetEntitiesAction(ApiConnection connection, String siteIri); Map<String, EntityDocument> wbGetEntities(
			WbGetEntitiesActionData properties); Map<String, EntityDocument> wbGetEntities(String ids, String sites,
			String titles, String props, String languages, String sitefilter); }
WbGetEntitiesAction { public Map<String, EntityDocument> wbGetEntities( WbGetEntitiesActionData properties) throws MediaWikiApiErrorException, IOException { return wbGetEntities(properties.ids, properties.sites, properties.titles, properties.props, properties.languages, properties.sitefilter); } WbGetEntitiesAction(ApiConnection connection, String siteIri); Map<String, EntityDocument> wbGetEntities(
			WbGetEntitiesActionData properties); Map<String, EntityDocument> wbGetEntities(String ids, String sites,
			String titles, String props, String languages, String sitefilter);  }