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 each ID only once.
Access this procedure via SPARQL HTTP by using the ( select (
bif:foo() ) as ?id where { ?s ?p ?o } limit 1 ) trick.
Question:
Any suggestions?
- for a better way of generating uniques
- for a better way of accessing the procedure from SPARQL
?
Also. I understand that blank nodes provide similar functionality. But
how can I access the "last insert id"?
Regards,
A
--
Aldo Bucchi
@aldonline
skype:aldo.bucchi
http://aldobucchi.com/