Hi Jason,

Passing a Virtuoso Sponger pragma directive in you query to force the 
invocation of the sponger RDF extraction services to extract data from the 
graph URI should work as indicated below:

SQL> sparql select count(*) from <http://purl.oclc.org/NET/ssnx/ssn> where { ?s 
?p ?o. };
callret-0
INTEGER
_______________________________________________________________________________

0

1 Rows. -- 178 msec.
SQL> sparql DEFINE input:grab-all "yes" select count(*) from 
<http://purl.oclc.org/NET/ssnx/ssn> where { ?s ?p ?o. };
callret-0
VARCHAR
_______________________________________________________________________________

767

1 Rows. -- 2073 msec.

SQL>

Then the data is in the Virtuoso Quad Store and can be queried directly/locally:

SQL> sparql select count(*) from <http://purl.oclc.org/NET/ssnx/ssn> where { ?s 
?p ?o. };
callret-0
INTEGER
_______________________________________________________________________________

767

1 Rows. -- 167 msec.
SQL>

See the following link for more information on the sponger directives and 
Virtuoso Sponger service, which not requires the installation of the Virtuoso 
cartridges VAD:

        
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSpongerLinkedDataHooksIntoSPARQL
        http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSponger

Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc.      //              http://www.openlinksw.com/
Weblog   -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter  -- http://twitter.com/OpenLink
Google+  -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers

On 20 Jan 2014, at 16:15, Joshua TAYLOR <joshuaaa...@gmail.com> wrote:

> I'm not much of a Virtuoso user, but I do see that there's a similar
> URL that might work better.  What happens if you use the following
> (note the .owl at the end)?
> 
> from <http://www.w3.org/2005/Incubator/ssn/ssnx/ssn.owl>
> 
> On Mon, Jan 20, 2014 at 6:19 AM, Jason Mai <trash...@gmail.com> wrote:
>> Dear all,
>> 
>> I'd like to know if it's possible to do sparql query from a rdf dataset as
>> described in
>> http://www.w3.org/TR/rdf-sparql-query/#specDataset
>> 
>> I tried it in open-sourced openlink virtuoso sparql endpoint with this
>> query:
>> 
>> select *
>> from <http://purl.oclc.org/NET/ssnx/ssn>
>> where {
>>  ?s ?p ?o.
>> }
>> 
>> The result came out empty.
>> I tried and can get correct result from Jena-based endpoint, however I'd
>> like to do it with virtuoso for most our data are stored there.
>> Could somebody please help me?
>> 
>> Bests,
>> Mai
>> 
>> ------------------------------------------------------------------------------
>> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
>> Learn Why More Businesses Are Choosing CenturyLink Cloud For
>> Critical Workloads, Development Environments & Everything In Between.
>> Get a Quote or Start a Free Trial Today.
>> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Virtuoso-users mailing list
>> Virtuoso-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>> 
> 
> 
> 
> -- 
> Joshua Taylor, http://www.cs.rpi.edu/~tayloj/
> 
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today. 
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to