Commit 7b2aa8e2 authored by Romain Loth's avatar Romain Loth

more attribute examples

parent e8ca5781
...@@ -30,48 +30,10 @@ ...@@ -30,48 +30,10 @@
} }
}, },
"data/AXA": { "data/AXA": {
"dbname":"data.db",
"title":"ISITITLE",
"date":"ISIpubdate",
"abstract":"ISIABSTRACT",
"first" : "RiskV2PageRank1000.gexf", "first" : "RiskV2PageRank1000.gexf",
"gexfs": { "gexfs": {
"RiskV2PageRank1000.gexf": { "RiskV2PageRank1000.gexf": {},
"social": { "table":"ISIAUTHOR" , "textCol":"data","forkeyCol":"id"}, "RiskV2PageRank5000.gexf": {}
"semantic": { "table":"ISItermsAxa_2015" , "textCol":"data","forkeyCol":"id"}
},
"RiskV2PageRank2500.gexf": {
"social": { "table":"ISIAUTHOR" , "textCol":"data","forkeyCol":"id"},
"semantic": { "table":"ISItermsAxa_2015" , "textCol":"data","forkeyCol":"id"}
},
"RiskV2PageRank5000.gexf": {
"social": { "table":"ISIAUTHOR" , "textCol":"data","forkeyCol":"id"},
"semantic": { "table":"ISItermsAxa_2015" , "textCol":"data","forkeyCol":"id"}
}
}
},
"data/ClimateChange": {
"dbname":"wos_climate-change_title_2014-2015.db",
"title":"ISITITLE",
"date":"ISIpubdate",
"abstract":"ISIABSTRACT",
"gexfs": {
"Maps_S_800.gexf": {
"social": { "table":"ISIAUTHOR" , "textCol":"data","forkeyCol":"id"},
"semantic": { "table":"ISItermsWhitelistV2Oct_5" , "textCol":"data","forkeyCol":"id"}
}
}
},
"data/medq2/": {
"dbname":"02_medline-query2.db",
"title":"ArticleTitle",
"date":"ISIpubdate",
"abstract":"Abstract",
"gexfs": {
"20141208_MED_Author_name-ISItermsjulien_index.gexf": {
"social": { "table":"Author_name" , "textCol":"data","forkeyCol":"id"},
"semantic": { "table":"ISItermsBigWL" , "textCol":"data","forkeyCol":"id"}
}
} }
} }
} }
...@@ -16,7 +16,7 @@ TW.conf = (function(TW){ ...@@ -16,7 +16,7 @@ TW.conf = (function(TW){
// Graph data source // Graph data source
// ----------------- // -----------------
// the graph input depends on TWConf.sourcemode (or manual url arg 'sourcemode') // the graph input depends on TWConf.sourcemode (or manual url arg 'sourcemode')
TWConf.sourcemode = "api" // accepted: "api" | "serverfile" | "servermenu" | "localfile" TWConf.sourcemode = "servermenu" // accepted: "api" | "serverfile" | "servermenu" | "localfile"
// server-side .gexf|.json default source // server-side .gexf|.json default source
TWConf.sourceFile = "data/politoscope/ProgrammeDesCandidats.enrichi.gexf" TWConf.sourceFile = "data/politoscope/ProgrammeDesCandidats.enrichi.gexf"
...@@ -69,10 +69,23 @@ TW.conf = (function(TW){ ...@@ -69,10 +69,23 @@ TW.conf = (function(TW){
// -------------------------------------------------------------------- // --------------------------------------------------------------------
'age' : {'col': "gradient", 'n': 4, 'binmode': 'samerange'}, 'age' : {'col': "gradient", 'n': 4, 'binmode': 'samerange'},
'growth_rate' : {'col': "heatmap", 'n': 5, 'binmode': 'samepop' }, 'growth_rate' : {'col': "heatmap", 'n': 5, 'binmode': 'samepop' },
'PageRank' : {'col': "gradient", 'n': 4, 'binmode': 'samerange' }, 'PageRank' : {'col': "gradient", 'n': 6, 'binmode': 'samerange' },
'numuniform' : {'col': "heatmap", 'n': 7, 'binmode': 'samepop' }, 'numuniform' : {'col': "heatmap", 'n': 7, 'binmode': 'samepop' },
'numpareto' : {'col': "gradient", 'n': 5, 'binmode': 'samerange'}, 'numpareto' : {'col': "gradient", 'n': 5, 'binmode': 'samerange'},
'intfewvalues' : {'col': "cluster" , 'n': 4, 'binmode': 'samerange'}, 'intfewvalues' : {'col': "cluster" , 'n': 4, 'binmode': 'samerange'},
'period' : {'col': "cluster" , 'binmode': 'off'},
'in-degree' : {'col': "heatmap" , 'n': 3, 'binmode': 'samepop' },
'cluster_index' : {'col': "cluster" , 'binmode': 'off'},
'cluster_label' : {'col': "cluster" , 'binmode': 'off'},
'betweeness' : {'col': "gradient", 'n': 4, 'binmode': 'samepop' },
'level' : {'col': "heatmap" , 'binmode': 'off' },
'weight' : {'col': "heatmap" , 'n': 5, 'binmode': 'samerange' },
'Weighted Degree' : {'col': "gradient", 'n': 8, 'binmode': 'samepop' },
'Eigenvector Centrality':{'col':"heatmap" , 'n': 9, 'binmode': 'samepop' },
'out-degree' : {'col': "heatmap" , 'n': 3, 'binmode': 'samepop' },
'cluster_universal_index' : {'col': "cluster" , 'binmode': 'off'},
'community_orphan' : {'col': "cluster" , 'binmode': 'off'},
'Modularity Class': {'col': "cluster", 'binmode': 'off'}, // <== exemple with no binning 'Modularity Class': {'col': "cluster", 'binmode': 'off'}, // <== exemple with no binning
'countryuniform' : {'col': "cluster" , 'binmode': 'off'}, 'countryuniform' : {'col': "cluster" , 'binmode': 'off'},
'countrypareto' : {'col': "cluster" , 'binmode': 'off'}, 'countrypareto' : {'col': "cluster" , 'binmode': 'off'},
...@@ -151,7 +164,7 @@ TW.conf = (function(TW){ ...@@ -151,7 +164,7 @@ TW.conf = (function(TW){
// if fa2Available, the auto-run config: // if fa2Available, the auto-run config:
TWConf.fa2Enabled= true; // fa2 auto-run at start and after graph modified ? TWConf.fa2Enabled= false; // fa2 auto-run at start and after graph modified ?
TWConf.fa2Milliseconds=5000; // duration of auto-run TWConf.fa2Milliseconds=5000; // duration of auto-run
TWConf.minNodesForAutoFA2 = 5 // graph size threshold to auto-run TWConf.minNodesForAutoFA2 = 5 // graph size threshold to auto-run
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment