Variable default

default: {
    filter: any[];
    id: string;
    initialView: {
        graph: (string | { x: number; y: number })[][];
        title: string;
        type: number;
        version: string;
    };
    legend: string;
    links: {
        featureRequest: string;
        feedbackOntology: string;
        homepage: string;
        metamodel: string;
        rdfBrowser: string;
        sparqlEndpoint: string;
        youtube: any;
    };
    name: string;
    snik: any;
    sparql: {
        endpoint: string;
        graph: string;
        instances: boolean;
        queries: {
            nodes: (from: string) => string;
            triples: (
                from: string,
                fromNamed: string,
                virtualTriples: boolean,
                instances: boolean,
            ) => string;
        };
    };
    style: {
        color: (node: string | NodeSingular) => string;
        colorMap: Map<string, string>;
        shape: (node: NodeSingular) => string;
    };
    title: string;
}

Type declaration

  • filter: any[]
  • id: string
  • initialView: {
        graph: (string | { x: number; y: number })[][];
        title: string;
        type: number;
        version: string;
    }
  • legend: string
  • links: {
        featureRequest: string;
        feedbackOntology: string;
        homepage: string;
        metamodel: string;
        rdfBrowser: string;
        sparqlEndpoint: string;
        youtube: any;
    }
  • name: string
  • snik: any
  • sparql: {
        endpoint: string;
        graph: string;
        instances: boolean;
        queries: {
            nodes: (from: string) => string;
            triples: (
                from: string,
                fromNamed: string,
                virtualTriples: boolean,
                instances: boolean,
            ) => string;
        };
    }
    • endpoint: string
    • graph: string
    • instances: boolean
    • queries: {
          nodes: (from: string) => string;
          triples: (
              from: string,
              fromNamed: string,
              virtualTriples: boolean,
              instances: boolean,
          ) => string;
      }
      • nodes: (from: string) => string

        Get SPARQL Query which loads the list of nodes from which all triples are formed. Only nodes with labels which are an owl:Class and their instances are loaded.

      • triples: (
            from: string,
            fromNamed: string,
            virtualTriples: boolean,
            instances: boolean,
        ) => string

        Loads all triples from HITO which we display.

  • style: {
        color: (node: string | NodeSingular) => string;
        colorMap: Map<string, string>;
        shape: (node: NodeSingular) => string;
    }
    • color: (node: string | NodeSingular) => string

      Finds out which shape to use for any specific node using a map. If the node contains any of the keys in the map, use this color. If the node B contains any of these words and is the rdf:type of node A, then node A also has this shape. If none of this is true, then the node will be orange.

    • colorMap: Map<string, string>
    • shape: (node: NodeSingular) => string

      Finds out which shape to use for any specific node using a map (Citation => rectangle, Classified => ellipse, Catalogue => triangle). If the node contains any of these words, use the shape. If the node B contains any of these words and is the rdf:type of node A, then node A also has this shape. If none of this is true, then the node will be a hexagon.

  • title: string