-
Notifications
You must be signed in to change notification settings - Fork 4
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
set rules #11
Comments
Hi @DionysiaV ! I'm not super familiar with the Hermit reasoner, but in reasonable all of the rules are hardcoded into the binary (see this terribly long method) |
Hi @gtfierro... Well maybe I should explain to you what I want to do, cause I am not sure that I completely understand this terribly long method :)... So, I want to create a test, in which I can access a sub-class. And then if this sub-class exists then I can call a function or print something.. What do you think? I would also like to ask you one more thing... I can only load .n3 files?? And how can I generate .n3 files? Thankssss |
N-triples (n3) is one of the common serialization formats for RDF graphs; you should be able to change the If I understand your intended task, then could you not run the existing reasoner and then query the resulting graph for the subclass or instances of the subclass? Or do you want the reasoner to execute custom logic when certain conditions are met during the evaluation process? |
Hello again,
What do you think?? |
If you use the Python bindings then you can use RDFlib to load a graph from whatever import format you want and then provide it to the reasoner. If you are running reasonable as a Rust library then you may want to look at this method I think it would be somewhat complex to execute custom logic during the evaluation process. If you can avoid doing so, I would recommend it. During the evaluation process there may be certain conditions that will become true later that will invalidate your logic. For example, an instance may be inferred to be members of two disjoint classes --- at an intermediate stage of evaluation, you may believe it is only an instance of one of those classes. As long as your conditions are monotonic, then you should be ok. However, there is no "easy" way to add these custom hooks other than editing the large method I linked above. |
Hello, could I ask you if it is possible to set some rules and according to these rules the reasonable reasoner can decide stuff? Like the hermit reasoner??
The text was updated successfully, but these errors were encountered: