Commit 921b3dd7 authored by Romain Loth's avatar Romain Loth

update doc, presets and test set with new spec

parent 9fbbbd43
"title" "pubdate" "author" "journal" "keywords" "text"
"python is nice" "2001" "Asher,Lutz" "areview" "python, forest" "hic in Palatio prima urbi fundamenta ieci. arcem iam scelere emptam Sabini habent"
"python is cool" "2003" "-cc-" "areview" "python, ocean" "hic in Palatio prima urbi fundamenta ieci. arcem iam scelere emptam Sabini habent"
"scala is great" "2003" "Odersky" "areviewB" "scala, crop" "hic in Palatio prima urbi fundamenta ieci. arcem iam scelere emptam Sabini habent"
"php is expressive" "2005" "Nixon" "areview" "php, mysql" "hic in Palatio prima urbi fundamenta ieci. arcem iam scelere emptam Sabini habent"
"php is expressive2" "2010" "-bb-" "areviewB" "php, web" "hic in Palatio prima urbi fundamenta ieci. arcem iam scelere emptam Sabini habent"
"javascript rules the web" "2005" "someguy,anotherguy" "areviewC" "javascript, web" "hic in Palatio prima urbi fundamenta ieci. arcem iam scelere emptam Sabini habent"
"a cool article" "2008" "-dd-" "areview" "coolness, ecosystem" "hic in Palatio prima urbi fundamenta ieci. arcem iam scelere emptam Sabini habent"
"another cool article" "2001" "-aa-" "areview" "coastal, coolness" "hic in Palatio prima urbi fundamenta ieci. arcem iam scelere emptam Sabini habent"
"a js primer" "2004" "mandelbrot" "areviewC" "coolness, ecosystem, grain yield" "hic in Palatio prima urbi fundamenta ieci. arcem iam scelere emptam Sabini habent"
"a scala js primer" "2004" "somebody" "areviewC" "keyword, ecosystem, growth response" "hic in Palatio prima urbi fundamenta ieci. arcem iam scelere emptam Sabini habent"
...@@ -58,18 +58,47 @@ TWConf.relatedDocsType = "LocalDB" (CSV or CortextDB) ...@@ -58,18 +58,47 @@ TWConf.relatedDocsType = "LocalDB" (CSV or CortextDB)
Finally, to match the correct DB with the correct graph file: Finally, to match the correct DB with the correct graph file:
- both should reside in `data/yoursubdir` - both should reside in `data/yoursubdir`
- the appropriate source database information needs to appear in `db.json` in order to associate the graph source file (eg gexf) with this related docs API: - the appropriate source database information needs to appear in `db.json` in order to associate the graph source file (eg gexf) with this related docs API:
```json ```json
"data/yoursubdir": { "data/yoursubdir": {
"dbname":"your.sqlite.db",
"title":"yourDocumentTitlesTable",
"date":"yourDocumentPubDatesTable",
"abstract":"yourDocumentContentsTable",
"graphs": { "graphs": {
"your.graph.gexf": { "your.graph.gexf": {
"semantic": { "table":"yourTableWithTerms"}, "node0": {
"social": { "table":"yourTableWithSocialNodes"} "name": "terms",
"reldbtype": "CortextDB",
"reldbfile": "yourDB.db",
"reldbqtable": "yourTableWithTerms"
},
"node1": {
"name": "people",
"reldbtype": "CortextDB",
"reldbfile": "yourDB.db",
"reldbqtable": "yourTableWithSocialNodes"
},
}
}
},
"data/anothersubdir": {
"graphs": {
"another.graph.gexf": {
"node0": {
"name": "terms",
"reldbtype": "csv",
"reldbfile": "aCsvByDocs.csv",
"reldbqcols": ["title", "text", "keywords"]
},
"node1": {
"name": "people",
"reldbtype": "csv",
"reldbfile": "aCsvByDocs.csv",
"reldbqcols": ["authors", "editors"]
},
} }
} }
} }
``` ```
£TODO update after new specifications implemented
See more exemples and explanations in [servermenu_config.md](https://github.com/moma/ProjectExplorer/blob/master/00.DOCUMENTATION/A-Introduction/servermenu_config.md).
...@@ -19,12 +19,6 @@ TW.conf = (function(TW){ ...@@ -19,12 +19,6 @@ TW.conf = (function(TW){
// 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 = "api" // accepted: "api" | "serverfile" | "servermenu" | "localfile"
// server-side .gexf|.json default source
TWConf.sourceFile = ""
// ...or server-side gexf default source list
TWConf.sourceMenu = "db.json"
// ...or remote bridge to default source api ajax queries // ...or remote bridge to default source api ajax queries
TWConf.sourceAPI={}; TWConf.sourceAPI={};
TWConf.sourceAPI["forNormalQuery"] = "services/api/graph"; TWConf.sourceAPI["forNormalQuery"] = "services/api/graph";
...@@ -163,8 +157,10 @@ TW.conf = (function(TW){ ...@@ -163,8 +157,10 @@ TW.conf = (function(TW){
// Modules path // Modules path
// ------------ // ------------
TWConf.paths = { TWConf.paths = {
'ourlibs': 'static/tinawebJS/twlibs', 'ourlibs': 'twlibs',
'modules': 'twmodules' 'modules': 'twmodules',
'sourceFile': "", // server-side .gexf|.json default source
'sourceMenu': "db.json" // ...or server-side gexf default source list
} }
Object.freeze(TWConf.paths) // /!\ to prevent path modification before load Object.freeze(TWConf.paths) // /!\ to prevent path modification before load
...@@ -186,7 +182,7 @@ TW.conf = (function(TW){ ...@@ -186,7 +182,7 @@ TW.conf = (function(TW){
TWConf.filterSliders = true // show sliders for nodes/edges subsets TWConf.filterSliders = true // show sliders for nodes/edges subsets
TWConf.clusterColorsAtt = true; // show "Set colors" menu TWConf.colorByAtt = true; // show "Set colors" menu
TWConf.dragNodesAvailable = true; // allow dragging nodes with CTRL+click TWConf.dragNodesAvailable = true; // allow dragging nodes with CTRL+click
......
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