Interface ISchemaResolver

All Known Implementing Classes:
DefaultSchemaResolver

public interface ISchemaResolver
An interface to resolve the name of a schema into a ISchemaSource.

That interface is primarily intended to allow client code to customise the way that import declarations within a LinkML schema are resolved.

  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(String name, String base)
    Resolves the given schema name into a schema source object.
  • Method Details

    • 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 ISchemaSource object that can be used to access the content of the schema.
      Throws:
      InvalidSchemaException - If the name cannot be resolved into a schema source.