Open MichelSc opened 3 weeks ago
Thanks for your observation and with EYE v10.27.6 (2024-10-23)
we now have
$ cat ms1.ttl
@prefix : <http://example.org/#>.
:d a :D.
:d a :D.
:e a :E.
$ cat ms1.n3
@prefix list: <http://www.w3.org/2000/10/swap/list#>.
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix : <http://example.org/#>.
{
?d :op 1.
} <= {
?d a :D.
}.
{
?e :op 2.
} <= {
?e a :E.
}.
:let :myl (:d :e).
{
:let :myl ?l.
( ?v { ?l list:member ?e. ?e :op ?v} ?vs ) log:collectAllIn _:x.
} => {
:result :is ?vs.
}.
$ eye --quiet --nope --turtle ms1.ttl ms1.n3 --pass-only-new
@prefix ns1: <http://example.org/#>.
ns1:result ns1:is (1 2).
Successfully tested with 10.27.6
Thank you
I use eye version
I have a ttl file with my data and model (2 instances, 2 classes)
Note the repetition of statement
:d rdf:type :D
I associate a number to instances according to their type:
I want to map a list of instances to their associated number:
I get the result
Note the repetition of
1
: NOK. I expect to receive(1 2)
.If I remove the repetition of statement
:d rdf:type :D
, I get the expected result.If I put my data and model in the n3 file, I get the expected result.