-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No output from log:callWithOptional or log:bound #82
Comments
@william-vw would it be possible to work with the latest eye-js that is https://eyereasoner.github.io/eye-js/latest/index.js instead of https://eyereasoner.github.io/eye-js/3/latest/index.js ? |
Oh, the UI is using an old version? That's a red herring apparently We are still having issues with the JS lib, but as it turns out, only when passing in quads: When the input is an n3 string, the output is as expected: https://runkit.com/embed/aywnzamumxq0 Problem with |
AHA, got it. Here's what happens. When we pass in parsed quads, they get serialised by the JS in a different order {
?type <http://www.w3.org/2000/10/swap/log#bound> false .
{
?object <http://example.com/Title> ?title .
}
<http://www.w3.org/2000/10/swap/log#callWithOptional> {
?title <http://example.com/Type> ?type .
} .
} => {
?object <http://example.com/TitleWithoutType> ?title .
} .
<http://example.com/object1> <http://example.com/Title> <http://example.com/title1> .
<http://example.com/title1> <http://example.com/Type> <http://example.com/type1> .
<http://example.com/object2> <http://example.com/Title> <http://example.com/title2> .
<http://example.com/object3> <http://example.com/Title> <http://example.com/title3> .
<http://example.com/title3> <http://example.com/Type> <http://example.com/type3> . Written this way, the output of eye is also wrong: https://n3-editor.herokuapp.com/n3/editor/s/LEtH5WsO |
You are right, this is indeed order dependent and we added a
and
|
So |
Yes indeed it is added in EYE v3.10.0 and PH2 v1.1.0 |
Ok - I switched the editor to https://eyereasoner.github.io/eye-js/latest/index.js |
Great and thanks a lot @william-vw ! |
I am slightly surprised by this. When parsed, triples have not order. I see how the graphs are chained together by Given rule like the original above, wouldn't it be possible to determine that the value of |
IMHO there is no general algorithm to do a reordering for any kind of premise triples. |
@josd - should this issue be transferred to https://github.com/eyereasoner/eye? |
The |
Based on a discussion, we created a rule similar to that below.
It works in eye but there is not output when switched to
eye-js
.https://n3-editor.herokuapp.com/n3/editor/s/QjFkNFED
The text was updated successfully, but these errors were encountered: