Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "prefix"

Index

Functions

Const formatPrefixes

  • formatPrefixes(prefixes: Record<string, string>): string
  • Takes an object of RDF/XML prefixes and returns formatted string for the RDFa prefix attribute.

    example
    import { foaf, xsd } from "@thi.ng/prefixes";
    
    formatPrefixes({ foaf, xsd })
    // "foaf: http://xmlns.com/foaf/0.1/ rdf: http://www.w3.org/2001/XMLSchema#"

    Parameters

    • prefixes: Record<string, string>

      -

    Returns string

Generated using TypeDoc