Hi all,

I've a problem executing a construct query over Virtuoso. I've tried to
execute a query that tries to create a statement whose subject is created
in the query. I want to create an URI in the query so I've searched it and
I've found that function iri(bif:concat("http://..",?var2)) is used for
this purpose.
http://answers.semanticweb.com/questions/12728/create-uri-in-a-sparql-construct-query
http://tech.groups.yahoo.com/group/jena-dev/message/44039

I've wrote a query like this :

*CONSTRUCT {*
*?mail <http://com.galaksiya.muse/event#will_send_to> ?user*
*} *
*WHERE { *
*SELECT (IRI(bif:concat(http://seagent.ege.edu.tr/,?user)) AS ?mail) <
http://com.galaksiya.muse/event#will_send_to> ?user.*
*{*
*?feedback <http://seagent.ege.edu.tr/feedback#time> ?time. *
*?feedback <http://seagent.ege.edu.tr/feedback#has_user> ?user. *
*}}*

But I've got an error like this :

Virtuoso 37000 Error SP030: SPARQL compiler, line 3: syntax error at
'SELECT' before '('
*SPARQL query:
define sql:big-data-const 0
#output-format:text/html
CONSTRUCT {?mail ** ?user} WHERE { SELECT
(IRI(bif:concat(http://seagent.ege.edu.tr/,?user)) AS ?mail) **
?user{?feedback ** ?time. ?feedback ** ?user.**}}*


I've realized that my triples are lost in the formatted query (see :
*CONSTRUCT {?mail ** ?user}*). Is there a problem with my query or a
problem with my virtuoso configuration?


Thanks in advance.

Zehra Gül ÇABUK
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to