Skip to content

Commit

Permalink
Merge pull request #25 from odissei-data/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
FjodorvRijsselberg authored Mar 19, 2024
2 parents 26fdba8 + 8943bac commit 904e36a
Show file tree
Hide file tree
Showing 8 changed files with 53,327 additions and 20 deletions.
28 changes: 14 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "metadata-enhancer"
version = "2.2.3"
version = "2.2.4"
description = "A service that enriches metadata using controlled vocabularies."
authors = ["Fjodor van Rijsselberg"]
include = ["src"]
Expand Down
2 changes: 1 addition & 1 deletion src/enhancers/VocabularyEnhancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def vocab_enhance_metadata(self, metadata_block, compound_field, field):
# match
for term_dict in matchable_terms:
term = _try_for_key(term_dict, f'{field}.value')
if term in self.added_terms_set:
if not term or term in self.added_terms_set:
break
label = term.upper()
uri = self.query_enrichment_table(label)
Expand Down
3 changes: 1 addition & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
from api.queries import CBS_VOCAB_QUERY, ELSST_VOCAB_QUERY
from api.skosmos import create_table_concepts_skosmos
from api.fuseki import create_table_terms
from schema.input import EnhancerInput, VocabInput, LangInput, Lang
from schema.input import EnhancerInput, VocabInput, Lang
from version import get_version

app = FastAPI()

GITHUB_RAW_URL = os.environ['GITHUB_RAW_URL']
ELSST_FUSEKI_URL = os.environ['ELSST_FUSEKI_URL']
VARIABLE_FUSEKI_URL = os.environ['VARIABLE_FUSEKI_URL']
Expand Down
Loading

0 comments on commit 904e36a

Please sign in to comment.