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
robot extract has a subset method described here, which is most useful. In the terminology of owltools, this method implements "gap spanning". owltools had an additional option when making subsets, "gap filling". This would add all intermediate nodes and edges between terms in the subset.
new sibling --method option called something like intermediate-filled-subset
new option on extract that is only applicable for subset called something like --include-intermediate-nodes
(we should name this carefully, the owltools terminology of gap filling/spanning is not great)
unlike the default subset approach which connects subset terms via entailed edges, this would traverse all intermediate nodes via direct edges.
Algorithm:
SubsetWithIntermediates(O,S,P):
S' = S
for each t in O-S:
if there exists t1, t2 in S such that <t1 P t>, <t P t2>:
add t to S'
O' = {}
for e in RGdirect(O):
if e.s in S' and s.o in S' then add e to O`
Here <s P o> means that there exists a relation graph direct or indirect edge <s p o> such that p is in P or p is rdfs:subClassOf
The text was updated successfully, but these errors were encountered:
I feel very uncomfortable committing to implementing this.. @dosumis could you we put this on @hkir-dev plate perhaps? I have just assigned 12 robot issues to myself, wanting to do a push.
I am creating this issue as a continuation of @gouttegd's comment here:
robot
extract
has a subset method described here, which is most useful. In the terminology of owltools, this method implements "gap spanning". owltools had an additional option when making subsets, "gap filling". This would add all intermediate nodes and edges between terms in the subset.this can be illustrated using the test subset ontology
let's make a subset:
cat > SUBSET ONT:1 ONT:4
we can then look at the difference between the two commands:
gap-spanned.obo:
note that the part-of between 4 and 1 is not asserted, it is entailed
gap-filled:
Proposal:
either a
--method
option called something likeintermediate-filled-subset
extract
that is only applicable forsubset
called something like--include-intermediate-nodes
(we should name this carefully, the owltools terminology of gap filling/spanning is not great)
unlike the default subset approach which connects subset terms via entailed edges, this would traverse all intermediate nodes via direct edges.
Algorithm:
Here
<s P o>
means that there exists a relation graph direct or indirect edge<s p o>
such thatp
is inP
orp
isrdfs:subClassOf
The text was updated successfully, but these errors were encountered: