UNPKG

sparnatural

Version:

Visual client-side SPARQL query builder and knowledge graph exploration tool

27 lines (26 loc) 1.21 kB
import { ISparnaturalSpecification } from "../ISparnaturalSpecification"; import { ISpecificationEntity } from "../ISpecificationEntity"; import ISpecificationProperty from "../ISpecificationProperty"; import { SHACLSpecificationEntity } from "./SHACLSpecificationEntity"; import { RdfStore } from "rdf-stores"; import { Term } from "@rdfjs/types"; import { BaseRdfStore } from '../BaseRdfStore'; import { DagIfc } from '../../dag/Dag'; export declare class SHACLSpecificationProvider extends BaseRdfStore implements ISparnaturalSpecification { constructor(n3store: RdfStore, lang: string); getAllSparnaturalEntities(): string[]; getEntitiesInDomainOfAnyProperty(): string[]; getEntitiesTreeInDomainOfAnyProperty(): DagIfc<ISpecificationEntity>; expandSparql(sparql: string, prefixes: { [key: string]: string; }): string; getLanguages(): string[]; getEntity(uri: string): ISpecificationEntity; getProperty(uri: string): ISpecificationProperty; getInitialEntityList(): SHACLSpecificationEntity[]; /** * @param node a NodeShape * @returns true if the NodeShape is the subject of sh:deactivated true */ isDeactivated(node: Term): boolean; }