On 2/5/11 8:41 PM, l Yu wrote:
I did that too - otherwise, it is too difficult to hand-make the long
query string.
I think the problem is on the lpath, I search the document, never
really understand exactly what value should I have there?
lpath is the Logical Path.
Did you use the generation to make a simple re-write rule that works?
Once you have that you can compare that with what you generated by hand.
Links:
1.
http://www.slideshare.net/rumito/deploying-rdf-linked-data-via-virtuoso-universal-server-329375
-- re-writes rules presentation and tutorial
2.
http://www.openlinksw.com/dataspace/dav/wiki/Main/VirtRDFViewsInformixStoresDemoScript
-- Informix Linked Data Views Script
3.
http://www.openlinksw.com/dataspace/dav/wiki/Main/VirtRDFViewsInformixStoresDemoLinks
- Live Links (down as of time of this mail but should be up later) .
Kingsley
B.DBA.VHOST_REMOVE(*lpath=>'/**oplweb'*);
DB.DBA.VHOST_DEFINE(*lpath=>'/**oplweb', ppath=>'/'*,
vsp_user=>'dba',is_dav=>0, opts=>vector('url_rewrite',
'product_rule_list'));
DB.DBA.URLREWRITE_CREATE_RULELIST('product_rule_list', 1,
vector('product_rule1'));
DB.DBA.URLREWRITE_CREATE_REGEX_RULE('product_rule1', 1, '(/[^#]*)',
vector ('path'),
0,'/sparql?query=define%20input%3Astorage%20%3Chttp%3A%2F%2Flocalhost%3A8890%2Frdfv_demo%2Fquad_storage%2Fdefault%3E%0D%0Aselect%20%2A%20%0D%0Afrom%20%3Chttp%3A%2F%2Flocalhost%3A8890%2Foplweb%2Fproduct%3E%0D%0Awhere%20%7B%3Chttp%3A%2F%2Flocalhost%3A8890*$U1*%3E%20%3Fx%20%3Fy%20%7D&format=*$accept*',vector('path','*accept*'),NULL,
'(text/rdf.n3)|(application/rdf.xml)', 0, NULL, NULL );
On Sat, Feb 5, 2011 at 8:37 PM, Kingsley Idehen
<kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
On 2/5/11 8:32 PM, l Yu wrote:
I did. But I did not like it. I want to be flexible enough to
craft it myself. it is a very simple rule indeed. just wanted to
make sure at least I can manually do it...
Yes, but use it to generate a basic rule, see that it works, the
just edit the script it generated etc..
Kingsley
On Sat, Feb 5, 2011 at 7:58 PM, Hugh Williams
<hwilli...@openlinksw.com <mailto:hwilli...@openlinksw.com>> wrote:
Hi Yu,
Have you looked the Virtuoso Conductor UI for automatic
generation of RDF VIews and Linked Data deployment rules as
detailed at:
http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSSQL2RDF#Automated%20Generation%20of%20RDF%20Views%20over%20Relational%20Data%20Sources
This should simplify the
process for 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 6 Feb 2011, at 00:38, l Yu wrote:
Hi,
I have been trying working with Virtuoso server for a little
while, really like its powerful support to the Web of Linked
Data (or the Semantic Web). However, the documentation is
not easy to follow sometimes.
Anyway, I am trying the deployment part of the Linked Data,
and my URL re-writing rule just refuses to work. I have been
trying this for days, don't understand what is wrong.
Here is my simple rule:
DB.DBA.VHOST_REMOVE(lpath=>'/oplweb');
DB.DBA.VHOST_DEFINE(lpath=>'/oplweb', ppath=>'/',
vsp_user=>'dba',is_dav=>0, opts=>vector('url_rewrite',
'product_rule_list'));
DB.DBA.URLREWRITE_CREATE_RULELIST('product_rule_list', 1,
vector('product_rule1'));
DB.DBA.URLREWRITE_CREATE_REGEX_RULE('product_rule1', 1,
'(/[^#]*)', vector ('path'),
0,'/sparql?query=define%20input%3Astorage%20%3Chttp%3A%2F%2Flocalhost%3A8890%2Frdfv_demo%2Fquad_storage%2Fdefault%3E%0D%0Aselect%20%2A%20%0D%0Afrom%20%3Chttp%3A%2F%2Flocalhost%3A8890%2Foplweb%2Fproduct%3E%0D%0Awhere%20%7B%3Chttp%3A%2F%2Flocalhost%3A8890*$U1*%3E%20%3Fx%20%3Fy%20%7D&format=*$accept*',vector('path','*accept*'),NULL,
'(text/rdf.n3)|(application/rdf.xml)', 0, NULL, NULL );
The long ugly part in the above rule represents this query:
define input:storage
<http://localhost:8890/rdfv_demo/quad_storage/default>
select *
from <http://localhost:8890/oplweb/product>
where {<http://localhost:8890 <http://localhost:8890/>*$U1*>
?x ?y }
When my RDF view is generated, it has a graph name called
<http://localhost:8890/oplweb/product>, and the URI of one
of the instances is something like this:
http://localhost:8890/rdfv_demo/testdata/products/odbc-informix-ee.
When I try to de-reference this URL,
http://localhost:8890/rdfv_demo/testdata/products/odbc-informix-ee
It just does not work. Also, the following test fails as well:
curl -I -H "Accept: application/rdf+xml"
http://localhost:8890/rdfv_demo/testdata/products/odbc-informix-ee
Any help will be greatly appreciated!!
Thanks,
Yu
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to
access resources
and provide services. The best practices for maximizing a
physical server's
connectivity to a physical network are well understood - see
how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
<mailto:Virtuoso-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
<mailto:Virtuoso-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
--
Regards,
Kingsley Idehen
President& CEO
OpenLink Software
Web:http://www.openlinksw.com
Weblog: http://www.openlinksw.com/blog/~kidehen
<http://www.openlinksw.com/blog/%7Ekidehen> Twitter/Identi.ca:
kidehen
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access
resources
and provide services. The best practices for maximizing a physical
server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
<mailto:Virtuoso-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
--
Regards,
Kingsley Idehen
President& CEO
OpenLink Software
Web: http://www.openlinksw.com
Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter/Identi.ca: kidehen