Skip to content

Commit e61c3f0

Browse files
fix: disable reset style showing hidden nodes as temporary workaround for issue #464
1 parent 437f704 commit e61c3f0

File tree

2 files changed

+69
-1
lines changed

2 files changed

+69
-1
lines changed

js/browser/graph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class Graph {
9393
this.cy.startBatch();
9494
this.cy.elements().removeClass("highlighted");
9595
this.cy.elements().removeClass("starmode");
96-
this.cy.elements().removeClass("hidden");
96+
//this.cy.elements().removeClass("hidden"); // temporarily comment this out as a workaround for https://github.com/snikproject/graph/issues/464
9797
// keep "rdf:type"-edges hidden
9898
Graph.setVisible(this.cy.edges("[p='http://www.w3.org/1999/02/22-rdf-syntax-ns#type']"), false);
9999
/*

js/config.ts

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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

Comments
 (0)