Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
OWL2YAMS
Commits
8701157f6aa4
Commit
8701157f
authored
Oct 26, 2021
by
Fabien Amarger
Browse files
feat(test): Add test hierarchy
parent
85bc50c4fc39
Pipeline
#90252
passed with stages
in 3 minutes and 5 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
test/data/test_hierarchy.owl
0 → 100644
View file @
8701157f
@prefix : <http://loutre.fr/>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
:FirstClass a owl:Class.
:SubClass a owl:Class;
rdfs:subClassOf :FirstClass.
test/data/test_hierarchy.yams
0 → 100644
View file @
8701157f
from yams.buildobjs import *
class FirstClass(EntityType):
pass
class SubClass(FirstClass):
pass
test/test_owl2yams.py
View file @
8701157f
...
...
@@ -34,6 +34,9 @@
def
test_transform_relation
(
self
):
self
.
_load_owl_and_yams
(
"test_relation.owl"
,
"test_relation.yams"
)
def
test_transform_hierarchy
(
self
):
self
.
_load_owl_and_yams
(
"test_hierarchy.owl"
,
"test_hierarchy.yams"
)
if
__name__
==
"__main__"
:
unittest
.
main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment