public static BandWithExternalInfo LoadWikiPageMembers(this BandWithExternalInfo bandWithExternalInfo, string knowledgeBaseFolder) { var bandWithWiki = new BandWithWikiInfo(); return(bandWithWiki.LoadMembersFromSource(bandWithExternalInfo, new WikiPageText(GetPageUrlProvider(bandWithExternalInfo.LanguageType)), new ExtractBandMembersFromWikiEngine(knowledgeBaseFolder, bandWithExternalInfo.LanguageType))); }
public static BandWithExternalInfo LoadWikiPageId(this Artist artist) { BandWithWikiInfo bandWithWikiInfo = new BandWithWikiInfo(); return(bandWithWikiInfo.LoadExternalInfoFromSource(artist, new Dictionary <LanguageType, IWikiSearch> { { LanguageType.English, new WikiSearch(new EnglishSearchUrlProvider()) }, { LanguageType.Spanish, new WikiSearch(new SpanishSearchUrlProvider()) }, { LanguageType.French, new WikiSearch(new FrenchSearchUrlProvider()) }, { LanguageType.German, new WikiSearch(new GermanSearchUrlProvider()) }, { LanguageType.Portuguese, new WikiSearch(new ProtugueseSearchUrlProvider()) }, { LanguageType.Swedish, new WikiSearch(new SwedishSearchUrlProvider()) }, })); }
public static IEnumerable <BandWithPossibleMember> CleanWikiPageMembers(this BandWithExternalInfo bandWithExternalInfo, string knowledgeBaseFolder, string simpleWordsSeparator) { var bandWithWiki = new BandWithWikiInfo(); return(bandWithWiki.CleanMembers(bandWithExternalInfo, new CleanMembersFromWikiEngine(knowledgeBaseFolder, simpleWordsSeparator))); }