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.
ExpandPropertyReferenceIdentifierOptionsProperties
Prop
Type
compactPropertyReferenceIdentifier
Compact a full property IRI (e.g. `https://schema.org/name`) to CURIE form. Returns the original input unchanged when it does not match a configured prefix.
buildStatement
Build a statement object with all required fields. Always computes Fide IDs from referenceIdentifier + entityType + referenceType. Properties must be canonical full URLs.