Heracles.ts

@hydra-cg/heracles.ts > IOntologyProvider

Interface: IOntologyProvider

Provides an abstraction over ontology.

interface:

Hierarchy

IOntologyProvider

Implemented by

Index

Methods


Methods

getDomainFor

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

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>