There was a mistake in my earlier mail: I should have distinguished between
P1 and P2. Correct version:

for each wikidata item Q
  for each language L1
    if there is a link from Q to a page "{L1}.wikipedia.org/wiki/{P1}"
      (optional) write triple "{L1}.dbpedia.org/resource/{P1} sameAs Q" to
a file for language L1
      for each language L2
        if L1 != L2 and there is a link from Q to a page "{L2}.
wikipedia.org/wiki/{P2}"
          write triple "{L1}.dbpedia.org/resource/{P1} sameAs {L2}.
dbpedia.org/resource/{P2}" to a file for language L1


On 12 July 2013 04:39, Hady elsahar <[email protected]> wrote:

> got that clearly , thanks .
>
>
> On Fri, Jul 12, 2013 at 12:14 AM, Jona Christopher Sahnwaldt <
> [email protected]> wrote:
>
>>
>>
>>
>> On 11 July 2013 17:03, Hady elsahar <[email protected]> wrote:
>>
>>> Hello JC,
>>>
>>> i'm not sure i got that right  ,
>>> the changes between the two versions are the dot at the end of each
>>> triple and spaces between
>>>
>>> is that right ?
>>>
>>
>> No. What you generated is this:
>>
>> for each wikidata item Q
>>   for each language L
>>     if there is a link from Q to a page 
>> "{L}.wikipedia.org/wiki/{P}<http://wikipedia.org/wiki/%7BP%7D>
>> "
>>       write triple "Q sameAs 
>> {L}.dbpedia.org/resource/{P}<http://dbpedia.org/resource/%7BP%7D>"
>> to a file for language L
>>
>> What we also need is this:
>>
>> for each wikidata item Q
>>   for each language L1
>>     if there is a link from Q to a page 
>> "{L1}.wikipedia.org/wiki/{P}<http://wikipedia.org/wiki/%7BP%7D>
>> "
>>       (optional) write triple 
>> "{L1}.dbpedia.org/resource/{P}<http://dbpedia.org/resource/%7BP%7D>sameAs Q" 
>> to a file for language L1
>>       for each language L2
>>          if L1 != L2 and there is a link from Q to a page "{L2}.
>> wikipedia.org/wiki/{P} <http://wikipedia.org/wiki/%7BP%7D>"
>>           write triple 
>> "{L1}.dbpedia.org/resource/{P}<http://dbpedia.org/resource/%7BP%7D>sameAs 
>> {L2}.
>> dbpedia.org/resource/{P} <http://dbpedia.org/resource/%7BP%7D>" to a
>> file for language L1
>>
>>
>>>
>>> On Wed, Jul 10, 2013 at 8:50 PM, Jona Christopher Sahnwaldt <
>>> [email protected]> wrote:
>>>
>>>> On 30 June 2013 06:59, Hady elsahar <[email protected]> wrote:
>>>> >
>>>> > Hello All ,
>>>> >
>>>> > Specific language links Files are generated
>>>> >
>>>> > here's the script :
>>>> >
>>>> https://github.com/hadyelsahar/extraction-framework/commit/004e56ba0ce5fd652efa5cb32bd249356105dfe3
>>>> >
>>>> > the language links file names are in the form of :
>>>> >
>>>> > interlanguage_links_same_as_an.ttl
>>>> > interlanguage_links_same_as_eo.ttl
>>>> > interlanguage_links_same_as_es.ttl
>>>> > interlanguage_links_same_as_ff.ttl
>>>> > interlanguage_links_same_as_zh_classical.ttl       (languages like
>>>> as-zh-classical are converted into as_zh_classical in file names only )
>>>> >
>>>> > example file content for lanugage like [it] :
>>>> >
>>>> > <http://www.wikidata.org/entity/Q1000> <
>>>> http://www.w3.org/2002/07/owl#sameAs> <
>>>> http://it.dbpedia.org/resource/Gabon>
>>>> > <http://www.wikidata.org/entity/Q1001> <
>>>> http://www.w3.org/2002/07/owl#sameAs> <
>>>> http://it.dbpedia.org/resource/Mahatma_Gandhi>
>>>> > <http://www.wikidata.org/entity/Q1002> <
>>>> http://www.w3.org/2002/07/owl#sameAs> <
>>>> http://it.dbpedia.org/resource/Penisola_dei_Ciukci>
>>>> >
>>>>
>>>> That's a good start, but I think there's a bit more to do. Maybe you
>>>> will need a Scala script, maybe a bash script is still enough.
>>>>
>>>> Look at this file from the 3.8 release:
>>>>
>>>>
>>>> http://downloads.dbpedia.org/preview.php?file=3.8_sl_en_sl_interlanguage_links_same_as_en.ttl.bz2
>>>>
>>>> It contains triples like this:
>>>>
>>>> <http://dbpedia.org/resource/Alice,_Eastern_Cape>
>>>> <http://www.w3.org/2002/07/owl#sameAs>
>>>> <http://af.dbpedia.org/resource/Alice> .
>>>> <http://dbpedia.org/resource/Alice,_Eastern_Cape>
>>>> <http://www.w3.org/2002/07/owl#sameAs>
>>>> <http://de.dbpedia.org/resource/Alice_(Südafrika)> .
>>>> <http://dbpedia.org/resource/Alice,_Eastern_Cape>
>>>> <http://www.w3.org/2002/07/owl#sameAs>
>>>> <http://fr.dbpedia.org/resource/Alice_(Afrique_du_Sud)> .
>>>>
>>>> Similar for other languages:
>>>>
>>>>
>>>> http://downloads.dbpedia.org/preview.php?file=3.8_sl_de_sl_interlanguage_links_same_as_de.ttl.bz2
>>>>
>>>> <http://de.dbpedia.org/resource/Alice_(Südafrika)>
>>>> <http://www.w3.org/2002/07/owl#sameAs>
>>>> <http://af.dbpedia.org/resource/Alice> .
>>>> <http://de.dbpedia.org/resource/Alice_(Südafrika)>
>>>> <http://www.w3.org/2002/07/owl#sameAs>
>>>> <http://dbpedia.org/resource/Alice,_Eastern_Cape> .
>>>> <http://de.dbpedia.org/resource/Alice_(Südafrika)>
>>>> <http://www.w3.org/2002/07/owl#sameAs>
>>>> <http://fr.dbpedia.org/resource/Alice_(Afrique_du_Sud)> .
>>>>
>>>> I think we need the triples in this form, especially because we need
>>>> to load them into the triple stores at http://dbpedia.org ,
>>>> http://de.dbpedia.org etc.
>>>>
>>>>
>>>> Regards,
>>>> JC
>>>>
>>>> >
>>>> > check some other attached file examples
>>>> >
>>>> > also as JC adviced in the last i updated the used property from
>>>> schema:about to owl:sameas link
>>>> >
>>>> https://github.com/hadyelsahar/extraction-framework/commit/d99689d1e10da65961733e0e2abe43db8e5951bd
>>>> >
>>>> >
>>>> > -------------------------------------------------
>>>> > Hady El-Sahar
>>>> > Research Assistant
>>>> > Center of Informatics Sciences | Nile University
>>>> >
>>>> > email : [email protected]
>>>> > Phone : +2-01220887311
>>>> > http://hadyelsahar.me/
>>>> >
>>>> >
>>>> >
>>>>
>>>
>>>
>>>
>>> --
>>> -------------------------------------------------
>>> Hady El-Sahar
>>> Research Assistant
>>> Center of Informatics Sciences | Nile 
>>> University<http://nileuniversity.edu.eg/>
>>>
>>> email : [email protected]
>>> Phone : +2-01220887311
>>> http://hadyelsahar.me/
>>>
>>> <http://www.linkedin.com/in/hadyelsahar>
>>>
>>>
>>
>
>
> --
> -------------------------------------------------
> Hady El-Sahar
> Research Assistant
> Center of Informatics Sciences | Nile 
> University<http://nileuniversity.edu.eg/>
>
> email : [email protected]
> Phone : +2-01220887311
> http://hadyelsahar.me/
>
> <http://www.linkedin.com/in/hadyelsahar>
>
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Dbpedia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-developers

Reply via email to