-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Strip trailing tabs in embedded YAML header.
When extracting the embedded YAML header from a SSSOM/TSV file, remove any trailing tabs at the end of the header lines. Such tabs, which may have been inserted by a SSSOM-unaware spreadsheet editor, would prevent the YAML metadata block from being parsed correctly. If a metadata slot _really_ needs to end with some tabs, it is still possible to quote the slot value to prevent those tabs from being stripped. closes #566
- Loading branch information
Showing
3 changed files
with
37 additions
and
1 deletion.
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,21 @@ | ||
#curie_map: | ||
# COMENT: https://example.com/entities/ | ||
# COMPID: https://example.com/people/ | ||
# ORGENT: https://example.org/entities/ | ||
# ORGPID: https://example.org/people/ | ||
#mapping_set_id: https://example.org/sets/exo2c | ||
#mapping_set_title: O2C set | ||
#creator_id: | ||
# - ORGPID:0000-0000-0001-1234 | ||
# - COMPID:0000-0000-0002-5678 | ||
#license: https://creativecommons.org/licenses/by/4.0/ | ||
#publication_date: 2023-09-13 | ||
subject_id subject_label predicate_id object_id object_label mapping_justification | ||
ORGENT:0001 alice skos:closeMatch COMENT:0011 alpha semapv:ManualMappingCuration | ||
ORGENT:0002 bob skos:closeMatch COMENT:0012 beta semapv:ManualMappingCuration | ||
ORGENT:0004 daphne skos:closeMatch COMENT:0014 delta semapv:ManualMappingCuration | ||
ORGENT:0005 eve skos:closeMatch COMENT:0015 epsilon semapv:ManualMappingCuration | ||
ORGENT:0006 fanny skos:closeMatch COMENT:0016 zeta semapv:ManualMappingCuration | ||
ORGENT:0007 gavin skos:exactMatch COMENT:0013 gamma semapv:ManualMappingCuration | ||
ORGENT:0008 hector skos:closeMatch COMENT:0017 eta semapv:ManualMappingCuration | ||
ORGENT:0009 ivan skos:exactMatch COMENT:0019 iota semapv:ManualMappingCuration |
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