UNPKG

@ulb-darmstadt/shacl-form

Version:
18 lines (17 loc) 1.3 kB
import { Literal, NamedNode, Prefixes, Quad, Store } from 'n3'; import { Term } from '@rdfjs/types'; import { InputListEntry } from './theme'; import { ShaclPropertyTemplate } from './property-template'; export declare function findObjectValueByPredicate(quads: Quad[], predicate: string, prefix?: string, languages?: string[]): string; export declare function findObjectByPredicate(quads: Quad[], predicate: string, prefix?: string, languages?: string[]): Term | undefined; export declare function focusFirstInputElement(context: HTMLElement): void; export declare function findLabel(quads: Quad[], languages: string[]): string; export declare function createInputListEntries(subjects: Term[], shapesGraph: Store, languages: string[]): InputListEntry[]; export declare function removePrefixes(id: string, prefixes: Prefixes): string; export declare function findInstancesOf(clazz: NamedNode, template: ShaclPropertyTemplate): InputListEntry[]; export declare function isURL(input: string): boolean; export declare function prioritizeByLanguage(languages: string[], text1?: Literal, text2?: Literal): Literal | undefined; export declare function extractLists(store: Store, { remove, ignoreErrors }?: { remove?: boolean | undefined; ignoreErrors?: boolean | undefined; }): Record<string, Term[]>;