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

feat(test): Add relation multi range test

parent c8360b5ddef2
Pipeline #90316 failed with stages
in 7 minutes and 46 seconds
@prefix : <http://loutre.fr/>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
:FirstClass a owl:Class.
:SecondClass a owl:Class.
:rel1 a owl:ObjectProperty;
rdfs:range :FirstClass, :SecondClass.
from yams.buildobjs import *
class SecondClass(EntityType):
pass
class FirstClass(EntityType):
pass
class rel1(RelationDefinition):
subject = ('FirstClass', 'SecondClass',)
object = ('FirstClass', 'SecondClass',)
......@@ -55,6 +55,12 @@
"test_attribute_owl_thing.yams",
)
def test_transform_relation_multi_range(self):
self._load_owl_and_yams(
"test_relation_multi_range.owl",
"test_relation_multi_range.yams",
)
def test_raise_multi_class(self):
with self.assertRaises(ValueError):
self._load_owl_and_yams("test_multi_class.owl")
......
Markdown is supported
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