Skip to content

Commit

Permalink
add append props to GO ontology bot
Browse files Browse the repository at this point in the history
  • Loading branch information
stuppie committed Feb 6, 2018
1 parent 348aab6 commit c1de595
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scheduled_bots/ontology/obo_importer.py
Expand Up @@ -84,6 +84,8 @@ class OBOImporter(object):

ols_session = requests.Session()

append_props = {'P31', 'P279', 'P527', 'P361', 'P128'} | set(xref_props.values())

def __init__(self, root_objects, ontology, core_property_nr, ontology_ref_item, login, local_qid_onto_map,
use_prefix=True, fast_run=True, fast_run_base_filter=None, write=True, sub_ontology=None):

Expand Down Expand Up @@ -235,6 +237,7 @@ def get_item_qid(go_id, data=()):
wd_item = wdi_core.WDItemEngine(wd_item_id=self.local_qid_onto_map[go_id]['qid'], domain='obo',
data=data, fast_run=self.fast_run,
fast_run_base_filter=self.fast_run_base_filter,
append_value=self.append_props,
global_ref_mode='STRICT_OVERWRITE')
else:
wd_item = wdi_core.WDItemEngine(item_name='test', domain='obo', data=data, fast_run=self.fast_run,
Expand Down

0 comments on commit c1de595

Please sign in to comment.