Hello All ,

i was trying to get labels for Wikidata classes from the new wikidata
extracted 
dumps<https://github.com/hadyelsahar/extraction-framework/wiki/WikiData-DBpedia-Dump-Release-v.0.2>

and i noticed that many of items contains more than one English label

that's mainly because in
Language.scala<https://github.com/dbpedia/extraction-framework/blob/master/core/src/main/scala/org/dbpedia/extraction/util/Language.scala>
in
noniso languages more than one language are mapping to the English one
check jbo for example it maps to English

that means that using  Language.get(lang) will result in returning
different language object  than the needed one

i'm using such lines to Write Quads within languages available in DBpedia

Language.get(lang) match
{
case Some(l) => quads += new Quad(l, DBpediaDatasets.WikidataLabels,
subjectUri, labelProperty, labelsMap(lang), page.sourceUri,
context.ontology.datatypes("xsd:string"))
case _=>
}

how do you overcome such problem and stick to languages available in
DBpedia

thanks
Regards
-------------------------------------------------
Hady El-Sahar
Research Assistant
Center of Informatics Sciences | Nile University<http://nileuniversity.edu.eg/>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Dbpedia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-developers

Reply via email to