Commit 62ed723b authored by Fabien Amarger's avatar Fabien Amarger
Browse files

fix tests

parent 9aed9241c67a
Pipeline #96227 passed with stages
in 1 minute and 27 seconds
......@@ -104,7 +104,7 @@
# 1. fetch all classes
for class_res in owl_model.query(class_query):
class_uri = class_res.uri
if isinstance(class_uri, BNode):
if isinstance(class_uri, BNode) or class_uri.startswith(XSD):
continue
class_fragment = fragment_from_uri(class_uri, titling=True)
if class_fragment is None:
......@@ -162,7 +162,7 @@
# take first range, if no range use RDFS.Literal
_, _, literal_type = next(
owl_model.triples((datatype_property_uri, RDFS.range, None)),
(_, _, RDFS.Literal),
(None, None, RDFS.Literal),
)
yams_type = LITERAL_TYPES_TO_YAMS_TYPES[literal_type]
domain_fragments = yams_domain_from_urirefs(
......
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