Skip to content

Commit

Permalink
Remove special characters patch (#75)
Browse files Browse the repository at this point in the history
* Utilized remove_special_characters method in dataset entity generation

* Refactored test cases

* Updated version to 0.1.17

* Updated poetry.lock
  • Loading branch information
ubyndr committed May 24, 2024
1 parent 38129ca commit 63362a5
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 84 deletions.
4 changes: 2 additions & 2 deletions pandasaurus_cxg/graph_generator/graph_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ def generate_rdf_graph(self):
self.graph.add(
(
dataset_class,
URIRef(self.ns[citation_key]),
URIRef(self.ns[remove_special_characters(citation_key)]),
Literal(citation_value),
)
)

self.graph.add((dataset_class, URIRef(self.ns[key]), Literal(value)))
self.graph.add((dataset_class, URIRef(self.ns[remove_special_characters(key)]), Literal(value)))
has_source = URIRef(HAS_SOURCE["iri"])
self.graph.add((has_source, RDFS.label, Literal(HAS_SOURCE["label"])))

Expand Down
Loading

0 comments on commit 63362a5

Please sign in to comment.