Class URLSchemaSource
java.lang.Object
org.incenp.linkml.schema.URLSchemaSource
- All Implemented Interfaces:
ISchemaSource
Represents a schema location pointing to a remote resource.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
URLSchemaSource
Creates a new instance.- Parameters:
url- The URL to the remote resource that is expected to provide the schema.- Throws:
URISyntaxException- If the given URL cannot be parsed as a proper URI.MalformedURLException- If the given URL uses an unrecognised scheme.
-
-
Method Details
-
getBase
Description copied from interface:ISchemaSourceGets the base location of this source.The base location is the location from which relative import references are resolved.
- Specified by:
getBasein interfaceISchemaSource- Returns:
- The base location. May be
null.
-
getStream
Description copied from interface:ISchemaSourceOpens the location into a readable stream.- Specified by:
getStreamin interfaceISchemaSource- Throws:
IOException- If the location cannot be opened for any reason.
-
hashCode
-
equals
-