Fide logoFIDE

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.

Node Runtime Required

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

Parameters

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

Returns

Prop

Type

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

const result = compactPropertyReferenceIdentifier(
  ,
  
);

Type Definitions

type CompactPropertyReferenceIdentifierOptions

CompactPropertyReferenceIdentifierOptions

Properties

Prop

Type