-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
emmo/emmocheck.py
Outdated
@@ -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=[], |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See inline comment
Contains a lot of print for testing
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? |
Also check that the iri of the entities match the module base_iri
…O-python into emmocheck-ignore-namespace
…O-python into emmocheck-ignore-namespace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great Francesca. Thanks
…O-python into emmocheck-ignore-namespace
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...