Commit 958ac60a authored by Fabien Amarger's avatar Fabien Amarger
Browse files

fix(test): Add test for several domains/ranges

parent dc2f4381abba
Pipeline #90234 failed with stages
in 4 minutes and 11 seconds
......@@ -2,5 +2,6 @@
class FirstClass(EntityType):
toto = Int()
name = String()
class SubClass(FirstClass):
......@@ -5,9 +6,9 @@
class SubClass(FirstClass):
pass
name = String()
class rel1(RelationDefinition):
subject = ('SubClass',)
object = ('FirstClass',)
class rel2(RelationDefinition):
......@@ -8,9 +9,9 @@
class rel1(RelationDefinition):
subject = ('SubClass',)
object = ('FirstClass',)
class rel2(RelationDefinition):
subject = ('SubClass',)
object = '*'
subject = ('FirstClass', 'SubClass',)
object = ('FirstClass', 'SubClass',)
......@@ -16,1 +17,5 @@
class rel3(RelationDefinition):
subject = ('FirstClass', 'SubClass',)
object = ('SubClass', 'FirstClass',)
......@@ -16,5 +16,10 @@
rdfs:domain :SubClass;
rdfs:range :FirstClass.
:rel2 a owl:ObjectProperty;
rdfs:domain :SubClass.
:rel2 a owl:ObjectProperty.
:name a owl:DatatypeProperty;
rdfs:domain owl:Thing.
:rel3 a owl:ObjectProperty;
rdfs:range :SubClass, :FirstClass.
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