On 12/2/17 12:04 PM, Tim Finin wrote: > I'm puzzled by getting different results for a query against > http://dbpedia.org/sparql sent from Virtuoso query editor > (http://dbpedia.org/sparql) or from yasgui (http://yasgui.org/) or a > Python program. > > PREFIX dbo: <http://dbpedia.org/ontology/> > SELECT * WHERE {?S dbo:wikiPageWikiLink ?O} > LIMIT 10 > > Sending it via the first produces no answers but via yasgui or an http > request produces many. Moreover, the query > > PREFIX dbr: <http://dbpedia.org/resource/> > PREFIX dbo: <http://dbpedia.org/ontology/> > SELECT * WHERE {dbr:Alan_Turing dbo:wikiPageWikiLink ?P. > ?P a dbo:Person} > > via yasgui or http includes links that I cannot find on Wikipedia and > seem implausible (e.g., to Walt_Whitman). I do find those links in > the EN Page Links file. > > I'm guessing that the Page Link data is bad and is being suppressed by > the native Virtuoso query interface. > > Tim
Hi Tim, Nothing to guess. Virtuoso is a Quad Store, so need to bring all named graphs into scope, at first blush: Query Result: http://dbpedia.org/sparql?default-graph-uri=&query=%0D%0A++PREFIX+dbo%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E%0D%0A++SELECT+*+WHERE+%7Bgraph+%3Fg+%7B%3Fs+dbo%3AwikiPageWikiLink+%3Fs%7D%7D++%0D%0A++LIMIT+10&format=text%2Fhtml&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&run=+Run+Query+ Query Definition: http://dbpedia.org/sparql?default-graph-uri=&qtxt=%0D%0A++PREFIX+dbo%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E%0D%0A++SELECT+*+WHERE+%7Bgraph+%3Fg+%7B%3Fs+dbo%3AwikiPageWikiLink+%3Fs%7D%7D++%0D%0A++LIMIT+10&format=text%2Fhtml&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&run=+Run+Query+ -- Regards, Kingsley Idehen Founder & CEO OpenLink Software (Home Page: http://www.openlinksw.com) Weblogs (Blogs): Legacy Blog: http://www.openlinksw.com/blog/~kidehen/ Blogspot Blog: http://kidehen.blogspot.com Medium Blog: https://medium.com/@kidehen Profile Pages: Pinterest: https://www.pinterest.com/kidehen/ Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen Twitter: https://twitter.com/kidehen Google+: https://plus.google.com/+KingsleyIdehen/about LinkedIn: http://www.linkedin.com/in/kidehen Web Identities (WebID): Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i : http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ DBpedia-discussion mailing list DBpedia-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion