Peter Ansell wrote:
----- Original Message ----
From: Kjetil Kjernsmo <kjetil.kjern...@computas.com>
To: virtuoso-users@lists.sourceforge.net
Sent: Monday, 16 February, 2009 6:01:17 PM
Subject: Re: [Virtuoso-users] constructing URI's from literals
On Monday 16 February 2009 06:23:59 Peter Ansell wrote:
Hi,
Is there anyway with SPARQL and Virtuoso to create a URI in a result when
it is stored as a literal in the triplestore?
I don't know if Virtuoso has something, but looking at
http://www.w3.org/TR/rdf-sparql-query/#FunctionMapping
it appears that you cannot cast from string to URI, only from URI to string.
I was hoping that wasn't the only case and that there was a virtuoso extension
to allow people to do the reverse if it is reasonable. The resulting URI would
only be used in the output, ie, not in a further graph match, so it doesn't
sound technically unfeasible from a naive viewpoint.
Peter,
I think Ivan's example covers the output scenario (i.e, the last
CONSTRUCT example).
For instance does the following demonstrate the end product of your use
case i.e., what you would like to achieve output wise e.g. a URI for a
specific CNAME without changing the actual original Bio2Rdf URIs in the
Quad Store, a kind of reverse re-write rule:
http://linkeddata.openlinksw.com:8891/geneid:1043922 (this URI doesn't
exist in the Quad store it is simply used as the mechanism for local
de-referencing of using the local data in the Quad store which has
bio2rdf cname URIs).
Kingsley
Cheers,
Peter
Make Yahoo!7 your homepage and win a trip to the Quiksilver Pro. Find out
more
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
--
Regards,
Kingsley Idehen Weblog: http://www.openlinksw.com/blog/~kidehen
President & CEO
OpenLink Software Web: http://www.openlinksw.com