WikibaseDataFetcher { public Map<String, EntityDocument> getEntityDocumentsByTitle( String siteKey, String... titles) throws MediaWikiApiErrorException, IOException { return getEntityDocumentsByTitle(siteKey, Arrays.asList(titles)); } WikibaseDataFetcher(ApiConnection connection, String siteUri); static WikibaseDataFetcher getWikidataDataFetcher(); static WikibaseDataFetcher getWikimediaCommonsDataFetcher(); DocumentDataFilter getFilter(); EntityDocument getEntityDocument(String entityId); Map<String, EntityDocument> getEntityDocuments(String... entityIds); Map<String, EntityDocument> getEntityDocuments(List<String> entityIds); EntityDocument getEntityDocumentByTitle(String siteKey, String title); Map<String, EntityDocument> getEntityDocumentsByTitle(
			String siteKey, String... titles); Map<String, EntityDocument> getEntityDocumentsByTitle(
			String siteKey, List<String> titles); MediaInfoIdValue getMediaInfoIdByFileName(String fileName); Map<String, MediaInfoIdValue> getMediaInfoIdsByFileName(String... fileNames); Map<String, MediaInfoIdValue> getMediaInfoIdsByFileName(List<String> fileNames); List<WbSearchEntitiesResult> searchEntities(String search); List<WbSearchEntitiesResult> searchEntities(String search, String language); List<WbSearchEntitiesResult> searchEntities(String search, Long limit); List<WbSearchEntitiesResult> searchEntities(String search, String language, Long limit); List<WbSearchEntitiesResult> searchEntities(WbGetEntitiesSearchData properties);  }
@Test public void testGetEntitiesTitleSplitted() throws IOException, MediaWikiApiErrorException { Map<String, String> parameters1 = new HashMap<>(); this.setStandardParameters(parameters1); parameters1.put("titles", "Douglas Adams"); parameters1.put("sites", "enwiki"); con.setWebResourceFromPath(parameters1, getClass(), "/wbgetentities-Douglas-Adams.json", CompressionType.NONE); Map<String, String> parameters2 = new HashMap<>(); this.setStandardParameters(parameters2); parameters2.put("titles", "Oliver Kahn"); parameters2.put("sites", "enwiki"); con.setWebResourceFromPath(parameters2, getClass(), "/wbgetentites-Oliver-Kahn.json", CompressionType.NONE); wdf.maxListSize = 1; Map<String, EntityDocument> result = wdf.getEntityDocumentsByTitle( "enwiki", "Oliver Kahn", "Douglas Adams"); assertEquals(2, result.keySet().size()); assertEquals("Q42", result.get("Douglas Adams").getEntityId().getId()); assertEquals("Q131261", result.get("Oliver Kahn").getEntityId().getId()); }