Hello,
In my network nodes attributes I have five fields (D1 to D5) which contain application domains. Since nodes may have up to five distinct applications domains at a time (Health and Research, for example) I am not able to filter nodes which are tagged "health" since "health" may be stored in any D1 to D5 fields.
The UNION and INTERSECTION operators do not match my needs and I am looking for an "OR" operator, something like:
D1="Health" OR D2="Health" OR... and so on
Is there a way to do this complex query ?
Thanks for your help
Olivier
OR Filtering
Re: OR Filtering
Hi,
I always have pains with filters too, so my way would be to find a hack around:
- back in the app that generates your network, create an extra attribute D0, in which you will collate all attributes D1-D5 of the node, as comma-separated list for instance.
Then in the filters, choose a filter on attribute on D0. To filter "Health", type .*Health.* making sure that the box for regex is ticked. That should work.
Best,
Clement
PS: if you can post an (anonymized) sample of your file, I'd be curious to give it a try the normal way with filters, though.
I always have pains with filters too, so my way would be to find a hack around:
- back in the app that generates your network, create an extra attribute D0, in which you will collate all attributes D1-D5 of the node, as comma-separated list for instance.
Then in the filters, choose a filter on attribute on D0. To filter "Health", type .*Health.* making sure that the box for regex is ticked. That should work.
Best,
Clement
PS: if you can post an (anonymized) sample of your file, I'd be curious to give it a try the normal way with filters, though.
-
- Posts:8
- Joined:16 Nov 2012 12:48 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: OR Filtering
Thanks Clement,
I will try that way.
I am sending a test file
Olivier
I will try that way.
I am sending a test file
Olivier
Re: OR Filtering
For the visitors who see this thread later: I might be wrong but I believe that the UNION filters do not work indeed? (please correct me if you can make them work!).
Follow this issue on Github for its resolution:
https://github.com/gephi/gephi/issues/809
Best,
Clement
Follow this issue on Github for its resolution:
https://github.com/gephi/gephi/issues/809
Best,
Clement
-
- Posts:1
- Joined:17 Sep 2013 18:39
- Location:United States [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: OR Filtering
I'm on Github, too, but I my Union filter is having similar issues. Also, my Intersection filter doesn't work the way it should. I have two integer attributes, and I wanted to filter where both ==1. If I put the two subfilters under INTERSECTION as the two attributes, no dice. But if I nest the second attribute within the first attribute as a subfilter, then I get what I'm looking for.