Open william-vw opened 3 years ago
Very well. Some N3 examples are linked from https://josd.github.io/eye/reasoning/#examples-and-test-cases
-- https://josd.github.io/ http://josd.github.io/
On Wed, Jun 9, 2021 at 4:05 PM William Van Woensel @.***> wrote:
I think it'd be quite useful to gather cool examples of N3 here in the Git repository.
I had added a directory called "dogfood" for this purpose but the files there aren't really self-contained.
There is now a folder called examples/ https://github.com/w3c/N3/tree/master/examples where I added some initial examples (gathered from my test cases).
Please, feel free to update.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/w3c/N3/issues/89, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABPHJE27U3XNNQ7KFRTCN3TR5YLLANCNFSM46MDVQYA .
I'm adding many examples and test cases in https://github.com/phochste/Notation3-By-Example . But not all are yet using standard built-ins.
@phochste thanks for this. I'm very curious about log:repeat :-) Could you elaborate? Does ?I
refer to the iteration count? Are there any "real-world" use cases you could share?
@william-vw I added a more elaborate example in https://github.com/phochste/Notation3-By-Example/blob/main/log/repeat.n3
The log:repeat I need for some 'for loops' I need to port some existing code into Notation3 . E.g. to break a list down into parts of a specific size.
The ?I
is indeed the iteration count starting from 0.
I think it'd be quite useful to gather cool examples of N3 here in the Git repository.
I had added a directory called "dogfood" for this purpose but the files there aren't really self-contained.
There is now a folder called examples/ where I added some initial examples (gathered from my test cases).
Please, feel free to update.