Hi Nguyen,
You cannot store the RDFViews of relation data in the same store location as
RDF triples.
With the existing build you can use the following RDFView dump scripts to dump
the RDFViews to dataset triple files:
http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtDumpRDFViewGraphs
and then use the RDF dataset Bulk loader scripts to load the dumped RDFView
datasets into the RDF triples store:
http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtBulkRDFLoader
You can also download a snapshot archive from the following location with the
RDB2RDFtriggers feature enhancement from:
ftp://download.openlinksw.com/support/vos/virtuoso-opensource-6-20110105.tar.gz
and rebuild a new set of binaries. You can then use the Conductor RDFView
generation wizard to manually recreate the RDFViews and select the two check
boxes to materialize and sync the RDFViews with the Quad Store as detailed at:
http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtRdb2RDFViewsGeneration#Manual%20Linked%20Data%20Generation%20&%20Deployment%20using%20the%20Conductor%27s%20HTML-based%20wizard
or
http://demo.openlinksw.com/c/BCDKGE (short URL)
then you can perform the queries across the multiple graphs and inferencing
etc with the materialized triples of the RDFViews.
Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support
Twitter: http://twitter.com/OpenLink
On 8 Jan 2011, at 01:29, Nguyen Mau Quoc Hoan wrote:
> Thanks so much and you're right. I'm using open source 6.1. Is there any way
> to change the storage location that all triples will be stored so I can
> query. Depend on your answer,I have to use the commercial 6.2?
> Is there any way?How could I update my open source?
>
> On Fri, Jan 7, 2011 at 7:29 PM, Hugh Williams <[email protected]>
> wrote:
> Hi Nguyen,
>
> The issue is probably due to the fact your query is setting the input:storage
> to be that of the created RDFVIew which is a different storage location to
> the default location where actual triples are stored and thus cannot then
> access them.
>
> Assuming you are using the current open source 6.1 builds form source forge,
> you would need an updated snapshot, as the current internal builds have the
> ability to materialize RDFViews as triples and keep them in sync, which is
> already a feature of the commercial 6.2 builds as detailed at:
>
>
> http://docs.openlinksw.com/virtuoso/rdfperformancetuning.html#rdb2rdftriggers
>
> Let me know if you would like an updated open source build with this feature
> made available to you ?
>
> Best Regards
> Hugh Williams
> Professional Services
> OpenLink Software
> Web: http://www.openlinksw.com
> Support: http://support.openlinksw.com
> Forums: http://boards.openlinksw.com/support
> Twitter: http://twitter.com/OpenLink
>
> On 7 Jan 2011, at 06:13, Nguyen Mau Quoc Hoan wrote:
>
>> I've just created a simple RDF View by following the example in Virtuoso
>> document. Everything seemed fine when I queried in quad storage. Now I want
>> to query with multiple graph (the graph was created by RDF View and another
>> graph I've already created before) but there is no result return.I could not
>> find out the problem.My query is select some points that lie within certain
>> upper limits of latitude and longitude:
>>
>> define input:storage
>> <http://localhost:8890/sensor_demo/quad_storage/default>
>>
>> prefix sen: <http://localhost:8890/sensor_demo/schemas/Sensor#>
>> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
>> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
>> prefix pos: <http://www.w3.org/2003/01/geo/wgs84_pos#>
>>
>> select ?lat ?long
>> from named <http://shanghai.com#>
>> where{
>> #this query try to find the longitude and latitude of X point
>> with some conditions and there is a result if I query it alone.
>> ?s sen:sensor_lat ?x_lat;
>> sen:sensor_long ?x_long.
>> filter regex(?s,"19","i").
>>
>> # select some points in graph <http://shanghai.com#> satisfy
>> condition
>> graph ?src{
>> ?y pos:long ?long; pos:lat ?lat.
>> filter (?lat >= ?x_lat && ?long >= ?x_long).
>> }
>>
>> }
>>
>> Anyone help? Could we use Graph Named and quad storage together?
>> ------------------------------------------------------------------------------
>> Gaining the trust of online customers is vital for the success of any company
>> that requires sensitive data to be transmitted over the Web. Learn how to
>> best implement a security strategy that keeps consumers' information secure
>> and instills the confidence they need to proceed with transactions.
>> http://p.sf.net/sfu/oracle-sfdevnl
>> _______________________________________________
>> Virtuoso-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>
>
> ------------------------------------------------------------------------------
> Gaining the trust of online customers is vital for the success of any company
> that requires sensitive data to be transmitted over the Web. Learn how to
> best implement a security strategy that keeps consumers' information secure
> and instills the confidence they need to proceed with transactions.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Virtuoso-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users