Re: [Virtuoso-users] Generating a unique ID via SPARQL HTTP

2010-11-22 Thread Rumi Tsekova
Hi Aldo, Here are some links of calling (bif) functions in SPARQL queries: 1. http://virtuoso.openlinksw.com/presentations/SPARQL_Tutorials/SPARQL_Tutorials_Part_2/SPARQL_Tutorials_Part_2.html 2. http://docs.openlinksw.com/virtuoso/rdfsparql.html#rdfsqlfromsparql Best Regards, Rumi Thanks

Re: [Virtuoso-users] Generating a unique ID via SPARQL HTTP

2010-11-21 Thread Aldo Bucchi
Thanks Ivan, 2010/11/19 Ivan Mikhailov : > Hello Aldo, > > I'd suggest to use SQL BIFs sequence_next() and sequence_set(). Like any > other functions without INOUT or OUT parameters, they can be called from > SPARQL as bif:sequence_next() / bif:sequence_set() > > http://docs.openlinksw.com/virtuos

Re: [Virtuoso-users] Generating a unique ID via SPARQL HTTP

2010-11-19 Thread Ivan Mikhailov
Hello Aldo, I'd suggest to use SQL BIFs sequence_next() and sequence_set(). Like any other functions without INOUT or OUT parameters, they can be called from SPARQL as bif:sequence_next() / bif:sequence_set() http://docs.openlinksw.com/virtuoso/fn_sequence_next.html http://docs.openlinksw.com/vir

[Virtuoso-users] Generating a unique ID via SPARQL HTTP

2010-11-19 Thread Aldo Bucchi
Hi, Problem * I need to generate unique IDs from within Virtuoso ( unique only to a given Virtuoso instance/cluster would suffice ) * I need to do this via SPARQL HTTP prior to issuing a SPARQL insert Current solution: Create a table and procedure that keeps track of an incremental ID and returns