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 206 #58

Merged
merged 19 commits into from
Apr 14, 2022
Merged

Feature/ted 206 #58

merged 19 commits into from
Apr 14, 2022

Conversation

CaptainOfHacks
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Apr 13, 2022

Codecov Report

Merging #58 (651e532) into main (804f532) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #58   +/-   ##
=======================================
  Coverage   98.83%   98.84%           
=======================================
  Files          49       50    +1     
  Lines        1808     1818   +10     
=======================================
+ Hits         1787     1797   +10     
  Misses         21       21           
Impacted Files Coverage Δ
..._suite_processor/adapters/yarrrml2rml_converter.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 804f532...651e532. 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.

Well done!
But would be nice to add also the service functions not only the adapter into the implementation.

import subprocess


class YARRRML2RMLConvertorABC(abc.ABC):
Copy link
Collaborator

Choose a reason for hiding this comment

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

convertor -> converter

"""


class YARRRML2RMLConvertor(YARRRML2RMLConvertorABC):
Copy link
Collaborator

Choose a reason for hiding this comment

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

converter

@abc.abstractmethod
def convert(self, yarrrml_input_file_path: pathlib.Path, rml_output_file_path: pathlib.Path):
"""
This method converts a yarrrml file and writes the result to another rml file.
Copy link
Collaborator

Choose a reason for hiding this comment

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

upper case

rml_output_file_path= rml_file_path
)
rml_result = rml_file.read()
assert rml_result == rml_file_result
Copy link
Collaborator

Choose a reason for hiding this comment

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

not a safe asset. Not safe at all.
better pick certain concepts that shall be there and split them into multiple assertions.

@CaptainOfHacks CaptainOfHacks merged commit f4578c8 into main Apr 14, 2022
@CaptainOfHacks CaptainOfHacks deleted the feature/TED-206 branch April 14, 2022 20:16
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