Commit 29689904 authored by Fabien Amarger's avatar Fabien Amarger
Browse files

feat(test): Add test relation without domain and range

parent 23c33bce6c89
Pipeline #90296 canceled with stages
@prefix : <>.
@prefix owl: <>.
@prefix rdfs: <>.
@prefix xsd: <>.
:FirstClass a owl:Class.
:SecondClass a owl:Class.
:rel1 a owl:ObjectProperty.
from yams.buildobjs import *
class SecondClass(EntityType):
class FirstClass(EntityType):
class rel1(RelationDefinition):
subject = ('FirstClass', 'SecondClass',)
object = ('FirstClass', 'SecondClass',)
...@@ -43,6 +43,12 @@ ...@@ -43,6 +43,12 @@
def test_transform_hierarchy(self): def test_transform_hierarchy(self):
self._load_owl_and_yams("test_hierarchy.owl", "test_hierarchy.yams") self._load_owl_and_yams("test_hierarchy.owl", "test_hierarchy.yams")
def test_transform_relation_without_domain_range(self):
def test_raise_multi_class(self): def test_raise_multi_class(self):
with self.assertRaises(ValueError): with self.assertRaises(ValueError):
self._load_owl_and_yams("test_multi_class.owl") self._load_owl_and_yams("test_multi_class.owl")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment