iris#
Interfaces#
IriNames#
Defined in: editor/src/iris.ts:21
What shownIri reads an IRI with: the catalogue, a manifest’s @context, and the namespaces of both.
Properties#
catalogue#
readonlycatalogue:Catalogue
Defined in: editor/src/iris.ts:22
context#
readonlycontext:unknown
Defined in: editor/src/iris.ts:24
The manifest’s @context, under which a compact IRI as written is expanded.
prefixes#
readonlyprefixes:Readonly<Record<string,string>>
Defined in: editor/src/iris.ts:26
The catalogue’s prefixes overlaid with those context declares (prefixesOf).
ShownIri#
Defined in: editor/src/iris.ts:30
An IRI as shown: its text, and the full IRI where the text is not it (hover and copy); null else.
Properties#
iri#
readonlyiri:string|null
Defined in: editor/src/iris.ts:32
text#
readonlytext:string
Defined in: editor/src/iris.ts:31
Variables#
SLUG_WORDS#
constSLUG_WORDS:Readonly<Record<string,string>>
Defined in: editor/src/iris.ts:18
The slug word of a system whose things have no prefix of their own: an
MBID names every MusicBrainz entity. A system not listed here, without a
thing prefix, is written by its catalogue ID (youtube:, doi:).
Functions#
iriNames()#
iriNames(
catalogue,context):IriNames
Defined in: editor/src/iris.ts:52
The names IRIs are shown with under catalogue and a manifest’s context.
Parameters#
catalogue#
Catalogue
context#
unknown
Returns#
prefixesOf()#
prefixesOf(
catalogue,context):Readonly<Record<string,string>>
Defined in: editor/src/iris.ts:36
The prefixes of the catalogue and those context declares (namespaces ending in / or #).
Parameters#
catalogue#
Catalogue
context#
unknown
Returns#
Readonly<Record<string, string>>
shownIri()#
shownIri(
names,written):ShownIri
Defined in: editor/src/iris.ts:77
written, an IRI or a compact IRI as a file writes it, as the editor
shows it: a compact IRI as written; an absolute IRI as prefix:local
where it is a thing of a catalogue system (the thing’s prefix, else the
system’s slug word, SLUG_WORDS, else the system’s ID, before the value
the system recognises), else where a namespace of names holds it, else
as written. The full IRI comes along wherever the text is not it; any
other text (a name, a literal, #id) is shown as written, with none.
Parameters#
names#
written#
string