Fide logoFIDE

expandPropertyReferenceIdentifier

Expand a prefixed property token (e.g. `schema:name`) to a full IRI. If `referenceIdentifier` is already an absolute URL, it is returned unchanged. If `referenceIdentifier` contains a prefix not found in the configured map, throws.

Node Runtime Required

This function requires a Node.js runtime and is disabled in the browser docs preview.
expandPropertyReferenceIdentifier(referenceIdentifier, options)

Parameters

referenceIdentifierstring*
Property reference identifier token.
optionsExpandPropertyReferenceIdentifierOptions
Prefix override options.
Invalid structured input. Switch to JSON mode to fix parse errors.

Returns

Prop

Type

import { expandPropertyReferenceIdentifier } from '@fide-work/context-protocol';

const result = expandPropertyReferenceIdentifier(
  ,
  
);

Type Definitions

type ExpandPropertyReferenceIdentifierOptions

Property vocabulary shorthand helper types.

ExpandPropertyReferenceIdentifierOptions

Properties

Prop

Type