Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
OWL2YAMS
Commits
62ed723bcbd6
Commit
62ed723b
authored
Nov 25, 2021
by
Fabien Amarger
Browse files
fix tests
parent
9aed9241c67a
Pipeline
#96227
passed with stages
in 1 minute and 27 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
owl2yams/__init__.py
View file @
62ed723b
...
...
@@ -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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment