cmungall/owl-schema

`TypeError: 'type' object is not subscriptable` encountered while attempting to validate `src/data/examples/Person-001.yaml` against `src/linkml/owl_schema.yaml`

capsulecorplab opened this issue · 0 comments

[~/repo/owl-schema]$ linkml-validate -s src/linkml/owl_schema.yaml src/data/examples/Person-001.yaml
WARNING:root:File "<file>", line 12, col 15: Unrecognized prefix: rdfs
WARNING:root:File "<file>", line 360, col 16: Unrecognized prefix: rdf
WARNING:root:No namespace defined for URI: http://www.w3.org/2003/g/data-view#namespaceTransformation
WARNING:root:No namespace defined for URI: http://purl.org/dc/elements/1.1/title
Traceback (most recent call last):
  File "/usr/local/bin/linkml-validate", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/linkml/validators/jsonschemavalidator.py", line 89, in cli
    python_module = PythonGenerator(schema).compile_module()
  File "/usr/local/lib/python3.8/dist-packages/linkml/generators/pythongen.py", line 76, in compile_module
    return compile_python(pycode)
  File "/usr/local/lib/python3.8/dist-packages/linkml_runtime/utils/compile_python.py", line 47, in compile_python
    exec(spec, module.__dict__)
  File "test", line 66, in <module>
  File "test", line 67, in Property
TypeError: 'type' object is not subscriptable