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

Added --ignore-namespace to emmocheck #60

Merged
merged 18 commits into from
Nov 2, 2020

Conversation

francescalb
Copy link
Collaborator

It is now possible to ignore the a given namespace by:

emmocheck --ignore-namespace=http://emmo.info/emmo/emmo-inferred# emmo-inferred

However, this is not the same as ignoring submodules so does not work correctly yet. When you load an ontology, the base_iri is the same for the whole ontology...

@@ -281,6 +283,10 @@ def main():
parser.add_argument(
'--url-from-catalog', '-u', action='store_true',
help=('Get url from catalog file'))
parser.add_argument(
'--ignore-namespace', '-in', action='append', default=[],
Copy link
Collaborator

@jesper-friis jesper-friis Oct 30, 2020

Choose a reason for hiding this comment

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

Unusual with 2-letter short option. Normally -in is a shortcut for "-i -n" if "-i" doesn't take an argument or "-i n" if "-i" takes an argument. Alternative short options could be -g or -n.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thank you, this is fixed

Copy link
Collaborator

@jesper-friis jesper-friis left a comment

Choose a reason for hiding this comment

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

See inline comment

@francescalb
Copy link
Collaborator Author

Works for skipping namespace check for 'emmocheck --check-imported --ignore-namespace=emmo-inferred emmo-inferred'. However namespace check for emmo does not go into the check at all because when onto = get_ontolog('emmo').load() all of the following are empty: onto.classes(), onto.object_properties(), onto.data_properties(), onto.individuals(), onto.annotation_properties(). Is this correct behaviour?

Copy link
Collaborator

@jesper-friis jesper-friis left a comment

Choose a reason for hiding this comment

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

Great Francesca. Thanks

@francescalb francescalb changed the title WIP! Added --ignore-namespace to emmocheck Added --ignore-namespace to emmocheck Nov 2, 2020
@francescalb francescalb merged commit 4610738 into master Nov 2, 2020
@jesper-friis jesper-friis deleted the emmocheck-ignore-namespace branch November 21, 2020 21:00
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