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

Switch label #115

Merged
merged 3 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.8.2
current_version = 0.8.3
commit = True
tag = False

Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ url: 'https://atomrdf.pyscal.org'
license: "MIT"
repository-code: https://github.com/pyscal/atomRDF
type: software
version: 0.8.2
version: 0.8.3
1 change: 1 addition & 0 deletions atomrdf/network/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ def create_query(self, source, destinations, enforce_types=True):
for count, destination in enumerate(destinations):
#print(source, destination)
triplets = self.get_shortest_path(source, destination, triples=True)
#print(triplets)
for triple in triplets:
#print(triple)
line_text = " ?%s %s ?%s ."% ( triple[0].replace(":", "_"),
Expand Down
4 changes: 2 additions & 2 deletions atomrdf/workflow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def _add_structural_relation(
self.kg.add((parent_sample, RDF.type, PROV.Entity))
self.kg.add((sample, PROV.wasDerivedFrom, parent_sample))
#update label
label = self.kg.get_sample_label(sample)
parent_label = self.kg.get_sample_label(parent_sample)
label = self.kg.get_string_label(sample)
parent_label = self.kg.get_string_label(parent_sample)
if label is None:
new_label = f"{parent_label}_derivative"
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='atomrdf',
version='0.8.2',
version='0.8.3',
author='Abril Azocar Guzman, Sarath Menon',
author_email='[email protected]',
description='Ontology based structural manipulation and quering',
Expand Down
Loading