UNPKG

@ulb-darmstadt/shacl-form

Version:
14 lines (13 loc) 1.16 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[], indent?: number): InputListEntry[]; export declare function removePrefixes(id: string, prefixes: Prefixes): string; export declare function findInstancesOf(clazz: NamedNode, template: ShaclPropertyTemplate, indent?: number): InputListEntry[]; export declare function isURL(input: string): boolean; export declare function prioritizeByLanguage(languages: string[], text1?: Literal, text2?: Literal): Literal | undefined;