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

Feature/ted 174 #56

Merged
merged 14 commits into from
Apr 12, 2022
Merged

Feature/ted 174 #56

merged 14 commits into from
Apr 12, 2022

Conversation

CaptainOfHacks
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Apr 12, 2022

Codecov Report

Merging #56 (7fd0c1b) into main (86bee97) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #56      +/-   ##
==========================================
+ Coverage   98.73%   98.76%   +0.02%     
==========================================
  Files          44       45       +1     
  Lines        1659     1699      +40     
==========================================
+ Hits         1638     1678      +40     
  Misses         21       21              
Impacted Files Coverage Δ
...processor/services/conceptual_mapping_processor.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 86bee97...7fd0c1b. Read the comment docs.

Copy link
Collaborator

@costezki costezki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

I wonder if you may consider using Jina2 for templating purposes.

field_xpath = row[RULES_FIELD_XPATH]
class_path = row[RULES_CLASS_PATH]
property_path = row[RULES_PROPERTY_PATH]
yield f"#title: {sf_field_id} - {sf_field_name}\n" \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch! Should we not use at least a Jina template here?


def mapping_suite_processor_generate_sparql_queries(mapping_suite_package_path: pathlib.Path):
"""
This function reads data from conceptual_mappings.xlsx and generates SPARQL validation queries in provided package.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the documentation.




class temporary_copy(object):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This need is odd to me. I am curious about where you use it.
It is, however, elegant.

@CaptainOfHacks CaptainOfHacks merged commit 1d55e46 into main Apr 12, 2022
@CaptainOfHacks CaptainOfHacks deleted the feature/TED-174 branch April 12, 2022 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants