WikipediaArticleResource extends AbstractResource { public String getResourceVersion() { StringBuilder sb = new StringBuilder(); String version = ""; String language = ""; try { MetaData metaData = wiki.getMetaData(); language = metaData.getLanguage().toString(); version = metaData.getVersion(); if (language == null) { language = "unknown-language"; } if (version == null) { version = "unknown-version"; } } catch (WikiApiException e) { language = "unknown-language"; version = "unknown-version"; } sb.append(language); sb.append("_"); sb.append(version); return sb.toString(); } WikipediaArticleResource(String host, String database, String user, String password, Language language);  WikipediaArticleResource(DatabaseConfiguration dbConfig);  WikipediaArticleResource(Wikipedia wiki); boolean containsEntity(Entity entity); boolean containsLexeme(String lexeme); Set<Entity> getEntity(String lexeme); Set<Entity> getEntity(String lexeme, PoS pos); Set<Entity> getEntity(String lexeme, PoS pos, String sense); Set<Entity> getParents(Entity entity); int getNumberOfEntities(); Iterable<Entity> getEntities(); Set<Entity> getChildren(Entity entity); String getResourceName(); String getResourceVersion(); Set<String> getRelatedLexemes(String lexeme, PoS pos, String sense, LexicalRelation lexicalRelation); int getShortestPathLength(Entity e1, Entity e2); String getGloss(Entity entity); Set<Entity> getRelatedEntities(Entity entity, SemanticRelation semanticRelation); @Override Entity getRoot(); @Override Entity getRoot(PoS pos); @Override Entity getMostFrequentEntity(String lexeme); @Override Entity getMostFrequentEntity(String lexeme, PoS pos);  }
@Test public void testGetResourceVersion() throws LexicalSemanticResourceException { assertEquals("_test_unknown-version", wikiResource.getResourceVersion()); }