-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from INCATools/additional-sqlite-tests
additional sqlite tests
- Loading branch information
Showing
9 changed files
with
1,298 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from collections import Iterator | ||
from dataclasses import dataclass | ||
import oaklib.datamodels.obograph as og | ||
from oaklib.utilities.obograph_utils import index_graph_edges_by_subject, index_graph_edges_by_subject_object | ||
|
||
|
||
@dataclass | ||
class RelationGraphReasoner: | ||
ontology: og.Graph = None | ||
|
||
def get_non_redundant_edges(self) -> Iterator[og.Edge]: | ||
ont = self.ontology | ||
six = index_graph_edges_by_subject(ont.edges) | ||
soix = index_graph_edges_by_subject_object(ont.edges) | ||
for e in ont.edges: | ||
yield e |
Binary file not shown.
Oops, something went wrong.