tmlab / tmql

Automatically exported from code.google.com/p/tmql
1 stars 0 forks source link

Docs - Insert example #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
<http://tmql4j.topicmapslab.de/#_insert_expressions>
gives the following example:

# add a reification to the first association played by each person topic
INSERT ''' { $p << players } ~ reifier '''
WHERE $p ISA person

I wonder how this example works, since you're assigning the same reifier (a 
constant) to multiple associations. 

Original issue reported on code.google.com by lars.he...@gmail.com on 30 Apr 2011 at 10:10

GoogleCodeExporter commented 9 years ago
You are right, this example only works if the query returns only one topic

Original comment by Sven.Kro...@googlemail.com on 12 May 2011 at 4:15