Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | import { NamespaceMap } from '@src/utilities';
/**
* Interface for the PrefixLookupService.
*/
export interface IPrefixLookupService {
/**
* Get the a namespace map for the standard W3C prefix definitions used in inference graphs.
* @returns A map of standard prefixes.
*/
getInferencePrefixes(): NamespaceMap;
/**
* Get the default prefixes from the Mentor extension configuration.
* @returns A map of default prefixes.
*/
getDefaultPrefixes(): NamespaceMap;
/**
* Get the prefix for a given namespace IRI.
* @param documentUri The URI of the document where the IRI is used.
* @param namespaceIri A namespace IRI to look up.
* @param defaultValue A default value to return if the prefix is not found.
* @returns A prefix for the given IRI if it is declared in the project. A default value otherwise.
*/
getPrefixForIri(documentUri: string, namespaceIri: string, defaultValue: string): string;
/**
* Get the most frequently used URI for a given prefix.
* @param documentUri The URI of the document where the prefix is used.
* @param prefix A prefix to look up.
* @returns A URI for the given prefix if it is declared in the project. An empty string otherwise.
*/
getUriForPrefix(documentUri: string, prefix: string): string;
}
|