Commit 85bc50c4 authored by Fabien Amarger's avatar Fabien Amarger
Browse files

feat(test): Add test relation

parent 5092cd03d985
@prefix : <>.
@prefix owl: <>.
@prefix rdfs: <>.
@prefix xsd: <>.
:FirstClass a owl:Class.
:rel1 a owl:ObjectProperty;
rdfs:domain :FirstClass;
rdfs:range :FirstClass.
from yams.buildobjs import *
class FirstClass(EntityType):
class rel1(RelationDefinition):
subject = ('FirstClass',)
object = ('FirstClass',)
...@@ -31,6 +31,9 @@ ...@@ -31,6 +31,9 @@
def test_transform_attribute(self): def test_transform_attribute(self):
self._load_owl_and_yams("test_attribute.owl", "test_attribute.yams") self._load_owl_and_yams("test_attribute.owl", "test_attribute.yams")
def test_transform_relation(self):
self._load_owl_and_yams("test_relation.owl", "test_relation.yams")
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()
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