Manta Developers
GitHub
Menu

@manta-eu/horns/realm

Reference for @manta-eu/horns/realm in @manta-eu/horns 0.2.3.

Type Aliases

Realm

Realm = typeof realms[number]

Variables

realms

const realms: readonly ["hiremanta-com", "journey-travel"]


sharedNamespaces

const sharedNamespaces: object

The namespaces that do not depend on a realm, for code that has none in hand.

Type Declaration

dcterms

readonly dcterms: "http://purl.org/dc/terms/"

owl

readonly owl: "http://www.w3.org/2002/07/owl#"

prov

readonly prov: "http://www.w3.org/ns/prov#"

rdf

readonly rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#"

rdfox

readonly rdfox: "https://rdfox.com/vocabulary#"

rdfs

readonly rdfs: "http://www.w3.org/2000/01/rdf-schema#"

schema

readonly schema: "https://schema.org/"

sh

readonly sh: "http://www.w3.org/ns/shacl#"

time

readonly time: "http://www.w3.org/2006/time#"

xsd

readonly xsd: "http://www.w3.org/2001/XMLSchema#"

Functions

compactIri()

compactIri(realm, iri): string

Parameters

realm

"hiremanta-com" | "journey-travel"

iri

string

Returns

string


expandCurie()

expandCurie(realm, curie): string

Parameters

realm

"hiremanta-com" | "journey-travel"

curie

string

Returns

string


isRealm()

isRealm(value): value is “hiremanta-com” | “journey-travel”

Parameters

value

unknown

Returns

value is “hiremanta-com” | “journey-travel”


parseRealm()

parseRealm(value): "hiremanta-com" | "journey-travel"

Parameters

value

unknown

Returns

"hiremanta-com" | "journey-travel"


prefixHint()

prefixHint(realm, prefix): string | undefined

Parameters

realm

"hiremanta-com" | "journey-travel"

prefix

string

Returns

string | undefined


realmEnv()

realmEnv(realm): Record<string, string>

Parameters

realm

"hiremanta-com" | "journey-travel"

Returns

Record<string, string>


realmNamespace()

realmNamespace(realm): string

Parameters

realm

"hiremanta-com" | "journey-travel"

Returns

string


realmNamespaces()

realmNamespaces(realm): Record<string, string>

Parameters

realm

"hiremanta-com" | "journey-travel"

Returns

Record<string, string>


realmShimScript()

realmShimScript(realm): string

Parameters

realm

"hiremanta-com" | "journey-travel"

Returns

string


realmVocabularyRoot()

realmVocabularyRoot(realm): string

Parameters

realm

"hiremanta-com" | "journey-travel"

Returns

string


withRealmPrefixes()

withRealmPrefixes(query, realm): string

Parameters

query

string

realm

"hiremanta-com" | "journey-travel"

Returns

string