Skip to content

Commit

Permalink
self.entity_index[s] = {'to_be_deleted': False, 'is_restored': False,…
Browse files Browse the repository at this point in the history
… 'resp_agent': resp_agent, 'source': primary_source}
  • Loading branch information
arcangelo7 committed Nov 30, 2024
1 parent 461572c commit f75511b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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 = "rdflib-ocdm"
version = "0.4.0"
version = "0.4.1"
description = ""
authors = ["arcangelo7 <[email protected]>"]
license = "ISC"
Expand Down
8 changes: 4 additions & 4 deletions rdflib_ocdm/ocdm_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def add(self, triple: "_TripleType", resp_agent = None, primary_source = None):
self.all_entities.add(s)

if s not in self.entity_index:
self.entity_index[s] = {'to_be_deleted': False, 'is_restored': True, 'resp_agent': resp_agent, 'source': primary_source}
self.entity_index[s] = {'to_be_deleted': False, 'is_restored': False, 'resp_agent': resp_agent, 'source': primary_source}

return self

Expand Down Expand Up @@ -283,7 +283,7 @@ def parse(
self.all_entities.add(subject)

if subject not in self.entity_index:
self.entity_index[subject] = {'to_be_deleted': False, 'is_restored': True, 'resp_agent': resp_agent, 'source': primary_source}
self.entity_index[subject] = {'to_be_deleted': False, 'is_restored': False, 'resp_agent': resp_agent, 'source': primary_source}

return self

Expand Down Expand Up @@ -320,7 +320,7 @@ def add(
self.all_entities.add(s)

if s not in self.entity_index:
self.entity_index[s] = {'to_be_deleted': False, 'is_restored': True, 'resp_agent': resp_agent, 'source': primary_source}
self.entity_index[s] = {'to_be_deleted': False, 'is_restored': False, 'resp_agent': resp_agent, 'source': primary_source}

return self

Expand Down Expand Up @@ -393,7 +393,7 @@ def parse(
self.all_entities.add(subject)

if subject not in self.entity_index:
self.entity_index[subject] = {'to_be_deleted': False, 'is_restored': True, 'resp_agent': resp_agent, 'source': primary_source}
self.entity_index[subject] = {'to_be_deleted': False, 'is_restored': False, 'resp_agent': resp_agent, 'source': primary_source}

return context

Expand Down

0 comments on commit f75511b

Please sign in to comment.