|
| 1 | +/** Configuration template with default values. |
| 2 | +Copy to js/config.ts after checkout and adapt to your preferences. |
| 3 | +*/ |
| 4 | + |
| 5 | +import type { LogLevelDesc } from "loglevel"; |
| 6 | + |
| 7 | +export const config = { |
| 8 | + defaultSubOntologies: ["meta", "bb", "ob", "ciox", "he", "it4it"], |
| 9 | + allSubOntologies: ["meta", "bb", "ob", "ciox", "he", "he-unconsolidated", "it4it"], |
| 10 | + loadJsonLayoutAsInitialView: true, // ViewJson of type ViewJsonType.LAYOUT located in js/initialLayout.json |
| 11 | + color: new Map([ |
| 12 | + ["ciox", "rgb(80,255,250)"], |
| 13 | + ["meta", "rgb(255,80,80)"], |
| 14 | + ["ob", "rgb(255,173,30)"], |
| 15 | + ["bb", "rgb(30,152,255)"], |
| 16 | + ["he", "rgb(150,255,120)"], |
| 17 | + ["it", "rgb(204, 0, 204)"], |
| 18 | + ["it4it", "rgb(255, 255, 0)"], |
| 19 | + ]), |
| 20 | + nodeSize: 39, |
| 21 | + helperGraphs: ["limes-exact", "match"], |
| 22 | + activeOptions: ["edgecolor"], // initially active options, choose a subset of: ["dev", "ext","day", "edgecolor"] |
| 23 | + searchCloseMatch: true, // true is rejected because of the high estimated time by the SPARQL endpoint because of too many optional clauses |
| 24 | + // only used for mobile, desktop will always use cxttapstart |
| 25 | + logLevelConsole: "debug" as LogLevelDesc, |
| 26 | + logLevelDisplay: "info" as LogLevelDesc, |
| 27 | + logLevelMemory: "debug" as LogLevelDesc, |
| 28 | + layoutCacheMinRecall: 0.95, |
| 29 | + layoutCacheMinPrecision: 0.5, |
| 30 | + language: "en", |
| 31 | + download: { |
| 32 | + image: { |
| 33 | + max: { width: 5000, height: 4000 }, |
| 34 | + standard: { width: 1920, height: 1920 }, |
| 35 | + }, |
| 36 | + }, |
| 37 | + sparql: { |
| 38 | + endpoint: "https://www.snik.eu/sparql", |
| 39 | + graph: "http://www.snik.eu/ontology", |
| 40 | + instances: false, |
| 41 | + isSnik: true, |
| 42 | + // How to identify relations to display |
| 43 | + // A SPARQL query is run: |
| 44 | + // (a) ... { ?c ?r ?d } { ?c a owl:Class } { ?d a owl:Class } |
| 45 | + // (b) ... { ?c ?r ?d } { ?c xx:someIdVal ?x } { ?d xx:someIdVal ?y } |
| 46 | + // Either value "owl:class" for option (a) or an id (e.g. "hito:internalId" or "https://hitontology.eu/ontology/internalId") for option (b) |
| 47 | + // For SNIK and probably many others (like DBPedia), this should be "a owl:Class". For HITO this should be "hito:internalId". |
| 48 | + classId: "a owl:Class", |
| 49 | + }, |
| 50 | + multiview: { |
| 51 | + initialTabs: 1, |
| 52 | + warnOnSessionLoad: true, |
| 53 | + }, |
| 54 | + git: { |
| 55 | + defaultIssueAssignee: "KonradHoeffner", // if you fork, please change |
| 56 | + issueLabels: { |
| 57 | + confirmLink: "link", |
| 58 | + editNode: "", |
| 59 | + editEdge: "", |
| 60 | + deleteEdge: "deletetripel", |
| 61 | + deleteNode: "deleteclass", |
| 62 | + }, |
| 63 | + repo: { |
| 64 | + ontology: "https://github.com/snikproject/ontology", |
| 65 | + application: "https://github.com/snikproject/graph", |
| 66 | + }, |
| 67 | + }, |
| 68 | +}; |
0 commit comments