From 3fd238047569caf2c1ddf8c43b2498b4d6e98b8a Mon Sep 17 00:00:00 2001 From: j Date: Fri, 10 Aug 2018 14:28:36 +0100 Subject: [PATCH] ignore blue --- ontology/ontology.json | 18 +++++++++--------- ontology/update_keywords.py | 2 ++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/ontology/ontology.json b/ontology/ontology.json index 664e79b..620f5e5 100644 --- a/ontology/ontology.json +++ b/ontology/ontology.json @@ -355,15 +355,15 @@ "man": {}, "man, elderly": {}, "woman": {}, - "woman, elderly": {} - }, - "animal": { - "bird": {}, - "cat": {}, - "dog": {}, - "fish": {}, - "moth": {}, - "hamster": {} + "woman, elderly": {}, + "animal": { + "bird": {}, + "cat": {}, + "dog": {}, + "fish": {}, + "moth": {}, + "hamster": {} + }, }, "type": { "analogist": {}, diff --git a/ontology/update_keywords.py b/ontology/update_keywords.py index 0a16852..df183d2 100755 --- a/ontology/update_keywords.py +++ b/ontology/update_keywords.py @@ -21,6 +21,8 @@ for annotation in api.findAnnotations({ 'keys': ['id', 'in', 'out', 'value', 'user', 'created'], 'range': [0, 500000] })['data']['items']: + if annotatoin['id'].startswith('BA/'): + continue keyword = annotation['value'] if ': ' not in keyword: keyword = 'other: ' + keyword