Mohamed Khamis
Mohamed Khamis

Reputation: 8029

Query DBpedia for multiple keywords

I want to query DBpedia for multiple keywords, when I query freebase for example using this:

http://api.freebase.com/api/service/search?query=%2BEgypt%2BPyramids 

I get reasonable results like: "Egyptian Pyramids", "Ancient Egypt", "Pyramids of Giza (Egypt)".

However whenever I try to query dbpedia with multiple keywords I get an empty ArrayofResult, although when I query for each keyword on its own I do get results.. I couldn't find any documentation for DBpedia's Keyword search service, only this: http://dbpedia.org/lookup

I write the query like this:

http://lookup.dbpedia.org/api/search.asmx/KeywordSearch?QueryClass=place&QueryString=Egypt+pyramid

Is this the right way of doing it?

Upvotes: 4

Views: 1471

Answers (1)

EOG
EOG

Reputation: 21

Don't limit the results with place class, it seems doesn't work

http://lookup.dbpedia.org/api/search.asmx/KeywordSearch?QueryClass=&QueryString=Egyptian%20Pyramids

Upvotes: 2

Related Questions