Package io.outofprintmagazine.nlp.utils
Class WikimediaUtils
- java.lang.Object
-
- io.outofprintmagazine.nlp.utils.WikimediaUtils
-
public class WikimediaUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classWikimediaUtils.ImageInfoPageHandlerprotected classWikimediaUtils.ImagePageHandler
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getImages(String title)List<String>getImagesByTag(String text)List<String>getImagesByText(String text)static WikimediaUtilsgetInstance(IParameterStore parameterStore)
-
-
-
Method Detail
-
getInstance
public static WikimediaUtils getInstance(IParameterStore parameterStore) throws IOException
- Throws:
IOException
-
getImagesByText
public List<String> getImagesByText(String text) throws IOException, URISyntaxException
- Throws:
IOExceptionURISyntaxException
-
getImagesByTag
public List<String> getImagesByTag(String text) throws IOException, URISyntaxException
- Throws:
IOExceptionURISyntaxException
-
getImages
public List<String> getImages(String title) throws IOException, URISyntaxException
- Throws:
IOExceptionURISyntaxException
-
-