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
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