Constructor
new HalCuriePrefix(link)
Parameters:
| Name | Type | Description | 
|---|---|---|
link | 
            
            WebLink | The web link including the name/prefix and URI Template  | 
        
- Implements:
 - Source:
 
Methods
expand(reference) → {String}
Expand a CURIE reference to a full URI.
Parameters:
| Name | Type | Description | 
|---|---|---|
reference | 
            
            String | The reference to expand  | 
        
- Implements:
 - Source:
 
Returns:
The full URI after expansion.
- Type
 - String
 
follow(reference, options) → {Resource}
Follow a CURIE reference once expanded to a full URI.
Parameters:
| Name | Type | Description | 
|---|---|---|
reference | 
            
            String | The reference to expand  | 
        
options | 
            
            Object | The options to pass to WebLink#follow  | 
        
- Implements:
 - Source:
 
Returns:
The resource resulting from following the final URI.
- Type
 - Resource