Skip to content

Commit 30b2186

Browse files
committed
updating to pull in changes from main
1 parent bcb9f1f commit 30b2186

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linkml_runtime/utils/schemaview.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -311,14 +311,14 @@ def imports_closure(
311311
# path, and the target import doesn't have : (as in a curie or a URI)
312312
# we prepend the relative path. This WILL make the key in the `schema_map` not
313313
# equal to the literal text specified in the importing schema, but this is
314-
# essential to sensible deduplication: eg. for
314+
# essential to sensible deduplication: e.g. for
315315
# - main.yaml (imports ./types.yaml, ./subdir/subschema.yaml)
316316
# - types.yaml
317317
# - subdir/subschema.yaml (imports ./types.yaml)
318318
# - subdir/types.yaml
319319
# we should treat the two `types.yaml` as separate schemas from the POV of the
320320
# origin schema.
321-
if sn.startswith(".") and ":" not in i:
321+
if "/" in sn and ":" not in i:
322322
if WINDOWS:
323323
# This cannot be simplified. os.path.normpath() must be called before .as_posix()
324324
i = PurePath(

0 commit comments

Comments
 (0)