Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a bug in the methods to delete name, given name and last name of instances of the ResponsibleAgent class. #16

Merged
merged 1 commit into from
Jun 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions oc_ocdm/graph/entities/bibliographic/responsible_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def has_name(self, string: str) -> None:
self._create_literal(GraphEntity.iri_name, string)

def remove_name(self) -> None:
self.g.remove((self.g, GraphEntity.iri_name, None))
self.g.remove((self.res, GraphEntity.iri_name, None))

# HAS GIVEN NAME
def get_given_name(self) -> Optional[str]:
Expand All @@ -78,7 +78,7 @@ def has_given_name(self, string: str) -> None:
self._create_literal(GraphEntity.iri_given_name, string)

def remove_given_name(self) -> None:
self.g.remove((self.g, GraphEntity.iri_given_name, None))
self.g.remove((self.res, GraphEntity.iri_given_name, None))

# HAS FAMILY NAME
def get_family_name(self) -> Optional[str]:
Expand All @@ -92,7 +92,7 @@ def has_family_name(self, string: str) -> None:
self._create_literal(GraphEntity.iri_family_name, string)

def remove_family_name(self) -> None:
self.g.remove((self.g, GraphEntity.iri_family_name, None))
self.g.remove((self.res, GraphEntity.iri_family_name, None))

# HAS RELATED AGENT
def get_related_agents(self) -> List[URIRef]:
Expand Down