I want to create an ordered list using rdf:first and rdf:rest from an array (the number of array elements is random). It works in Matey but doesn't work with the latest YARRRML parser.
The above snippet show produces the following RDF (which is wrong: the blank nodes for the objects are wrong, for the first triple, it should be rdf:rest _:1):
_:0 rdf:first <https://example.com/policies/1035993210/permissions/2049408449/logical_constraints/xone/1658331773>. # There is no reference to the next triple, i.e: rdf:rest _:1
_:1 rdf:first <https://example.com/policies/1035993210/permissions/2049408449/logical_constraints/xone/3045330922>;
rdf:rest rdf:nil .
But with Matey, it produces a correct RDF:
_:b34_0 rdf:first <https://example.com/policies/1035993210/permissions/2049408449/logical_constraints/xone/1658331773> ;
rdf:rest _:b34_1 . # Here, this is a correct reference to the next triple.
_:b34_1 rdf:first <https://example.com/policies/1035993210/permissions/2049408449/logical_constraints/xone/3045330922> ;
rdf:rest rdf:nil.
Please do note that removing the condition (in local) will output the same blank node as the subject, i.e: _:0 rdf:rest _:0 which is also wrong. But it works correcly in Matey.
Issue type: :bug: Bug
Description
I want to create an ordered list using
rdf:first
andrdf:rest
from an array (the number of array elements is random). It works in Matey but doesn't work with the latest YARRRML parser.Steps
The above snippet show produces the following RDF (which is wrong: the blank nodes for the objects are wrong, for the first triple, it should be
rdf:rest _:1
):But with Matey, it produces a correct RDF:
Please do note that removing the condition (in local) will output the same blank node as the subject, i.e:
_:0 rdf:rest _:0
which is also wrong. But it works correcly in Matey.Environment
Matey and latest yarrrml-parser 1.5.4