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
CompactPropertyReferenceIdentifierOptionsProperties
Prop
Type
parseFideId
Parse a Fide ID into its constituent components. Decomposes a Fide ID into entity type code (2 hex), reference type code (2 hex), and fingerprint (36 hex), converting type/source codes to their corresponding entity type names.
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.