Skip to content

Commit

Permalink
subjects: fixed deprecated subject in nvs transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
0einstein0 authored and slint committed Feb 24, 2025
1 parent 531d0c7 commit 1ace48b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_vocabularies/contrib/subjects/nvs/datastreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _transform_entry(self, subject, rdf_graph):
subject_data = self._get_subject_data(rdf_graph, subject)
deprecated = subject_data.get(str(rdflib.namespace.OWL.deprecated), [False])
if deprecated and str(deprecated[0]).lower() == "true":
return None # Skip deprecated subjects
raise TransformerError(f"Skipping deprecated subject: {subject_data}")

notation = subject_data.get(str(self.skos_core.notation), [])
if notation:
Expand Down

0 comments on commit 1ace48b

Please sign in to comment.