Heracles.ts

@hydra-cg/heracles.ts > IIndirectTypingProvider

Interface: IIndirectTypingProvider

Describes an abstract facility used for RDF-like type entailing.

interface:

Hierarchy

IIndirectTypingProvider

Implemented by

Index

Methods


Methods

isOfType

isOfType(expectedType: string, processingState: ProcessingState): Promise<boolean>

Defined in JsonLd/IIndirectTypingProvider.ts:14

Checks whether a currently processed resource within a given processing state is of a given type.

Parameters:

Name Type Description
expectedType string Type to check against.
processingState ProcessingState Current JSON-LD processing state.

Returns: Promise<boolean>