UNPKG

@ulb-darmstadt/shacl-form

Version:
21 lines (20 loc) 1.58 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[], store: 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 findBestMatchingLiteral(languages: string[], literals: Literal[]): string; export declare function findAllClasses(store: Store): Set<string>; export declare function filterOutExistingItems(existing: Set<string> | string[], items: Set<string>): string[]; export declare function extractLists(store: Store, { remove, ignoreErrors }?: { remove?: boolean | undefined; ignoreErrors?: boolean | undefined; }): Record<string, Term[]>;