You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in openphacts/ops-search#14 there is a need for a new API call, say /removeDuplicates that takes a list of URIs, then removes any duplicates - making the first one listed survive.
A URI X is only a duplicate of Y if X==Y both ways with the given lens.
This is needed for ops-search, and can wait until after Open PHACTS 2.0.
The text was updated successfully, but these errors were encountered:
If there are any lens which use one way justifications but not the inverse (IE partial one way lens) the simplest approach may be to create a sub lens which only has the justifications that are symmetric or where the lens also includes the inverse justification.
So for example if the lens includes the justifications "is_stereoundefined_parent_of then" the sub lens would only include that if the lens also included "has_stereoundefined_parent."
The IMS know which justifications have inverses (and what the inverse is) and which are symmetric as it needed this to load the linksets in both directions.
So the sub lens could be automatically created at startup time.
Then this test can just test one way using the sub lens with the knowledge the other way applies too.
Now that you are working just one way you map the first URI - remove any mapping from the list and then check the next remaining one.
As discussed in openphacts/ops-search#14 there is a need for a new API call, say
/removeDuplicates
that takes a list of URIs, then removes any duplicates - making the first one listed survive.A URI X is only a duplicate of Y if X==Y both ways with the given lens.
This is needed for ops-search, and can wait until after Open PHACTS 2.0.
The text was updated successfully, but these errors were encountered: