Skip to content

Commit

Permalink
Dev version bump (#202)
Browse files Browse the repository at this point in the history
* Release/2.8.0 (#198)

* Bumping version

* support for extracting dug elements from graph (#197)

* support for extracting dug elements from graph

* adding flag for enabling dug element extraction from graph

* adding new config for node_to dug element parsing

* adding more parameters to crawler to able configuration to element extraction logic

* add tests

* add tests for crawler

Co-authored-by: Yaphetkg <[email protected]>

* Update _version.py

* Update _version.py

updating version for final push to master

* Update factory.py

Adding more comments

Co-authored-by: Carl Schreep <[email protected]>
Co-authored-by: Yaphetkg <[email protected]>

* Release/v2.9.0 (#201)

* Bumping version

* support for extracting dug elements from graph (#197)

* support for extracting dug elements from graph

* adding flag for enabling dug element extraction from graph

* adding new config for node_to dug element parsing

* adding more parameters to crawler to able configuration to element extraction logic

* add tests

* add tests for crawler

Co-authored-by: Yaphetkg <[email protected]>

* Display es scores (#199)

* Include ES scores in variable results

* Round ES score to 6

* Update _version.py (#200)

* Update _version.py

Co-authored-by: Carl Schreep <[email protected]>
Co-authored-by: Yaphetkg <[email protected]>
Co-authored-by: Ginnie Hench <[email protected]>

Co-authored-by: Carl Schreep <[email protected]>
Co-authored-by: Yaphetkg <[email protected]>
Co-authored-by: Ginnie Hench <[email protected]>
  • Loading branch information
4 people authored Mar 29, 2022
1 parent e648bba commit 4c9dbc3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dug/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.9.dev"
__version__ = "2.9.1dev"
8 changes: 8 additions & 0 deletions src/dug/core/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,17 @@ def build_search_obj(self, indices) -> Search:
return Search(self.config, indices=indices)

def build_element_extraction_parameters(self, source=None):
# Method reformats the node_to_element_queries object
# Uses tranql source use for concept crawling
if source is None:
source = TRANQL_SOURCE
queries = self.config.node_to_element_queries
# reformat config as array , in the crawler this is looped over
# to make calls to the expansion logic.
# casting config will be a set of conditions to perform casting on.
# Currently we are casting based on node type returned from the tranql query
# we might want to filter those based on curie type or other conditions , if
# node type is too broad.
return [
{
"output_dug_type": dug_type,
Expand Down

0 comments on commit 4c9dbc3

Please sign in to comment.