i have stored an ontology in a repository.. from that ontology , i want to extract concepts related to user query . Then i want to provide such concepts as suggestions to the initial query for effective search.. how can i achieve it? if u have any idea, please share it..
asked 11 Dec '12, 03:14
One simple kind of query suggestion is the completion of names for concepts.
If you can create (1) a list of concept names, and (2) subjective importance scores for concepts, then you can can implement a simple form of query completion by writing a SPARQL query like
where ?gravity is higher for things that are more commonly thought about than for things less commonly thought about.
Since you want these queries to pop off people's fingertips you may want to store the names and scores in a specialized database such as Cleo, an open source product from LinkedIn aimed at solving this exact problem.
Now you want "Shake" to turn up "William Shakespeare" and there are various options for that. One of them is to expand out your names before they go into the database so "Shakespeare, William" is represented. Another one is to use something closer to a full-text algorithm that picks up "Shake" as short for "Shakespeare" in the second word. Cleo can do this and Lucene provides the tools to do things like this.
answered 13 Dec '12, 12:14