Package org.incenp.linkml.schema
Interface ISchemaResolver
-
- All Known Implementing Classes:
DefaultSchemaResolver
public interface ISchemaResolverAn interface to resolve the name of a schema into aISchemaSource.That interface is primarily intended to allow client code to customise the way that import declarations within a LinkML schema are resolved.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ISchemaSourceresolve(String name, String base)Resolves the given schema name into a schema source object.
-
-
-
Method Detail
-
resolve
ISchemaSource resolve(String name, String base) throws InvalidSchemaException
Resolves the given schema name into a schema source object.- Parameters:
name- The name of the schema to resolve. Of note, if the name was originally provided as a Curie, this method will receive the expanded form of the original name.base- The base location from which to resolve relative names.- Returns:
- A
ISchemaSourceobject that can be used to access the content of the schema. - Throws:
InvalidSchemaException- If the name cannot be resolved into a schema source.
-
-