[Mulgara-general] TQL: how to cast literal as URI

Dragisa Krsmanovic dkrsmanovic at plos.org
Tue Jul 28 15:56:19 UTC 2009


On Tue, 2009-07-28 at 01:18 -0700, Life is hard, and then you die wrote:
> On Mon, Jul 27, 2009 at 09:30:52AM -0700, Dragisa Krsmanovic wrote:
> > <info:doi/10.1371/123> <dc:creator>  'info:doi/10.1371/abc'
> > <info:doi/10.1371/abc> <foaf:name> 'John Doe'
> > 
> > If I have these two triplets how would I write the query to find creator
> > of <info:doi/10.1371/123> ? I need a way to cast a string to url.
> 
> I would argue that you need to change your data model. Storing uri's
> in literals and then expecting to be able to interpret them as actual
> uri's is a bad idea, both from a modelling perspective as well as from
> a query perspective (as Paul indicated in another email, even if
> Mulgara adds some form of support for this in TQL, it'll be slow and
> nasty).
> 

I agree. I don't know why the model was done like this in the first
place. 

But for now, and it seems in the future, it's impossible to do a simple
query like this. 

Cheers,
Dragisa



More information about the Mulgara-general mailing list