grapholscape
Version:
ontology visualization
1,929 lines (1,878 loc) • 231 kB
TypeScript
/// <reference types="cytoscape" />
import * as cytoscape$1 from 'cytoscape';
import cytoscape__default, { ElementDefinition, EventObject, EdgeSingular, Stylesheet, SingularElementReturnValue, NodeSingular, CytoscapeOptions, Core as Core$1, CollectionReturnValue } from 'cytoscape';
import * as lit from 'lit';
import { SVGTemplateResult, LitElement, TemplateResult, PropertyDeclarations, CSSResultArray, CSSResultGroup } from 'lit';
import { Props, Instance } from 'tippy.js';
import * as lit_html from 'lit-html';
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
declare const BASE_PATH: string;
interface ConfigurationParameters {
basePath?: string;
fetchApi?: FetchAPI;
middleware?: Middleware[];
queryParamsStringify?: (params: HTTPQuery) => string;
username?: string;
password?: string;
apiKey?: string | ((name: string) => string);
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
headers?: HTTPHeaders;
credentials?: RequestCredentials;
}
declare class Configuration {
private configuration;
constructor(configuration?: ConfigurationParameters);
set config(configuration: Configuration);
get basePath(): string;
get fetchApi(): FetchAPI | undefined;
get middleware(): Middleware[];
get queryParamsStringify(): (params: HTTPQuery) => string;
get username(): string | undefined;
get password(): string | undefined;
get apiKey(): ((name: string) => string) | undefined;
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
get headers(): HTTPHeaders | undefined;
get credentials(): RequestCredentials | undefined;
}
declare const DefaultConfig: Configuration;
/**
* This is the base class for all generated API classes.
*/
declare class BaseAPI {
protected configuration: Configuration;
private static readonly jsonRegex;
private middleware;
constructor(configuration?: Configuration);
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
/**
* Check if the given MIME is a JSON MIME.
* JSON MIME examples:
* application/json
* application/json; charset=UTF8
* APPLICATION/JSON
* application/vnd.company+json
* @param mime - MIME (Multipurpose Internet Mail Extensions)
* @return True if the given MIME is JSON, false otherwise.
*/
protected isJsonMime(mime: string | null | undefined): boolean;
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
private createFetchParams;
private fetchApi;
/**
* Create a shallow clone of `this` by constructing a new instance
* and then shallow cloning data members.
*/
private clone;
}
declare class ResponseError extends Error {
response: Response;
name: "ResponseError";
constructor(response: Response, msg?: string);
}
declare class FetchError extends Error {
cause: Error;
name: "FetchError";
constructor(cause: Error, msg?: string);
}
declare class RequiredError extends Error {
field: string;
name: "RequiredError";
constructor(field: string, msg?: string);
}
declare const COLLECTION_FORMATS: {
csv: string;
ssv: string;
tsv: string;
pipes: string;
};
type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
type Json = any;
type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
type HTTPHeaders = {
[key: string]: string;
};
type HTTPQuery = {
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
};
type HTTPBody = Json | FormData | URLSearchParams;
type HTTPRequestInit = {
headers?: HTTPHeaders;
method: HTTPMethod;
credentials?: RequestCredentials;
body?: HTTPBody;
};
type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
type InitOverrideFunction = (requestContext: {
init: HTTPRequestInit;
context: RequestOpts;
}) => Promise<RequestInit>;
interface FetchParams {
url: string;
init: RequestInit;
}
interface RequestOpts {
path: string;
method: HTTPMethod;
headers: HTTPHeaders;
query?: HTTPQuery;
body?: HTTPBody;
}
declare function exists(json: any, key: string): boolean;
declare function querystring(params: HTTPQuery, prefix?: string): string;
declare function mapValues(data: any, fn: (item: any) => any): {};
declare function canConsumeForm(consumes: Consume[]): boolean;
interface Consume {
contentType: string;
}
interface RequestContext {
fetch: FetchAPI;
url: string;
init: RequestInit;
}
interface ResponseContext {
fetch: FetchAPI;
url: string;
init: RequestInit;
response: Response;
}
interface ErrorContext {
fetch: FetchAPI;
url: string;
init: RequestInit;
error: unknown;
response?: Response;
}
interface Middleware {
pre?(context: RequestContext): Promise<FetchParams | void>;
post?(context: ResponseContext): Promise<Response | void>;
onError?(context: ErrorContext): Promise<Response | void>;
}
interface ApiResponse<T> {
raw: Response;
value(): Promise<T>;
}
interface ResponseTransformer<T> {
(json: any): T;
}
declare class JSONApiResponse<T> {
raw: Response;
private transformer;
constructor(raw: Response, transformer?: ResponseTransformer<T>);
value(): Promise<T>;
}
declare class VoidApiResponse {
raw: Response;
constructor(raw: Response);
value(): Promise<void>;
}
declare class BlobApiResponse {
raw: Response;
constructor(raw: Response);
value(): Promise<Blob>;
}
declare class TextApiResponse {
raw: Response;
constructor(raw: Response);
value(): Promise<string>;
}
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface Position
*/
interface Position {
/**
*
* @type {number}
* @memberof Position
*/
x: number;
/**
*
* @type {number}
* @memberof Position
*/
y: number;
}
/**
* Check if a given object implements the Position interface.
*/
declare function instanceOfPosition(value: object): boolean;
declare function PositionFromJSON(json: any): Position;
declare function PositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Position;
declare function PositionToJSON(value?: Position | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Contiene tutti i tipi di nodi/archi orginirari dal Graphol per evitare di duplicare gli enumeratori. Nella rappresentazione Floaty/vkg vengono usati questi valori.
* NODI class data-property class-instance (vkg) individual (floaty) union disjoint-union iri (floaty iri range di annotazioni che non sono entità)
* ARCHI object-property annotation-property instance-of input inclusion equivalence attribute-edge union disjoint-union complete-union complete-disjoint-union
* @export
* @enum {string}
*/
declare enum TypesEnum {
CLASS = "class",
OBJECT_PROPERTY = "object-property",
DATA_PROPERTY = "data-property",
ANNOTATION_PROPERTY = "annotation-property",
INDIVIDUAL = "individual",
CLASS_INSTANCE = "class-instance",
DOMAIN_RESTRICTION = "domain-restriction",
RANGE_RESTRICTION = "range-restriction",
UNION = "union",
COMPLETE_UNION = "complete-union",
DISJOINT_UNION = "disjoint-union",
COMPLETE_DISJOINT_UNION = "complete-disjoint-union",
COMPLEMENT = "complement",
INTERSECTION = "intersection",
ENUMERATION = "enumeration",
HAS_KEY = "has-key",
ROLE_INVERSE = "role-inverse",
ROLE_CHAIN = "role-chain",
DATATYPE_RESTRICTION = "datatype-restriction",
VALUE_DOMAIN = "value-domain",
PROPERTY_ASSERTION = "property-assertion",
LITERAL = "literal",
FACET = "facet",
NEUTRAL = "neutral",
VALUE = "value",
INCLUSION = "inclusion",
EQUIVALENCE = "equivalence",
INSTANCE_OF = "instance-of",
INPUT = "input",
SAME = "same",
DIFFERENT = "different",
MEMBERSHIP = "membership",
ATTRIBUTE_EDGE = "attribute-edge",
IRI = "iri"
}
declare function TypesEnumFromJSON(json: any): TypesEnum;
declare function TypesEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypesEnum;
declare function TypesEnumToJSON(value?: TypesEnum | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface Edge
*/
interface Edge {
/**
*
* @type {string}
* @memberof Edge
*/
id: string;
/**
* In case of replicated elements, this is the ID of the original element replicated in multiple occurrences, all of them with different IDs
* @type {string}
* @memberof Edge
*/
originalId?: string;
/**
*
* @type {number}
* @memberof Edge
*/
diagramId?: number;
/**
*
* @type {string}
* @memberof Edge
*/
displayedName?: string;
/**
*
* @type {string}
* @memberof Edge
*/
iri?: string;
/**
*
* @type {TypesEnum}
* @memberof Edge
*/
type: TypesEnum;
/**
*
* @type {string}
* @memberof Edge
*/
sourceId: string;
/**
*
* @type {string}
* @memberof Edge
*/
targetId: string;
/**
*
* @type {Array<Position>}
* @memberof Edge
*/
breakpoints?: Array<Position>;
/**
*
* @type {boolean}
* @memberof Edge
*/
domainTyped?: boolean;
/**
*
* @type {boolean}
* @memberof Edge
*/
rangeTyped?: boolean;
/**
*
* @type {boolean}
* @memberof Edge
*/
domainMandatory?: boolean;
/**
*
* @type {boolean}
* @memberof Edge
*/
rangeMandatory?: boolean;
}
/**
* Check if a given object implements the Edge interface.
*/
declare function instanceOfEdge(value: object): boolean;
declare function EdgeFromJSON(json: any): Edge;
declare function EdgeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Edge;
declare function EdgeToJSON(value?: Edge | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface Annotation
*/
interface Annotation$1 {
/**
*
* @type {string}
* @memberof Annotation
*/
value: string;
/**
*
* @type {boolean}
* @memberof Annotation
*/
hasIriValue?: boolean;
/**
*
* @type {string}
* @memberof Annotation
*/
property: string;
/**
*
* @type {string}
* @memberof Annotation
*/
language?: string;
/**
*
* @type {string}
* @memberof Annotation
*/
datatype?: string;
}
/**
* Check if a given object implements the Annotation interface.
*/
declare function instanceOfAnnotation(value: object): boolean;
declare function AnnotationFromJSON(json: any): Annotation$1;
declare function AnnotationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Annotation$1;
declare function AnnotationToJSON(value?: Annotation$1 | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @enum {string}
*/
declare enum FunctionPropertiesEnum {
FUNCTIONAL = "functional",
INVERSE_FUNCTIONAL = "inverseFunctional",
TRANSITIVE = "transitive",
SYMMETRIC = "symmetric",
ASYMMETRIC = "asymmetric",
REFLEXIVE = "reflexive",
IRREFLEXIVE = "irreflexive"
}
declare function FunctionPropertiesEnumFromJSON(json: any): FunctionPropertiesEnum;
declare function FunctionPropertiesEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionPropertiesEnum;
declare function FunctionPropertiesEnumToJSON(value?: FunctionPropertiesEnum | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface Entity
*/
interface Entity {
/**
*
* @type {string}
* @memberof Entity
*/
fullIri: string;
/**
*
* @type {Array<Annotation>}
* @memberof Entity
*/
annotations?: Array<Annotation$1>;
/**
*
* @type {string}
* @memberof Entity
*/
datatype?: string;
/**
*
* @type {boolean}
* @memberof Entity
*/
isDataPropertyFunctional?: boolean;
/**
*
* @type {Array<FunctionPropertiesEnum>}
* @memberof Entity
*/
functionProperties?: Array<FunctionPropertiesEnum>;
}
/**
* Check if a given object implements the Entity interface.
*/
declare function instanceOfEntity(value: object): boolean;
declare function EntityFromJSON(json: any): Entity;
declare function EntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): Entity;
declare function EntityToJSON(value?: Entity | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface HierarchySuperclassesInner
*/
interface HierarchySuperclassesInner {
/**
*
* @type {Entity}
* @memberof HierarchySuperclassesInner
*/
classEntity: Entity;
/**
*
* @type {boolean}
* @memberof HierarchySuperclassesInner
*/
complete: boolean;
}
/**
* Check if a given object implements the HierarchySuperclassesInner interface.
*/
declare function instanceOfHierarchySuperclassesInner(value: object): boolean;
declare function HierarchySuperclassesInnerFromJSON(json: any): HierarchySuperclassesInner;
declare function HierarchySuperclassesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): HierarchySuperclassesInner;
declare function HierarchySuperclassesInnerToJSON(value?: HierarchySuperclassesInner | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface Hierarchy
*/
interface Hierarchy$1 {
/**
*
* @type {string}
* @memberof Hierarchy
*/
id: string;
/**
*
* @type {TypesEnum}
* @memberof Hierarchy
*/
type: TypesEnum;
/**
*
* @type {Array<Entity>}
* @memberof Hierarchy
*/
inputs: Array<Entity>;
/**
*
* @type {Array<HierarchySuperclassesInner>}
* @memberof Hierarchy
*/
superclasses: Array<HierarchySuperclassesInner>;
}
/**
* Check if a given object implements the Hierarchy interface.
*/
declare function instanceOfHierarchy(value: object): boolean;
declare function HierarchyFromJSON(json: any): Hierarchy$1;
declare function HierarchyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Hierarchy$1;
declare function HierarchyToJSON(value?: Hierarchy$1 | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface Node
*/
interface Node {
/**
*
* @type {string}
* @memberof Node
*/
id: string;
/**
* In case of replicated elements, this is the ID of the original element replicated in multiple occurrences, all of them with different IDs
* @type {string}
* @memberof Node
*/
originalId?: string;
/**
*
* @type {number}
* @memberof Node
*/
diagramId?: number;
/**
*
* @type {string}
* @memberof Node
*/
displayedName?: string;
/**
*
* @type {string}
* @memberof Node
*/
iri?: string;
/**
*
* @type {TypesEnum}
* @memberof Node
*/
type: TypesEnum;
/**
*
* @type {Position}
* @memberof Node
*/
position?: Position;
/**
*
* @type {Position}
* @memberof Node
*/
labelPosition?: Position;
/**
*
* @type {Position}
* @memberof Node
*/
geoPosition?: Position;
}
/**
* Check if a given object implements the Node interface.
*/
declare function instanceOfNode(value: object): boolean;
declare function NodeFromJSON(json: any): Node;
declare function NodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Node;
declare function NodeToJSON(value?: Node | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Other elements involved in an action. Only for Remove actions. The remove action on an Entity might involve other elements. i.e. object properties on removed classes
* @export
* @interface ActionInvolvedElements
*/
interface ActionInvolvedElements {
/**
*
* @type {Array<Node>}
* @memberof ActionInvolvedElements
*/
nodes?: Array<Node>;
/**
*
* @type {Array<Edge>}
* @memberof ActionInvolvedElements
*/
edges?: Array<Edge>;
/**
*
* @type {Array<Hierarchy>}
* @memberof ActionInvolvedElements
*/
hierarchies?: Array<Hierarchy$1>;
}
/**
* Check if a given object implements the ActionInvolvedElements interface.
*/
declare function instanceOfActionInvolvedElements(value: object): boolean;
declare function ActionInvolvedElementsFromJSON(json: any): ActionInvolvedElements;
declare function ActionInvolvedElementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionInvolvedElements;
declare function ActionInvolvedElementsToJSON(value?: ActionInvolvedElements | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface ActionUser
*/
interface ActionUser {
/**
*
* @type {string}
* @memberof ActionUser
*/
name: string;
/**
*
* @type {string}
* @memberof ActionUser
*/
firstName?: string;
/**
*
* @type {string}
* @memberof ActionUser
*/
lastName?: string;
/**
*
* @type {string}
* @memberof ActionUser
*/
email?: string;
}
/**
* Check if a given object implements the ActionUser interface.
*/
declare function instanceOfActionUser(value: object): boolean;
declare function ActionUserFromJSON(json: any): ActionUser;
declare function ActionUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionUser;
declare function ActionUserToJSON(value?: ActionUser | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Actions describes what user has done on a single element or element's metadata. The user can add, edit or remove something. The "something" is described by the operation involved in the action, it can be an operation over an entity, a diagram, a hierarchy and so on.
* Reverting an action means reverting the operation that has been done and it depends on the type of the action. - Add => Remove - Remove => Add - Edit => restore the previous state of the subject of the operation made
* @export
* @interface Action
*/
interface Action {
/**
*
* @type {string}
* @memberof Action
*/
operationType: ActionOperationTypeEnum;
/**
*
* @type {object}
* @memberof Action
*/
subject: object;
/**
*
* @type {object}
* @memberof Action
*/
previousState?: object;
/**
*
* @type {ActionInvolvedElements}
* @memberof Action
*/
involvedElements?: ActionInvolvedElements;
/**
*
* @type {Array<Action>}
* @memberof Action
*/
subactions?: Array<Action>;
/**
*
* @type {ActionUser}
* @memberof Action
*/
user: ActionUser;
/**
*
* @type {number}
* @memberof Action
*/
timestamp: number;
}
/**
* @export
* @enum {string}
*/
declare enum ActionOperationTypeEnum {
ADD = "add",
EDIT = "edit",
REMOVE = "remove"
}
/**
* Check if a given object implements the Action interface.
*/
declare function instanceOfAction(value: object): boolean;
declare function ActionFromJSON(json: any): Action;
declare function ActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Action;
declare function ActionToJSON(value?: Action | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface AnnotationAction
*/
interface AnnotationAction {
/**
*
* @type {Annotation}
* @memberof AnnotationAction
*/
subject?: Annotation$1;
/**
*
* @type {Annotation}
* @memberof AnnotationAction
*/
previousState?: Annotation$1;
/**
*
* @type {Entity}
* @memberof AnnotationAction
*/
entity?: Entity;
/**
*
* @type {boolean}
* @memberof AnnotationAction
*/
onOntology?: boolean;
/**
*
* @type {string}
* @memberof AnnotationAction
*/
operationType: AnnotationActionOperationTypeEnum;
/**
*
* @type {ActionInvolvedElements}
* @memberof AnnotationAction
*/
involvedElements?: ActionInvolvedElements;
/**
*
* @type {Array<Action>}
* @memberof AnnotationAction
*/
subactions?: Array<Action>;
/**
*
* @type {ActionUser}
* @memberof AnnotationAction
*/
user: ActionUser;
/**
*
* @type {number}
* @memberof AnnotationAction
*/
timestamp: number;
}
/**
* @export
* @enum {string}
*/
declare enum AnnotationActionOperationTypeEnum {
ADD = "add",
EDIT = "edit",
REMOVE = "remove"
}
/**
* Check if a given object implements the AnnotationAction interface.
*/
declare function instanceOfAnnotationAction(value: object): boolean;
declare function AnnotationActionFromJSON(json: any): AnnotationAction;
declare function AnnotationActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnotationAction;
declare function AnnotationActionToJSON(value?: AnnotationAction | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface DataPropertyValue
*/
interface DataPropertyValue {
/**
*
* @type {string}
* @memberof DataPropertyValue
*/
value: string;
/**
*
* @type {string}
* @memberof DataPropertyValue
*/
iri: string;
/**
*
* @type {string}
* @memberof DataPropertyValue
*/
language?: string;
/**
*
* @type {string}
* @memberof DataPropertyValue
*/
datatype?: string;
/**
*
* @type {Array<string>}
* @memberof DataPropertyValue
*/
renderingProperties?: Array<string>;
}
/**
* Check if a given object implements the DataPropertyValue interface.
*/
declare function instanceOfDataPropertyValue(value: object): boolean;
declare function DataPropertyValueFromJSON(json: any): DataPropertyValue;
declare function DataPropertyValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPropertyValue;
declare function DataPropertyValueToJSON(value?: DataPropertyValue | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface ClassInstanceEntity
*/
interface ClassInstanceEntity$1 {
/**
*
* @type {string}
* @memberof ClassInstanceEntity
*/
fullIri: string;
/**
*
* @type {Array<Annotation>}
* @memberof ClassInstanceEntity
*/
annotations?: Array<Annotation$1>;
/**
*
* @type {string}
* @memberof ClassInstanceEntity
*/
datatype?: string;
/**
*
* @type {boolean}
* @memberof ClassInstanceEntity
*/
isDataPropertyFunctional?: boolean;
/**
*
* @type {Array<FunctionPropertiesEnum>}
* @memberof ClassInstanceEntity
*/
functionProperties?: Array<FunctionPropertiesEnum>;
/**
*
* @type {Array<string>}
* @memberof ClassInstanceEntity
*/
parentClasses?: Array<string>;
/**
*
* @type {Array<DataPropertyValue>}
* @memberof ClassInstanceEntity
*/
dataProperties?: Array<DataPropertyValue>;
/**
*
* @type {string}
* @memberof ClassInstanceEntity
*/
shortIri?: string;
}
/**
* Check if a given object implements the ClassInstanceEntity interface.
*/
declare function instanceOfClassInstanceEntity(value: object): boolean;
declare function ClassInstanceEntityFromJSON(json: any): ClassInstanceEntity$1;
declare function ClassInstanceEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClassInstanceEntity$1;
declare function ClassInstanceEntityToJSON(value?: ClassInstanceEntity$1 | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface ClassInstanceEntityAllOf
*/
interface ClassInstanceEntityAllOf {
/**
*
* @type {Array<string>}
* @memberof ClassInstanceEntityAllOf
*/
parentClasses?: Array<string>;
/**
*
* @type {Array<DataPropertyValue>}
* @memberof ClassInstanceEntityAllOf
*/
dataProperties?: Array<DataPropertyValue>;
/**
*
* @type {string}
* @memberof ClassInstanceEntityAllOf
*/
shortIri?: string;
}
/**
* Check if a given object implements the ClassInstanceEntityAllOf interface.
*/
declare function instanceOfClassInstanceEntityAllOf(value: object): boolean;
declare function ClassInstanceEntityAllOfFromJSON(json: any): ClassInstanceEntityAllOf;
declare function ClassInstanceEntityAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClassInstanceEntityAllOf;
declare function ClassInstanceEntityAllOfToJSON(value?: ClassInstanceEntityAllOf | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface Viewport
*/
interface Viewport {
/**
*
* @type {Position}
* @memberof Viewport
*/
pan: Position;
/**
*
* @type {number}
* @memberof Viewport
*/
zoom: number;
}
/**
* Check if a given object implements the Viewport interface.
*/
declare function instanceOfViewport(value: object): boolean;
declare function ViewportFromJSON(json: any): Viewport;
declare function ViewportFromJSONTyped(json: any, ignoreDiscriminator: boolean): Viewport;
declare function ViewportToJSON(value?: Viewport | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface Diagram
*/
interface Diagram$1 {
/**
*
* @type {number}
* @memberof Diagram
*/
id: number;
/**
*
* @type {string}
* @memberof Diagram
*/
name: string;
/**
*
* @type {Array<Node>}
* @memberof Diagram
*/
nodes?: Array<Node>;
/**
*
* @type {Array<Edge>}
* @memberof Diagram
*/
edges?: Array<Edge>;
/**
*
* @type {Viewport}
* @memberof Diagram
*/
lastViewportState?: Viewport;
}
/**
* Check if a given object implements the Diagram interface.
*/
declare function instanceOfDiagram(value: object): boolean;
declare function DiagramFromJSON(json: any): Diagram$1;
declare function DiagramFromJSONTyped(json: any, ignoreDiscriminator: boolean): Diagram$1;
declare function DiagramToJSON(value?: Diagram$1 | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface DiagramAction
*/
interface DiagramAction {
/**
*
* @type {Diagram}
* @memberof DiagramAction
*/
subject?: Diagram$1;
/**
*
* @type {Diagram}
* @memberof DiagramAction
*/
previousState?: Diagram$1;
/**
*
* @type {string}
* @memberof DiagramAction
*/
operationType: DiagramActionOperationTypeEnum;
/**
*
* @type {ActionInvolvedElements}
* @memberof DiagramAction
*/
involvedElements?: ActionInvolvedElements;
/**
*
* @type {Array<Action>}
* @memberof DiagramAction
*/
subactions?: Array<Action>;
/**
*
* @type {ActionUser}
* @memberof DiagramAction
*/
user: ActionUser;
/**
*
* @type {number}
* @memberof DiagramAction
*/
timestamp: number;
}
/**
* @export
* @enum {string}
*/
declare enum DiagramActionOperationTypeEnum {
ADD = "add",
EDIT = "edit",
REMOVE = "remove"
}
/**
* Check if a given object implements the DiagramAction interface.
*/
declare function instanceOfDiagramAction(value: object): boolean;
declare function DiagramActionFromJSON(json: any): DiagramAction;
declare function DiagramActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiagramAction;
declare function DiagramActionToJSON(value?: DiagramAction | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface EdgeAction
*/
interface EdgeAction {
/**
*
* @type {Edge}
* @memberof EdgeAction
*/
subject: Edge;
/**
*
* @type {Edge}
* @memberof EdgeAction
*/
previousState?: Edge;
/**
*
* @type {string}
* @memberof EdgeAction
*/
operationType: EdgeActionOperationTypeEnum;
/**
*
* @type {ActionInvolvedElements}
* @memberof EdgeAction
*/
involvedElements?: ActionInvolvedElements;
/**
*
* @type {Array<Action>}
* @memberof EdgeAction
*/
subactions?: Array<Action>;
/**
*
* @type {ActionUser}
* @memberof EdgeAction
*/
user: ActionUser;
/**
*
* @type {number}
* @memberof EdgeAction
*/
timestamp: number;
}
/**
* @export
* @enum {string}
*/
declare enum EdgeActionOperationTypeEnum {
ADD = "add",
EDIT = "edit",
REMOVE = "remove"
}
/**
* Check if a given object implements the EdgeAction interface.
*/
declare function instanceOfEdgeAction(value: object): boolean;
declare function EdgeActionFromJSON(json: any): EdgeAction;
declare function EdgeActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): EdgeAction;
declare function EdgeActionToJSON(value?: EdgeAction | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface EdgeAllOf
*/
interface EdgeAllOf {
/**
*
* @type {string}
* @memberof EdgeAllOf
*/
sourceId: string;
/**
*
* @type {string}
* @memberof EdgeAllOf
*/
targetId: string;
/**
*
* @type {Array<Position>}
* @memberof EdgeAllOf
*/
breakpoints?: Array<Position>;
/**
*
* @type {boolean}
* @memberof EdgeAllOf
*/
domainTyped?: boolean;
/**
*
* @type {boolean}
* @memberof EdgeAllOf
*/
rangeTyped?: boolean;
/**
*
* @type {boolean}
* @memberof EdgeAllOf
*/
domainMandatory?: boolean;
/**
*
* @type {boolean}
* @memberof EdgeAllOf
*/
rangeMandatory?: boolean;
}
/**
* Check if a given object implements the EdgeAllOf interface.
*/
declare function instanceOfEdgeAllOf(value: object): boolean;
declare function EdgeAllOfFromJSON(json: any): EdgeAllOf;
declare function EdgeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): EdgeAllOf;
declare function EdgeAllOfToJSON(value?: EdgeAllOf | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface Element
*/
interface Element$1 {
/**
*
* @type {string}
* @memberof Element
*/
id: string;
/**
* In case of replicated elements, this is the ID of the original element replicated in multiple occurrences, all of them with different IDs
* @type {string}
* @memberof Element
*/
originalId?: string;
/**
*
* @type {number}
* @memberof Element
*/
diagramId?: number;
/**
*
* @type {string}
* @memberof Element
*/
displayedName?: string;
/**
*
* @type {string}
* @memberof Element
*/
iri?: string;
/**
*
* @type {TypesEnum}
* @memberof Element
*/
type: TypesEnum;
}
/**
* Check if a given object implements the Element interface.
*/
declare function instanceOfElement(value: object): boolean;
declare function ElementFromJSON(json: any): Element$1;
declare function ElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): Element$1;
declare function ElementToJSON(value?: Element$1 | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface EntityAction
*/
interface EntityAction {
/**
*
* @type {Entity}
* @memberof EntityAction
*/
subject?: Entity;
/**
*
* @type {Entity}
* @memberof EntityAction
*/
previousState?: Entity;
/**
*
* @type {string}
* @memberof EntityAction
*/
operationType: EntityActionOperationTypeEnum;
/**
*
* @type {ActionInvolvedElements}
* @memberof EntityAction
*/
involvedElements?: ActionInvolvedElements;
/**
*
* @type {Array<Action>}
* @memberof EntityAction
*/
subactions?: Array<Action>;
/**
*
* @type {ActionUser}
* @memberof EntityAction
*/
user: ActionUser;
/**
*
* @type {number}
* @memberof EntityAction
*/
timestamp: number;
}
/**
* @export
* @enum {string}
*/
declare enum EntityActionOperationTypeEnum {
ADD = "add",
EDIT = "edit",
REMOVE = "remove"
}
/**
* Check if a given object implements the EntityAction interface.
*/
declare function instanceOfEntityAction(value: object): boolean;
declare function EntityActionFromJSON(json: any): EntityAction;
declare function EntityActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityAction;
declare function EntityActionToJSON(value?: EntityAction | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface HierarchyAction
*/
interface HierarchyAction {
/**
*
* @type {Hierarchy}
* @memberof HierarchyAction
*/
subject?: Hierarchy$1;
/**
*
* @type {string}
* @memberof HierarchyAction
*/
diagramId: string;
/**
*
* @type {Hierarchy}
* @memberof HierarchyAction
*/
previousState?: Hierarchy$1;
}
/**
* Check if a given object implements the HierarchyAction interface.
*/
declare function instanceOfHierarchyAction(value: object): boolean;
declare function HierarchyActionFromJSON(json: any): HierarchyAction;
declare function HierarchyActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): HierarchyAction;
declare function HierarchyActionToJSON(value?: HierarchyAction | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface Namespace
*/
interface Namespace$1 {
/**
*
* @type {string}
* @memberof Namespace
*/
value: string;
/**
*
* @type {Array<string>}
* @memberof Namespace
*/
prefixes: Array<string>;
}
/**
* Check if a given object implements the Namespace interface.
*/
declare function instanceOfNamespace(value: object): boolean;
declare function NamespaceFromJSON(json: any): Namespace$1;
declare function NamespaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Namespace$1;
declare function NamespaceToJSON(value?: Namespace$1 | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface NamespaceAction
*/
interface NamespaceAction {
/**
*
* @type {Namespace}
* @memberof NamespaceAction
*/
subject: Namespace$1;
/**
*
* @type {Namespace}
* @memberof NamespaceAction
*/
previousState?: Namespace$1;
/**
*
* @type {string}
* @memberof NamespaceAction
*/
operationType: NamespaceActionOperationTypeEnum;
/**
*
* @type {ActionInvolvedElements}
* @memberof NamespaceAction
*/
involvedElements?: ActionInvolvedElements;
/**
*
* @type {Array<Action>}
* @memberof NamespaceAction
*/
subactions?: Array<Action>;
/**
*
* @type {ActionUser}
* @memberof NamespaceAction
*/
user: ActionUser;
/**
*
* @type {number}
* @memberof NamespaceAction
*/
timestamp: number;
}
/**
* @export
* @enum {string}
*/
declare enum NamespaceActionOperationTypeEnum {
ADD = "add",
EDIT = "edit",
REMOVE = "remove"
}
/**
* Check if a given object implements the NamespaceAction interface.
*/
declare function instanceOfNamespaceAction(value: object): boolean;
declare function NamespaceActionFromJSON(json: any): NamespaceAction;
declare function NamespaceActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamespaceAction;
declare function NamespaceActionToJSON(value?: NamespaceAction | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface NodeAction
*/
interface NodeAction {
/**
*
* @type {Node}
* @memberof NodeAction
*/
subject: Node;
/**
*
* @type {Node}
* @memberof NodeAction
*/
previousState?: Node;
/**
*
* @type {string}
* @memberof NodeAction
*/
operationType: NodeActionOperationTypeEnum;
/**
*
* @type {ActionInvolvedElements}
* @memberof NodeAction
*/
involvedElements?: ActionInvolvedElements;
/**
*
* @type {Array<Action>}
* @memberof NodeAction
*/
subactions?: Array<Action>;
/**
*
* @type {ActionUser}
* @memberof NodeAction
*/
user: ActionUser;
/**
*
* @type {number}
* @memberof NodeAction
*/
timestamp: number;
}
/**
* @export
* @enum {string}
*/
declare enum NodeActionOperationTypeEnum {
ADD = "add",
EDIT = "edit",
REMOVE = "remove"
}
/**
* Check if a given object implements the NodeAction interface.
*/
declare function instanceOfNodeAction(value: object): boolean;
declare function NodeActionFromJSON(json: any): NodeAction;
declare function NodeActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeAction;
declare function NodeActionToJSON(value?: NodeAction | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface NodeAllOf
*/
interface NodeAllOf {
/**
*
* @type {Position}
* @memberof NodeAllOf
*/
position?: Position;
/**
*
* @type {Position}
* @memberof NodeAllOf
*/
labelPosition?: Position;
/**
*
* @type {Position}
* @memberof NodeAllOf
*/
geoPosition?: Position;
}
/**
* Check if a given object implements the NodeAllOf interface.
*/
declare function instanceOfNodeAllOf(value: object): boolean;
declare function NodeAllOfFromJSON(json: any): NodeAllOf;
declare function NodeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeAllOf;
declare function NodeAllOfToJSON(value?: NodeAllOf | null): any;
/**
* Grapholscape API model
* This is the API for retaining a Grapholscape\'s loaded ontology (or graph) in order to restart navigation from a previous state.
*
* The version of the OpenAPI document: 1.0.0
* Contact: obdasystems@info.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface OntologyDraftInfo
*/
interface OntologyDraftInfo {
/**
*
* @type {string}
* @memberof OntologyDraftInfo
*/
name?: string;
/**
*
* @type {string}
* @memberof OntologyDraftInfo
*/
iri?: string;
/**
*
* @type {string}
* @memberof OntologyDraftInfo
*/
version?: string;
/**
*
* @type {n