Hi Aldo,

Please take a look at http://docs.openlinksw.com/virtuoso/rdfsparql.html#rdfsqlfromsparql

and the examples given in this doc section.


Best Regards,
Rumi


----- Original Message ----- From: "Aldo Bucchi" <[email protected]>
To: "Virtuoso Users" <[email protected]>
Sent: Thursday, June 17, 2010 10:57 PM
Subject: [Virtuoso-users] Magic Predicates in Virtuoso?


Hi,

If I have the following procedure

create procedure fullname( in uri varchar ) returns varchar {
 for ( sparql select bif:concat( ?name, ' ', ?lastname ) as ?fullname
       where { ?:uri foaf:name ?name ; foaf:lastName ?lastname } )
 do { return fullname ; }
};

I know I can do the following:

sparql select  (sql:fullname( ?person )) as ?fullname  where { ...  }

But, any plans to implement the following way of calling the function?

sparql select * where { <urn:someperson> sql:fullname ?fullname  }

Regards,
A

--
Aldo Bucchi
@aldonline
skype:aldo.bucchi
http://aldobucchi.com/

PRIVILEGED AND CONFIDENTIAL INFORMATION
This message is only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If
you are not the intended recipient, please do not distribute or copy this
communication, by e-mail or otherwise. Instead, please notify us immediately by
return e-mail.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Reply via email to