Feature/filetypeextractor

Added a FileTypeExtractor that can extract basic information about Commons files. This required moving the Image URL generation code from the ImageExtractor into ExtractorUtils.
yes! exactly :)


On Thu, Jul 3, 2014 at 10:58 AM, Gaurav Vaidya <notifications@github.com>
wrote:

> In
> core/src/main/scala/org/dbpedia/extraction/mappings/ImageExtractor.scala:
>
> > @@ -68,7 +65,9 @@ extends PageNodeExtractor
> >
> >          for ((imageFileName, sourceNode) <- searchImage(node.children, 0) if !imageFileName.toLowerCase.startsWith("replace_this_image"))
> >          {
> > -            val (url, thumbnailUrl) = getImageUrl(imageFileName)
> > +            val lang = if(freeWikipediaImages.contains(URLDecoder.decode(imageFileName, "UTF-8")))
> > +                context.language else Language.Commons
>
> I'm not sure if I understood this; does @5b5c093
> <https://github.com/gaurav/extraction-framework/commit/5b5c093> fix this
> problem?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/gaurav/extraction-framework/pull/19/files#r14501166>.
>



-- 
Kontokostas Dimitris