linkml 1.6.0__py3-none-any.whl → 1.6.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- linkml/generators/owlgen.py +4 -2
- {linkml-1.6.0.dist-info → linkml-1.6.1.dist-info}/METADATA +1 -1
- {linkml-1.6.0.dist-info → linkml-1.6.1.dist-info}/RECORD +6 -6
- {linkml-1.6.0.dist-info → linkml-1.6.1.dist-info}/LICENSE +0 -0
- {linkml-1.6.0.dist-info → linkml-1.6.1.dist-info}/WHEEL +0 -0
- {linkml-1.6.0.dist-info → linkml-1.6.1.dist-info}/entry_points.txt +0 -0
linkml/generators/owlgen.py
CHANGED
@@ -471,13 +471,15 @@ class OwlSchemaGenerator(Generator):
|
|
471
471
|
owl_exprs.append(self._type_uri(typ.name))
|
472
472
|
else:
|
473
473
|
owl_exprs.append(self._type_uri(typ.name))
|
474
|
-
elif range in
|
474
|
+
elif range in sv.all_enums(imports=True):
|
475
475
|
# TODO: enums fill this in
|
476
476
|
owl_exprs.append(self._enum_uri(EnumDefinitionName(range)))
|
477
|
-
|
477
|
+
elif range in sv.all_classes(imports=True):
|
478
478
|
owl_types.add(OWL.Thing)
|
479
479
|
self.slot_is_literal_map[main_slot.name].add(False)
|
480
480
|
owl_exprs.append(self._class_uri(ClassDefinitionName(range)))
|
481
|
+
else:
|
482
|
+
raise ValueError(f"Unknown range {range}")
|
481
483
|
constraints_exprs, constraints_owltypes = self.add_constraints(slot)
|
482
484
|
owl_types.update(constraints_owltypes)
|
483
485
|
owl_exprs.extend(constraints_exprs)
|
@@ -34,7 +34,7 @@ linkml/generators/linkmlgen.py,sha256=LaVTMPsGdQmC_zUPCjHg9fr6RsLuPLQK9nGyqqAUkP
|
|
34
34
|
linkml/generators/markdowngen.py,sha256=uDgSgPEaeeTExHCe4o9X0ul5YUKMwDKIpku5FzY-_4I,33468
|
35
35
|
linkml/generators/namespacegen.py,sha256=pPjUQweKRCtDfTTtK4kfuRohef3uKPrbhNUfkmYB8bA,6472
|
36
36
|
linkml/generators/oocodegen.py,sha256=l-5zck_NNAUxJiApJrnDPkqxCv3b6v5s4hC_smelszU,7620
|
37
|
-
linkml/generators/owlgen.py,sha256=
|
37
|
+
linkml/generators/owlgen.py,sha256=1vkHrKkTJW-COixOeywDndM2Cavrw_RjKc5jJzv4naA,39866
|
38
38
|
linkml/generators/plantumlgen.py,sha256=56AnrRE92pwxmPsYgB4Rbjx0AuxO-iwpIKl7DDApuhE,15360
|
39
39
|
linkml/generators/prefixmapgen.py,sha256=AWQTHPcuPlj-rDgSCbKcX_-4eLiDww9huZoOTVels6c,4694
|
40
40
|
linkml/generators/projectgen.py,sha256=_7jP7WFLoxX_kByj7pS5PA48VXDRJ_JDmY7HaWTnnr4,9674
|
@@ -123,8 +123,8 @@ linkml/workspaces/datamodel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
123
123
|
linkml/workspaces/datamodel/workspaces.py,sha256=1M6yqcTnlpmKhUdI-QVxL40wNC1MSRAqrOwvYoLesh0,15073
|
124
124
|
linkml/workspaces/datamodel/workspaces.yaml,sha256=EjVrwPpeRZqJRjuGyyDRxxFzuv55SiLIXPBRUG6HStU,4233
|
125
125
|
linkml/workspaces/example_runner.py,sha256=hkGHGVPsRp4VQjUU8CQibpnRCMhrULktZ7_A3asj_nw,11648
|
126
|
-
linkml-1.6.
|
127
|
-
linkml-1.6.
|
128
|
-
linkml-1.6.
|
129
|
-
linkml-1.6.
|
130
|
-
linkml-1.6.
|
126
|
+
linkml-1.6.1.dist-info/LICENSE,sha256=Nv_Z3AhdUpp-YOEnbXOuWgMLAgMT5sVAhZOmrirzlnM,6555
|
127
|
+
linkml-1.6.1.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
128
|
+
linkml-1.6.1.dist-info/METADATA,sha256=HzyRf7Ssbt_2ATNLkUvjKAfc2qyE8_WmTf5cBX4N8uM,3525
|
129
|
+
linkml-1.6.1.dist-info/entry_points.txt,sha256=Y_WcIenx01tAlAi192U1eDjpL7LZ4D9b72GqrCZSr9Q,2160
|
130
|
+
linkml-1.6.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|