@hydra-cg/heracles.ts > IOntologyProvider
Provides an abstraction over ontology.
interface:
IOntologyProvider
▸ getDomainFor(predicate: string): Promise<string>
Defined in JsonLd/IOntologyProvider.ts:11
Gets the domain for a given property if defined; otherwise null;
Parameters:
| Name | Type | Description | 
|---|---|---|
| predicate | string | 
      IRI of the predicate for which to obtain a domain. | 
Returns: Promise<string>
▸ getRangeFor(predicate: string): Promise<string>
Defined in JsonLd/IOntologyProvider.ts:18
Gets the range for a given property if defined; otherwise null;
Parameters:
| Name | Type | Description | 
|---|---|---|
| predicate | string | 
      IRI of the predicate for which to obtain a range. | 
Returns: Promise<string>