-
Notifications
You must be signed in to change notification settings - Fork 12
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
Extend parse_sssom_table to report wrong prefixes and metadata #565
Merged
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
bb4e143
Add test to ensure that parsing of wrong TSV files fails in strict mode
matentzn ca01b56
Extend parse_sssom_table to report wrong prefixes and metadata
matentzn 9847b67
Adding support for "extension_slots" during parsing
matentzn 57d24f9
Amended the code to also look for "property" in extension slot defini…
matentzn 34856f1
Blacken the code.
matentzn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# curie_map: | ||
# HP: http://purl.obolibrary.org/obo/HP_ | ||
# MP: http://purl.obolibrary.org/obo/MP_ | ||
# owl: http://www.w3.org/2002/07/owl# | ||
# rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# | ||
# rdfs: http://www.w3.org/2000/01/rdf-schema_fail# | ||
# semapv: https://w3id.org/semapv/vocab/ | ||
# skos: http://www.w3.org/2004/02/skos/core# | ||
# sssom: https://w3id.org/sssom/ | ||
# license_fail: https://creativecommons.org/publicdomain/zero/1.0/ | ||
# mapping_provider: http://purl.obolibrary.org/obo/upheno.owl | ||
# mapping_set_id: https://w3id.org/sssom/mappings/27f85fe9-8a72-4e76-909b-7ba4244d9ede | ||
subject_id subject_label predicate_id object_id object_label mapping_fail_justification | ||
HP:0000175 Cleft palate skos:exactMatch MP:0000111 cleft palate semapv:LexicalMatching | ||
HP:0000252 Microcephaly skos:exactMatch MP:0000433 microcephaly semapv:LexicalMatching |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I’ll just note that this case (standard prefix associated to a different prefix name than the one listed in the spec, e.g.
som: https://w3id.org/sssom/
) is not forbidden by the spec. The spec only forbids associated a builtin prefix name to a different prefix (e.g.,sssom: https://not-the-sssom-namespace.example.org/
).The spec says:
There is nothing here that forbids using another prefix name than a builtin one to refer to one of the known namespaces.
Not requesting any change here because SSSOM-Py is free to be stricter than the spec if it wants to.