Skip to content

Commit

Permalink
Added minor fixes for ontoconvert (#739)
Browse files Browse the repository at this point in the history
# Description
Minor fixes for ontoconvert option help. 

Also included `emmo:comment` to the set of annotations included in the
`--copy-emmo-annotations` option.

**Note**: Builds on top of PR
#756. Merge that PR first!

## Type of change
- [x] Bug fix.
- [ ] New feature.
- [ ] Documentation update.
- [ ] Test update.

## Checklist
<!-- Put an `x` in the boxes that apply. You can also fill these out
after creating the PR. -->

This checklist can be used as a help for the reviewer.

- [ ] Is the code easy to read and understand?
- [ ] Are comments for humans to read, not computers to disregard?
- [ ] Does a new feature has an accompanying new test (in the CI or unit
testing schemes)?
- [ ] Has the documentation been updated as necessary?
- [ ] Does this close the issue?
- [ ] Is the change limited to the issue?
- [ ] Are errors handled for all outcomes?
- [ ] Does the new feature provide new restrictions on dependencies, and
if so is this documented?

## Comments
<!-- Additional comments here, including clarifications on checklist if
applicable. -->

---------

Co-authored-by: Francesca L. Bleken <48128015+francescalb@users.noreply.github.com>
  • Loading branch information
jesper-friis and francescalb committed May 2, 2024
1 parent f769bcb commit 67b9047
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions tests/testonto/domainonto.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ emmo:EMMO_967080e5_2f42_4eb2_a3a9_c58143e835f9 a owl:AnnotationProperty ;
skos:prefLabel "elucidation"@en ;
rdfs:comment "Short enlightening explanation aimed to facilitate the user in drawing the connection (interpretation) between a OWL entity and the real world object(s) for which it stands."@en .

emmo:EMMO_c7b62dd7_063a_4c2a_8504_42f7264ba83f a owl:AnnotationProperty ;
rdfs:subPropertyOf rdfs:comment ;
skos:prefLabel "comment"@en ;
rdfs:comment "A text that add some information about the entity."@en .

:EMMO_70fe84ff_99b6_4206_a9fc_9a8931836d84 a owl:AnnotationProperty ;
rdfs:subPropertyOf rdfs:comment ;
skos:prefLabel "definition"@en ;
Expand Down
7 changes: 5 additions & 2 deletions tools/ontoconvert
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ def main(argv: list = None):
"http://www.w3.org/2004/02/skos/core#prefLabel"
"-->http://www.w3.org/2000/01/rdf-schema#label "
"--copy-annotation=elucidation"
"-->http://www.w3.org/2000/01/rdf-schema#comment`"
"-->http://www.w3.org/2000/01/rdf-schema#comment` "
"--copy-annotation=definition"
"-->http://www.w3.org/2000/01/rdf-schema#comment` "
"--copy-annotation=comment"
"-->http://www.w3.org/2000/01/rdf-schema#comment`"
),
)
Expand All @@ -110,7 +112,7 @@ def main(argv: list = None):
metavar="NAME",
help=(
"Add additional relations inferred by the reasoner. Supported "
'reasoners are "FaCT++" (default), "HermiT" and "Pellet".'
'reasoners are "HermiT" (default), "Pellet" and "FaCT++".'
),
)
parser.add_argument(
Expand Down Expand Up @@ -242,6 +244,7 @@ def main(argv: list = None):
"-->http://www.w3.org/2000/01/rdf-schema#label",
"elucidation-->http://www.w3.org/2000/01/rdf-schema#comment",
"definition-->http://www.w3.org/2000/01/rdf-schema#comment",
"comment-->http://www.w3.org/2000/01/rdf-schema#comment",
]
)

Expand Down

0 comments on commit 67b9047

Please sign in to comment.