From 67b90474e5117866d8850ec93d76b7417c09dc4f Mon Sep 17 00:00:00 2001 From: Jesper Friis Date: Thu, 2 May 2024 09:55:36 +0200 Subject: [PATCH] Added minor fixes for ontoconvert (#739) # 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 https://github.com/emmo-repo/EMMOntoPy/pull/756. Merge that PR first! ## Type of change - [x] Bug fix. - [ ] New feature. - [ ] Documentation update. - [ ] Test update. ## Checklist 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 --------- Co-authored-by: Francesca L. Bleken <48128015+francescalb@users.noreply.github.com> --- tests/testonto/domainonto.ttl | 5 +++++ tools/ontoconvert | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/testonto/domainonto.ttl b/tests/testonto/domainonto.ttl index f7e5bf71..545bcd20 100644 --- a/tests/testonto/domainonto.ttl +++ b/tests/testonto/domainonto.ttl @@ -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 ; diff --git a/tools/ontoconvert b/tools/ontoconvert index d97123bd..3e1e6a6f 100755 --- a/tools/ontoconvert +++ b/tools/ontoconvert @@ -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`" ), ) @@ -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( @@ -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", ] )