sparnatural
Version:
Visual client-side SPARQL query builder and knowledge graph exploration tool
57 lines (56 loc) • 2.69 kB
TypeScript
import ISpecificationProperty from "../ISpecificationProperty";
import { SHACLSpecificationEntry } from "./SHACLSpecificationEntry";
import { RdfStore } from "rdf-stores";
import { Term } from "@rdfjs/types/data-model";
import { SHACLSpecificationProvider } from './SHACLSpecificationProvider';
export declare class SHACLSpecificationProperty extends SHACLSpecificationEntry implements ISpecificationProperty {
#private;
constructor(uri: string, provider: SHACLSpecificationProvider, n3store: RdfStore, lang: string);
/**
* Tests whether the provided property shape URI will be turned into a Sparnatural property
* @param propertyShapeUri
* @param n3store
* @returns false if the property is deactivated, or it has an sh:hasValue
*/
static isSparnaturalSHACLSpecificationProperty(propertyShapeUri: string, n3store: RdfStore): boolean;
getLabel(): string;
getTooltip(): string | undefined;
getPropertyType(range: string): string | undefined;
/**
* @param shapeUri the shape URI (this property shape or an or member of the range of this shape) from which to compute the default property type (e.g. by reading the associated count)
* @returns the default widget for this property, based on datatype and count
*/
getDefaultPropertyType(shapeUri: string, range: string): string;
omitClassCriteria(): boolean;
/**
* A property is multilingual if its datatype points to rdf:langString
*/
isMultilingual(): boolean;
isDeactivated(): boolean;
getShPath(): Term;
getParents(): string[];
/**
* @returns the property shapes that target a superproperty of the property being the path of this shape.
* In other words follow sh:path/owl:subPropertyOf/^sh:path on the same entity
*/
getSuperPropertiesOfPath(): Term[];
/**
* @returns
*/
getRange(): string[];
static readShClassAndShNodeOn(n3store: RdfStore, theUriOrBlankNode: Term): string[];
getDatasource(): import("../IDatasource").IDatasource;
getTreeChildrenDatasource(): import("../IDatasource").IDatasource;
getTreeRootsDatasource(): import("../IDatasource").IDatasource;
getMinValue(): string | undefined;
getMaxValue(): string | undefined;
getValues(): Term[] | undefined;
getBeginDateProperty(): string | undefined;
getEndDateProperty(): string | undefined;
getExactDateProperty(): string | undefined;
isEnablingNegation(): boolean;
isEnablingOptional(): boolean;
getServiceEndpoint(): string | undefined;
isLogicallyExecutedAfter(): boolean;
static compare(item1: SHACLSpecificationProperty, item2: SHACLSpecificationProperty): number;
}