normalizePropertyReferenceIdentifier
Normalize a property reference identifier to canonical URL form. Property reference identifiers must be canonical absolute `https` URLs without userinfo.
Node Runtime Required
Parameters
Returns
Prop
Type
import { normalizePropertyReferenceIdentifier } from '@fide-work/id';
const result = normalizePropertyReferenceIdentifier(
'https://schema.org/name',
{"skipUrlNormalization":false}
);Type Definitions
type NormalizePropertyReferenceIdentifierOptions
Options for property reference identifier normalization.
NormalizePropertyReferenceIdentifierOptionsProperties
Prop
Type
calculateStatementFideId
Calculate a Fide ID for a Statement from its RDF triple components. Creates a statement Fide ID by hashing the reference identifier: concatenation of subject, property, and object Fide IDs in that order, separated by ASCII `|`. No whitespace. This helper always returns the self-referential Statement form (Entity Type/Reference Type = `0000`).
normalizeReferenceIdentifier
Normalize a reference identifier for general entity usage. For http(s) URLs this canonicalizes protocol/host casing and removes default ports. Non-URL values are returned unchanged.