Hello, Piero Molino wrote: > Hi everyone, > > my name is Piero Molino and I'm a student form the University of Bary, > Computer Science department. > For my degree thesis I'm working on an ontology based retrieving > algorithm and, after seeking for while, i decided to use DBpedia as my > multi-domain ontology. Anyway I'm at the real beginning with SPARQL > (links to books/tutorials/anything usefull are realy really welcome) > and probably what now seems to me to be a problem really isn't: while > I figured out how my algorithm would make inference over DBpedia, I'm > lacking of the first step (wich isn't really what my thesis is about, > so i can reuse someone else approach to it). Basically i have a list > of words and i have to map each of them to a DBpedia resource. > I trying to figure out how i can do it, i thought i could start taking > a look at the free text search from the DBpedia website > (http://wiki.dbpedia.org/OnlineAccess#h28-8 > ) but for each example query I get a javascript+html response and an > empty result. Isn't it working or it's me i can't undestand the > results in the right way?
If you want to get from a string to a set of URIs, you can use the DBpedia Lookup service: http://lookup.dbpedia.org/ The API doc is here: http://lookup.dbpedia.org/api/search.asmx You could also query the SPARQL endpoint directly using the build in bif:contains function of Virtuoso. > Anyway simple text search wouldn't be enought because of > disambiguation issues, so i thought i can use Gabrlovich's ESA > (http://www.srcco.de/v/wikipedia-esa > ) to retrieve a wikipedia page for each word in the list and then get > the DBpedia resource relative to the wikipedia page. Because of my > actual lack of expeience over SPARQL i don't know if there is a > simplier way to achieve the same result. Actually, it is very simple to get from Wikipedia URLs to DBpedia URIs by using the lookup service above or modifying the URLs (which is after all what we do when extracting data from Wikipedia: we use http://dbpedia.org/resource/$wikipedia_article_identifier with %2F replaced by "/" and %3A replaced by ":"). > I would really appreciate if someone could help me both in extendind > my SPARQL knowledge and in finding a better and simplier solution for > the problem i'm trying to solve. For general advice on SPARQL documentation, tutorials etc., this probably isn't the right group (please ask at the W3C Semantic Web mailing list, but make sure to search the web first). Kind regards, Jens -- Dipl. Inf. Jens Lehmann Department of Computer Science, University of Leipzig Homepage: http://www.jens-lehmann.org GPG Key: http://jens-lehmann.org/jens_lehmann.asc ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Dbpedia-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
