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

feat(test): Add attribute owl thing test

parent 2968990436f7
Pipeline #90297 canceled with stages
@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.
:toto a owl:DatatypeProperty;
rdfs:domain owl:Thing.
from yams.buildobjs import *
class SecondClass(EntityType):
toto = String()
class FirstClass(EntityType):
toto = String()
...@@ -49,6 +49,12 @@ ...@@ -49,6 +49,12 @@
"test_relation_without_domain_range.yams", "test_relation_without_domain_range.yams",
) )
def test_transform_attribute_owl_thing(self):
self._load_owl_and_yams(
"test_attribute_owl_thing.owl",
"test_attribute_owl_thing.yams",
)
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")
......
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