Skip to content
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

Question - Interpretation of != in discovered rules #31

Open
kliegr opened this issue Jul 6, 2020 · 1 comment
Open

Question - Interpretation of != in discovered rules #31

kliegr opened this issue Jul 6, 2020 · 1 comment

Comments

@kliegr
Copy link

kliegr commented Jul 6, 2020

When mining with constants, I sometimes get rules that contain "!=" as in

?e  <https://w3id.org/biolink/vocab/interacts_with>  ?b  ?q  <https://w3id.org/biolink/vocab/interacts_with>  ?b  ?e  <https://w3id.org/biolink/vocab/interacts_with>  ?l  ?q  <https://w3id.org/biolink/vocab/interacts_with>  ?l  ?e!=<http://ensembl.org/id/Cx> ?q!=<http://ensembl.org/id/Cx>  => <http://ensembl.org/id/Cx>  <https://w3id.org/biolink/vocab/interacts_with>  ?b	0.2	0.5	0.5	3	6	6	-2

Do I interpret this correctly as non-equality, i.e., variable q must not be bound to "http://ensembl.org/id/Cx"? Is this feature unique to AMIE3? Is it possible to control whether rules containing this pattern will be output?

@lajus
Copy link
Contributor

lajus commented Jul 6, 2020

Hi,

This is non-equality.

If you have the atom <interacts_with> ?b and AMIE adds an atom ?q <interacts_with> ?b then it will also add the atom ?q != . The variable ?q is existential as we only need one instantiation of it per instantiation of ?b to have a match. The case ?q == is not interesting.

The InjectiveMappingsAssistant I told you about in the other thread is doing something similar, adding != atoms behind the scenes.

If you want to remove the atom, you will have to implement your own mining assistant.

Cheers,
Jonathan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants