On 8/1/17 2:07 PM, Paul Houle wrote:
> Hello,  I am having trouble doing queries with named graphs on the
> dbpedia public SPARQL endpoint.   I can see a large number of graphs
> if I write
>
> SELECT DISTINCT ?g { GRAPH ?g {?s ?p ?o .}}
>
> ---
>
> g
> http://www.openlinksw.com/schemas/virtrdf#
> http://www.w3.org/ns/ldp#
> http://dbpedia.org/sparql
> http://dbpedia.org/DAV/
> http://www.w3.org/2002/07/owl#
> file:wikidata_to_schema_mappings.ttl
> http://dbpedia.org/schema/property_rules#
> dbprdf-label <http://dbpedia.org/dbprdf-label>
> http://dbpedia.org/resource/classes#
> http://www.ontologyportal.org/SUMO#
> http://www.ontologyportal.org/WordNet#
> b3sonto <http://dbpedia.org/b3sonto>
> b3sifp <http://dbpedia.org/b3sifp>
> urn:rules.skos
> http://www.openlinksw.com/schemas/oplweb#
> virtrdf-label <http://dbpedia.org/virtrdf-label>
> facets <http://dbpedia.org/facets>
> urn:virtuoso:val:acl:schema
> http://www.openlinksw.com/virtpivot/icons
> http://www.openlinksw.com/schemas/virtpivot
> virtpivot-rules <http://dbpedia.org/virtpivot-rules>
> http://www.openlinksw.com/schemas/virtcxml#
> virtpivot-icon-test <http://dbpedia.org/virtpivot-icon-test>
> http://pivot_test_data/campsites
> http://pivot_test_data/ski_resorts
> http://www.wikidata.org <http://www.wikidata.org/>
> https://github.com/structureddynamics/UMBEL/External%20Ontologies/dbpedia-ontology.n3
>
> http://dbpedia.org <http://dbpedia.org/>
> http://people.aifb.kit.edu/ath/#DBpedia_PageRank
> http://dbpedia.org/page_links
> http://dbpedia.org/void/
> http://dbpedia.org/virt_curi
>
>
> ----
>
> If I try to look at a typical graph,   say
>
> SELECT (COUNT(*) AS ?cnt) {GRAPH
> <http://dbpedia.org/resource/classes#> {?s ?p ?o .}}
>
> Virtuoso 37000 Error SP031: SPARQL compiler: No one quad map pattern is 
> suitable for GRAPH <http://dbpedia.org/resource/classes#> { ?s ?p ?o } triple 
> at line 3
> I took a look at
> https://github.com/openlink/virtuoso-opensource/blob/64e20840b0db753d58f9f679eaefa1ad1e5b73fe/libsrc/Wi/sparql2sql.c#L5019
> and it still is not clear to me what is going on. Any ideas?

Paul,

Lookup:
http://dbpedia.org/sparql?default-graph-uri=&query=%0D%0ASELECT+%28COUNT%28*%29+AS+%3Fcnt%29+%7BGRAPH+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2Fclasses%23%3E+%7B%3Fs+%3Fp+%3Fo+.%7D%7D&format=text%2Fhtml&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&debug=on

Source:
http://dbpedia.org/sparql?default-graph-uri=&qtxt=%0D%0ASELECT+%28COUNT%28*%29+AS+%3Fcnt%29+%7BGRAPH+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2Fclasses%23%3E+%7B%3Fs+%3Fp+%3Fo+.%7D%7D&format=text%2Fhtml&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&debug=on

Issue:

UI quirk whereby <http://dbpedia.org> is set as the default named graph.
Just remove that and the issue goes away.


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


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

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

Reply via email to