Hi Rupert,

That will be really great if you could provide me with the incoming_links
file for english language.

Thanks for your help!!

Regards,
Manish


On Fri, Aug 30, 2013 at 12:30 PM, Rupert Westenthaler <
rupert.westentha...@gmail.com> wrote:

> Hi Manish,
>
> Exactly. If you like I can upload incoming_links file generate with
> [1] to the dev.iks-project.eu server. I do have such files for about
> ~10 languages.
>
> best
> Rupert
>
>
>
> On Fri, Aug 30, 2013 at 6:57 AM, Manish Aggarwal <mani.i...@gmail.com>
> wrote:
> > So, if I want to see all redirects using custom build index file (that
> > includes complete redirects_en.nt dump), I need to do the following steps
> >
> > 1. Change the config/minincoming.properties min-score=0   (I want all the
> > redirects to come in the result)
> > 2. Create incoming_links.txt again using the entityrankings.sh link
> > provided by Rupert in previous mail.
> > 2. Regenrate the index file with redirects_en.nt included (and using
> > incoming_links file created in step 2)
> >
> > And then use that index file and run the following query :
> >
> > {
> >     "selected": [
> >         "rdfs:label" ],
> >     "offset": "0",
> >     "limit": "5",
> >     "constraints": [{
> >         "type": "reference",
> >         "field": "http://dbpedia.org/ontology/wikiPageRedirects";,
> >         "value": "http://dbpedia.org/resource/Athletic_shoe";
> >      }]
> > }
> >
> >
> > Are above steps complete or I have missed anything missing?
> >
> > Thanks and Regards,
> > Manish
> >
> >
> >
> >
> >
> >
> > On Thu, Aug 29, 2013 at 11:46 PM, Rupert Westenthaler <
> > rupert.westentha...@gmail.com> wrote:
> >
> >> On Thu, Aug 29, 2013 at 5:05 PM, Alessandro Adamou <ada...@cs.unibo.it>
> >> wrote:
> >> > The reason why this example is not working for me is that I get a 404
> on
> >> the
> >> > entities that should redirect to Athletic_shoe, e.g.
> >> >
> >> > http://dbpedia.org/resource/Gym_shoe
> >> > http://dbpedia.org/resource/Tennis_shoes
> >> > http://dbpedia.org/resource/Tennis_shoe
> >> >
> >> > I tried this on a custom DBPedia index that nevertheless includes the
> >> whole
> >> > redirects_en.nt dump
> >> >
> >> > However I am guessing these entities, if all they do is redirect,
> might
> >> be
> >> > not picked up by the indexer because of the 'min-score' set to 2 in
> >> > config/minincoming.properties
> >> >
> >>
> >> for those three entities this is true. "Tennis_shoes" has  1 incoming
> >> link the other two do not have a single incoming link. So when using
> >> the default incoming_links file those entities will not be indexed.
> >> However if you build the incoming_links file by using [1] they will be
> >> indexed as [1] assigns the number of incoming links for the redirected
> >> page also to the entities that redirect to those. [1] was also used to
> >> build the index on dev.iks-project.eu
> >>
> >> best
> >> Rupert
> >>
> >> [1]
> >>
> http://svn.apache.org/repos/asf/stanbol/trunk/entityhub/indexing/dbpedia/dbpedia-3.8/entityrankings.sh
> >>
> >> > maybe it is so for the default index too - could that be it?
> >> >
> >> > best,
> >> > Alessandro
> >> >
> >> >
> >> >
> >> > On 29/08/2013 15:45, Rupert Westenthaler wrote:
> >> >>
> >> >> Hi Manish,
> >> >>
> >> >> thats correct. In the default dbpedia index dbp-ont:wikiPageRedirects
> >> >> are copied over to rdfs:seeAlso. So sending
> >> >>
> >> >> {
> >> >>      "selected": [
> >> >>          "rdfs:label" ],
> >> >>      "offset": "0",
> >> >>      "limit": "5",
> >> >>      "constraints": [{
> >> >>          "type": "reference",
> >> >>          "field": "rdfs:seeAlso",
> >> >>          "value": "http://dbpedia.org/resource/Athletic_shoe";
> >> >>       }]
> >> >> }
> >> >>
> >> >> to http://dev.iks-project.eu:8081/entityhub/site/dbpedia/query
> >> >>
> >> >> e.g. by using
> >> >>
> >> >>      curl -X POST -H "Content-Type:application/json" \
> >> >>          --data "@testQuery.json" \
> >> >>          http://dev.iks-project.eu:8081/entityhub/site/dbpedia/query
> >> >>
> >> >> should give you also the results you are expecting
> >> >>
> >> >> best
> >> >> Rupert
> >> >>
> >> >> On Thu, Aug 29, 2013 at 4:26 PM, Manish Aggarwal <
> mani.i...@gmail.com>
> >> >> wrote:
> >> >>>
> >> >>> Tennis_shoe redirects to Athletic_shoe.
> >> >>>
> >> >>> Now, I want to find all the dbpedia resources that redirects to
> >> >>> "Athletic_shoe". How could I achieve this through FieldQuery?
> >> >>>
> >> >>> Note given below sample field query doesn't result in anything
> >> >>>
> >> >>> {
> >> >>>      "selected": [
> >> >>>          "rdfs:label" ],
> >> >>>      "offset": "0",
> >> >>>      "limit": "5",
> >> >>>      "constraints": [{
> >> >>>          "type": "reference",
> >> >>>          "field": "http://dbpedia.org/ontology/wikiPageRedirects";,
> >> >>>          "value": "http://dbpedia.org/resource/Athletic_shoe";
> >> >>>       }]
> >> >>> }
> >> >>>
> >> >>>
> >> >>> Thanks in advance.
> >> >>>
> >> >>> Regards,
> >> >>> Manish
> >> >>>
> >> >>> P.S. I have already created dbpedia.solrindex file
> >> >>> with dbpedia-owl:wikiPageRedirects mapping.
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > Alessandro Adamou, Ph.D.
> >> >
> >> > Knowledge Media Institute
> >> > The Open University
> >> > Walton Hall, Milton Keynes MK7 6AA
> >> > United Kingdom
> >> >
> >> >
> >> > "I will give you everything, just don't demand anything."
> >> > (Ettore Petrolini, 1917)
> >> >
> >> > Not sent from my iSnobTechDevice
> >> >
> >>
> >>
> >>
> >> --
> >> | Rupert Westenthaler             rupert.westentha...@gmail.com
> >> | Bodenlehenstraße 11                             ++43-699-11108907
> >> | A-5500 Bischofshofen
> >>
>
>
>
> --
> | Rupert Westenthaler             rupert.westentha...@gmail.com
> | Bodenlehenstraße 11                             ++43-699-11108907
> | A-5500 Bischofshofen
>

Reply via email to