Examples of using ROWNUM to generate a URI

31 views
Skip to first unread message

ejaeg...@gmail.com

unread,
Mar 5, 2016, 10:58:41 PM3/5/16
to Tarql
I have tried to use the ?ROWNUM in a CONSTRUCT block and I get no results produced.  If I use a SELECT block instead, ROWNUM works well.

"SELECT ?ROWNUM ..." behaves as expected.

"PREFIX ex: <http://ex.org/a#>
PREFIX 
CONSTRUCT { ?ROWNUM a  ex:record; }
..."

produces no output records.


"PREFIX ex: <http://ex.org/a#>
PREFIX 
CONSTRUCT { ?timeEntry a  ex:record; }
WHERE {
  BIND (URI(CONCAT('http://ex.org/timedata/', ?ROWNUM)) AS ?timeEntry)
}"
produces no output records.

What am I doing wrong?



Richard Cyganiak

unread,
Mar 6, 2016, 2:26:52 AM3/6/16
to ejaeg...@gmail.com, Tarql
It looks like it should work. So I suspect some kind of bug.

Either this used to work and got broken in a recent update. Or it is something about your specific case that triggers the bug.

(The only thing I can think of is to try adding some “normal” column variables to the mapping. Maybe we're running into some case where the underlying SPARQL engine thinks it has nothing to do because it is not fully aware of the Tarql-added ROWNUM variable. This is complete speculation and probably not the actual problem.)

Could you file an issue in the GitHub repository with your exact report? And please add the specific SELECT query that did produce results for you, for comparison.

Thanks,
Richard
--
You received this message because you are subscribed to the Google Groups "Tarql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tarql+un...@googlegroups.com.
To post to this group, send email to ta...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tarql/6a447a53-efaf-4276-b198-876839fa553c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages