sparnatural
Version:
Visual client-side SPARQL query builder and knowledge graph exploration tool
36 lines (35 loc) • 1.5 kB
TypeScript
import { ISparnaturalSpecification } from "../ISparnaturalSpecification";
import { ISpecificationEntity } from "../ISpecificationEntity";
import ISpecificationProperty from "../ISpecificationProperty";
import { RdfStore } from "rdf-stores";
import { NamedNode, Term } from '@rdfjs/types/data-model';
import { DagIfc } from '../../dag/Dag';
import { BaseRDFReader } from '../BaseRDFReader';
export declare const OWL: {
THING: NamedNode<string>;
EQUIVALENT_PROPERTY: NamedNode<string>;
EQUIVALENT_CLASS: NamedNode<string>;
UNION_OF: NamedNode<string>;
};
export declare class OWLSpecificationProvider extends BaseRDFReader implements ISparnaturalSpecification {
#private;
constructor(n3store: RdfStore, lang: string);
getLanguages(): string[];
getEntity(entityUri: string): ISpecificationEntity;
getProperty(property: string): ISpecificationProperty;
getAllSparnaturalEntities(): string[];
getEntitiesInDomainOfAnyProperty(): string[];
getEntitiesTreeInDomainOfAnyProperty(): DagIfc<ISpecificationEntity>;
isSparnaturalClass(classUri: string): boolean;
expandSparql(sparql: string, prefixes: {
[key: string]: string;
}): string;
_sort(items: any[]): any[];
/**
* Reads config:order of an entity and returns it, or null if not set
**/
_readOrder(uri: any): string;
/*** Handling of UNION classes ***/
_readUnionContent(classUri: any): Term[];
_isUnionClass(classUriOrBNodeIdentifier: Term): boolean;
}