mirror of
https://github.com/nhammer514/textfiles-politics.git
synced 2024-12-26 15:59:29 -05:00
person & ent network
This commit is contained in:
parent
ea5c6b14db
commit
27fd3ec7f9
15936
xquery/ent-file-net.tsv
Normal file
15936
xquery/ent-file-net.tsv
Normal file
File diff suppressed because it is too large
Load Diff
BIN
xquery/ent-file-net.zip
Normal file
BIN
xquery/ent-file-net.zip
Normal file
Binary file not shown.
157
xquery/ent-file-net/web_session/404.html
Normal file
157
xquery/ent-file-net/web_session/404.html
Normal file
@ -0,0 +1,157 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Page Not Found :(</title>
|
||||||
|
<style>
|
||||||
|
::-moz-selection {
|
||||||
|
background: #b3d4fc;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
::selection {
|
||||||
|
background: #b3d4fc;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
padding: 30px 10px;
|
||||||
|
font-size: 20px;
|
||||||
|
line-height: 1.4;
|
||||||
|
color: #737373;
|
||||||
|
background: #f0f0f0;
|
||||||
|
-webkit-text-size-adjust: 100%;
|
||||||
|
-ms-text-size-adjust: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
html,
|
||||||
|
input {
|
||||||
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
max-width: 500px;
|
||||||
|
_width: 500px;
|
||||||
|
padding: 30px 20px 50px;
|
||||||
|
border: 1px solid #b3b3b3;
|
||||||
|
border-radius: 4px;
|
||||||
|
margin: 0 auto;
|
||||||
|
box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff;
|
||||||
|
background: #fcfcfc;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin: 0 10px;
|
||||||
|
font-size: 50px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 span {
|
||||||
|
color: #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin: 1.5em 0 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
padding: 0 0 0 40px;
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
max-width: 380px;
|
||||||
|
_width: 380px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* google search */
|
||||||
|
|
||||||
|
#goog-fixurl ul {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#goog-fixurl form {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#goog-wm-qt,
|
||||||
|
#goog-wm-sb {
|
||||||
|
border: 1px solid #bbb;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: normal;
|
||||||
|
vertical-align: top;
|
||||||
|
color: #444;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#goog-wm-qt {
|
||||||
|
width: 220px;
|
||||||
|
height: 20px;
|
||||||
|
padding: 5px;
|
||||||
|
margin: 5px 10px 0 0;
|
||||||
|
box-shadow: inset 0 1px 1px #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
#goog-wm-sb {
|
||||||
|
display: inline-block;
|
||||||
|
height: 32px;
|
||||||
|
padding: 0 10px;
|
||||||
|
margin: 5px 0 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
background-image: -webkit-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
||||||
|
background-image: -moz-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
||||||
|
background-image: -ms-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
||||||
|
background-image: -o-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
||||||
|
-webkit-appearance: none;
|
||||||
|
-moz-appearance: none;
|
||||||
|
appearance: none;
|
||||||
|
*overflow: visible;
|
||||||
|
*display: inline;
|
||||||
|
*zoom: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#goog-wm-sb:hover,
|
||||||
|
#goog-wm-sb:focus {
|
||||||
|
border-color: #aaa;
|
||||||
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
||||||
|
background-color: #f8f8f8;
|
||||||
|
}
|
||||||
|
|
||||||
|
#goog-wm-qt:hover,
|
||||||
|
#goog-wm-qt:focus {
|
||||||
|
border-color: #105cb6;
|
||||||
|
outline: 0;
|
||||||
|
color: #222;
|
||||||
|
}
|
||||||
|
|
||||||
|
input::-moz-focus-inner {
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<h1>Not found <span>:(</span></h1>
|
||||||
|
<p>Sorry, but the page you were trying to view does not exist.</p>
|
||||||
|
<p>It looks like this was the result of either:</p>
|
||||||
|
<ul>
|
||||||
|
<li>a mistyped address</li>
|
||||||
|
<li>an out-of-date link</li>
|
||||||
|
</ul>
|
||||||
|
<script>
|
||||||
|
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
|
||||||
|
</script>
|
||||||
|
<script src="//linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
BIN
xquery/ent-file-net/web_session/favicon.ico
Normal file
BIN
xquery/ent-file-net/web_session/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
32
xquery/ent-file-net/web_session/index.html
Normal file
32
xquery/ent-file-net/web_session/index.html
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html class="no-js">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Exports from Cytoscape</title>
|
||||||
|
<meta name="description" content="Single network exported from Cytoscape 3.3">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="styles/main.css">
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!--[if lt IE 10]>
|
||||||
|
<p class="browsehappy">
|
||||||
|
You are using an <strong>ancient</strong> browser.
|
||||||
|
Please <a href="http://browsehappy.com/">upgrade your browser
|
||||||
|
</a> to improve your experience.
|
||||||
|
</p>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Actual Cytoscape.js Instance -->
|
||||||
|
<div id="cy"></div>
|
||||||
|
|
||||||
|
<script src="networks.js"></script>
|
||||||
|
<script src="styles.js"></script>
|
||||||
|
|
||||||
|
<script src="scripts/vendor.js"></script>
|
||||||
|
<script src="scripts/main.js"></script>
|
||||||
|
<script src="scripts/custom.js"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
239277
xquery/ent-file-net/web_session/networks.js
Normal file
239277
xquery/ent-file-net/web_session/networks.js
Normal file
File diff suppressed because it is too large
Load Diff
3
xquery/ent-file-net/web_session/robots.txt
Normal file
3
xquery/ent-file-net/web_session/robots.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# robotstxt.org/
|
||||||
|
|
||||||
|
User-agent: *
|
15
xquery/ent-file-net/web_session/scripts/custom.js
Normal file
15
xquery/ent-file-net/web_session/scripts/custom.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
$( document ).ready(function(){
|
||||||
|
// Custom Cytoscape.JS code goes here.
|
||||||
|
|
||||||
|
// Example: add linkouts to nodes that opens the "href" node attribute on click
|
||||||
|
// cy.on('tap', 'node', function(){
|
||||||
|
// try { // your browser may block popups
|
||||||
|
// window.open( this.data('href') );
|
||||||
|
// } catch(e){ // fall back on url change
|
||||||
|
// window.location.href = this.data('href');
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
|
// For more options, check out http://js.cytoscape.org/
|
||||||
|
|
||||||
|
});
|
29
xquery/ent-file-net/web_session/scripts/main.js
Normal file
29
xquery/ent-file-net/web_session/scripts/main.js
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
$(function() {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
function e(e, n) {
|
||||||
|
for (var t = n.length, o = 0; t >= o; o++) {
|
||||||
|
var s = n[o].title;
|
||||||
|
if (s === e) return n[o]
|
||||||
|
}
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
var n = "#cy",
|
||||||
|
network = networks[Object.keys(networks)[0]],
|
||||||
|
style = styles[0];
|
||||||
|
$(n).cytoscape({
|
||||||
|
layout: {
|
||||||
|
name: "preset",
|
||||||
|
padding: 10
|
||||||
|
},
|
||||||
|
boxSelectionEnabled: !0,
|
||||||
|
ready: function() {
|
||||||
|
window.cy = this,
|
||||||
|
cy.load(network.elements), console.log(network);
|
||||||
|
console.log(style);
|
||||||
|
var o = e("default", style);
|
||||||
|
null === o && (o = style), cy.style().fromJson(o.style).update()
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
});
|
15467
xquery/ent-file-net/web_session/scripts/vendor.js
Normal file
15467
xquery/ent-file-net/web_session/scripts/vendor.js
Normal file
File diff suppressed because it is too large
Load Diff
95
xquery/ent-file-net/web_session/styles.js
Normal file
95
xquery/ent-file-net/web_session/styles.js
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
var styles = [ {
|
||||||
|
"format_version" : "1.0",
|
||||||
|
"generated_by" : "cytoscape-3.9.1",
|
||||||
|
"target_cytoscapejs_version" : "~2.1",
|
||||||
|
"title" : "default",
|
||||||
|
"style" : [ {
|
||||||
|
"selector" : "node",
|
||||||
|
"css" : {
|
||||||
|
"color" : "rgb(255,255,255)",
|
||||||
|
"width" : 35.0,
|
||||||
|
"height" : 35.0,
|
||||||
|
"background-color" : "rgb(33,113,181)",
|
||||||
|
"font-family" : "SansSerif.plain",
|
||||||
|
"font-weight" : "normal",
|
||||||
|
"shape" : "roundrectangle",
|
||||||
|
"background-opacity" : 1.0,
|
||||||
|
"font-size" : 12,
|
||||||
|
"border-opacity" : 1.0,
|
||||||
|
"border-width" : 0.0,
|
||||||
|
"text-valign" : "center",
|
||||||
|
"text-halign" : "center",
|
||||||
|
"border-color" : "rgb(204,204,204)",
|
||||||
|
"text-opacity" : 1.0,
|
||||||
|
"content" : "data(name)"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "node[Column_2 = 'person']",
|
||||||
|
"css" : {
|
||||||
|
"background-color" : "rgb(227,26,28)"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "node[Column_2 = 'person']",
|
||||||
|
"css" : {
|
||||||
|
"shape" : "diamond"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "node:selected",
|
||||||
|
"css" : {
|
||||||
|
"background-color" : "rgb(255,255,0)"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge",
|
||||||
|
"css" : {
|
||||||
|
"line-style" : "solid",
|
||||||
|
"color" : "rgb(252,251,253)",
|
||||||
|
"line-color" : "rgb(132,132,132)",
|
||||||
|
"text-opacity" : 1.0,
|
||||||
|
"source-arrow-color" : "rgb(0,0,0)",
|
||||||
|
"target-arrow-color" : "rgb(0,0,0)",
|
||||||
|
"font-family" : "Dialog.plain",
|
||||||
|
"font-weight" : "normal",
|
||||||
|
"content" : "",
|
||||||
|
"font-size" : 10,
|
||||||
|
"width" : 2.0,
|
||||||
|
"source-arrow-shape" : "none",
|
||||||
|
"opacity" : 1.0,
|
||||||
|
"target-arrow-shape" : "none"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge[EdgeBetweenness > 2,826.99057424]",
|
||||||
|
"css" : {
|
||||||
|
"line-color" : "rgb(68,1,84)"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge[EdgeBetweenness = 2,826.99057424]",
|
||||||
|
"css" : {
|
||||||
|
"line-color" : "rgb(68,2,86)"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge[EdgeBetweenness > 1,414.49520293][EdgeBetweenness < 2,826.99057424]",
|
||||||
|
"css" : {
|
||||||
|
"line-color" : "mapData(EdgeBetweenness,1,414.49520293,2,826.99057424,rgb(33,145,140),rgb(68,2,86))"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge[EdgeBetweenness > 2][EdgeBetweenness < 1,414.49520293]",
|
||||||
|
"css" : {
|
||||||
|
"line-color" : "mapData(EdgeBetweenness,2,1,414.49520293,rgb(203,24,29),rgb(33,145,140))"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge[EdgeBetweenness = 2]",
|
||||||
|
"css" : {
|
||||||
|
"line-color" : "rgb(203,24,29)"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge[EdgeBetweenness < 2]",
|
||||||
|
"css" : {
|
||||||
|
"line-color" : "rgb(253,231,37)"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge:selected",
|
||||||
|
"css" : {
|
||||||
|
"line-color" : "rgb(255,0,0)"
|
||||||
|
}
|
||||||
|
} ]
|
||||||
|
} ]
|
1
xquery/ent-file-net/web_session/styles/main.css
Normal file
1
xquery/ent-file-net/web_session/styles/main.css
Normal file
@ -0,0 +1 @@
|
|||||||
|
body{background:#fff;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;color:#555;font-weight:100}.browsehappy{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}#cy{width:800px;height:600px;background-color:#eee}
|
BIN
xquery/person-file-net.zip
Normal file
BIN
xquery/person-file-net.zip
Normal file
Binary file not shown.
157
xquery/person-file-net/web_session/404.html
Normal file
157
xquery/person-file-net/web_session/404.html
Normal file
@ -0,0 +1,157 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Page Not Found :(</title>
|
||||||
|
<style>
|
||||||
|
::-moz-selection {
|
||||||
|
background: #b3d4fc;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
::selection {
|
||||||
|
background: #b3d4fc;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
padding: 30px 10px;
|
||||||
|
font-size: 20px;
|
||||||
|
line-height: 1.4;
|
||||||
|
color: #737373;
|
||||||
|
background: #f0f0f0;
|
||||||
|
-webkit-text-size-adjust: 100%;
|
||||||
|
-ms-text-size-adjust: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
html,
|
||||||
|
input {
|
||||||
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
max-width: 500px;
|
||||||
|
_width: 500px;
|
||||||
|
padding: 30px 20px 50px;
|
||||||
|
border: 1px solid #b3b3b3;
|
||||||
|
border-radius: 4px;
|
||||||
|
margin: 0 auto;
|
||||||
|
box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff;
|
||||||
|
background: #fcfcfc;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin: 0 10px;
|
||||||
|
font-size: 50px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 span {
|
||||||
|
color: #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin: 1.5em 0 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
padding: 0 0 0 40px;
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
max-width: 380px;
|
||||||
|
_width: 380px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* google search */
|
||||||
|
|
||||||
|
#goog-fixurl ul {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#goog-fixurl form {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#goog-wm-qt,
|
||||||
|
#goog-wm-sb {
|
||||||
|
border: 1px solid #bbb;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: normal;
|
||||||
|
vertical-align: top;
|
||||||
|
color: #444;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#goog-wm-qt {
|
||||||
|
width: 220px;
|
||||||
|
height: 20px;
|
||||||
|
padding: 5px;
|
||||||
|
margin: 5px 10px 0 0;
|
||||||
|
box-shadow: inset 0 1px 1px #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
#goog-wm-sb {
|
||||||
|
display: inline-block;
|
||||||
|
height: 32px;
|
||||||
|
padding: 0 10px;
|
||||||
|
margin: 5px 0 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
background-image: -webkit-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
||||||
|
background-image: -moz-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
||||||
|
background-image: -ms-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
||||||
|
background-image: -o-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
||||||
|
-webkit-appearance: none;
|
||||||
|
-moz-appearance: none;
|
||||||
|
appearance: none;
|
||||||
|
*overflow: visible;
|
||||||
|
*display: inline;
|
||||||
|
*zoom: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#goog-wm-sb:hover,
|
||||||
|
#goog-wm-sb:focus {
|
||||||
|
border-color: #aaa;
|
||||||
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
||||||
|
background-color: #f8f8f8;
|
||||||
|
}
|
||||||
|
|
||||||
|
#goog-wm-qt:hover,
|
||||||
|
#goog-wm-qt:focus {
|
||||||
|
border-color: #105cb6;
|
||||||
|
outline: 0;
|
||||||
|
color: #222;
|
||||||
|
}
|
||||||
|
|
||||||
|
input::-moz-focus-inner {
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<h1>Not found <span>:(</span></h1>
|
||||||
|
<p>Sorry, but the page you were trying to view does not exist.</p>
|
||||||
|
<p>It looks like this was the result of either:</p>
|
||||||
|
<ul>
|
||||||
|
<li>a mistyped address</li>
|
||||||
|
<li>an out-of-date link</li>
|
||||||
|
</ul>
|
||||||
|
<script>
|
||||||
|
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
|
||||||
|
</script>
|
||||||
|
<script src="//linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
BIN
xquery/person-file-net/web_session/favicon.ico
Normal file
BIN
xquery/person-file-net/web_session/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
32
xquery/person-file-net/web_session/index.html
Normal file
32
xquery/person-file-net/web_session/index.html
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html class="no-js">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Exports from Cytoscape</title>
|
||||||
|
<meta name="description" content="Single network exported from Cytoscape 3.3">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="styles/main.css">
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!--[if lt IE 10]>
|
||||||
|
<p class="browsehappy">
|
||||||
|
You are using an <strong>ancient</strong> browser.
|
||||||
|
Please <a href="http://browsehappy.com/">upgrade your browser
|
||||||
|
</a> to improve your experience.
|
||||||
|
</p>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Actual Cytoscape.js Instance -->
|
||||||
|
<div id="cy"></div>
|
||||||
|
|
||||||
|
<script src="networks.js"></script>
|
||||||
|
<script src="styles.js"></script>
|
||||||
|
|
||||||
|
<script src="scripts/vendor.js"></script>
|
||||||
|
<script src="scripts/main.js"></script>
|
||||||
|
<script src="scripts/custom.js"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
11723
xquery/person-file-net/web_session/networks.js
Normal file
11723
xquery/person-file-net/web_session/networks.js
Normal file
File diff suppressed because it is too large
Load Diff
3
xquery/person-file-net/web_session/robots.txt
Normal file
3
xquery/person-file-net/web_session/robots.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# robotstxt.org/
|
||||||
|
|
||||||
|
User-agent: *
|
15
xquery/person-file-net/web_session/scripts/custom.js
Normal file
15
xquery/person-file-net/web_session/scripts/custom.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
$( document ).ready(function(){
|
||||||
|
// Custom Cytoscape.JS code goes here.
|
||||||
|
|
||||||
|
// Example: add linkouts to nodes that opens the "href" node attribute on click
|
||||||
|
// cy.on('tap', 'node', function(){
|
||||||
|
// try { // your browser may block popups
|
||||||
|
// window.open( this.data('href') );
|
||||||
|
// } catch(e){ // fall back on url change
|
||||||
|
// window.location.href = this.data('href');
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
|
// For more options, check out http://js.cytoscape.org/
|
||||||
|
|
||||||
|
});
|
29
xquery/person-file-net/web_session/scripts/main.js
Normal file
29
xquery/person-file-net/web_session/scripts/main.js
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
$(function() {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
function e(e, n) {
|
||||||
|
for (var t = n.length, o = 0; t >= o; o++) {
|
||||||
|
var s = n[o].title;
|
||||||
|
if (s === e) return n[o]
|
||||||
|
}
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
var n = "#cy",
|
||||||
|
network = networks[Object.keys(networks)[0]],
|
||||||
|
style = styles[0];
|
||||||
|
$(n).cytoscape({
|
||||||
|
layout: {
|
||||||
|
name: "preset",
|
||||||
|
padding: 10
|
||||||
|
},
|
||||||
|
boxSelectionEnabled: !0,
|
||||||
|
ready: function() {
|
||||||
|
window.cy = this,
|
||||||
|
cy.load(network.elements), console.log(network);
|
||||||
|
console.log(style);
|
||||||
|
var o = e("default", style);
|
||||||
|
null === o && (o = style), cy.style().fromJson(o.style).update()
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
});
|
15467
xquery/person-file-net/web_session/scripts/vendor.js
Normal file
15467
xquery/person-file-net/web_session/scripts/vendor.js
Normal file
File diff suppressed because it is too large
Load Diff
95
xquery/person-file-net/web_session/styles.js
Normal file
95
xquery/person-file-net/web_session/styles.js
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
var styles = [ {
|
||||||
|
"format_version" : "1.0",
|
||||||
|
"generated_by" : "cytoscape-3.9.1",
|
||||||
|
"target_cytoscapejs_version" : "~2.1",
|
||||||
|
"title" : "default",
|
||||||
|
"style" : [ {
|
||||||
|
"selector" : "node",
|
||||||
|
"css" : {
|
||||||
|
"color" : "rgb(255,255,255)",
|
||||||
|
"width" : 35.0,
|
||||||
|
"height" : 35.0,
|
||||||
|
"background-color" : "rgb(33,113,181)",
|
||||||
|
"font-family" : "SansSerif.plain",
|
||||||
|
"font-weight" : "normal",
|
||||||
|
"shape" : "roundrectangle",
|
||||||
|
"background-opacity" : 1.0,
|
||||||
|
"font-size" : 12,
|
||||||
|
"border-opacity" : 1.0,
|
||||||
|
"border-width" : 0.0,
|
||||||
|
"text-valign" : "center",
|
||||||
|
"text-halign" : "center",
|
||||||
|
"border-color" : "rgb(204,204,204)",
|
||||||
|
"text-opacity" : 1.0,
|
||||||
|
"content" : "data(name)"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "node[Column_2 = 'person']",
|
||||||
|
"css" : {
|
||||||
|
"background-color" : "rgb(227,26,28)"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "node[Column_2 = 'person']",
|
||||||
|
"css" : {
|
||||||
|
"shape" : "diamond"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "node:selected",
|
||||||
|
"css" : {
|
||||||
|
"background-color" : "rgb(255,255,0)"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge",
|
||||||
|
"css" : {
|
||||||
|
"line-style" : "solid",
|
||||||
|
"color" : "rgb(252,251,253)",
|
||||||
|
"line-color" : "rgb(132,132,132)",
|
||||||
|
"text-opacity" : 1.0,
|
||||||
|
"source-arrow-color" : "rgb(0,0,0)",
|
||||||
|
"target-arrow-color" : "rgb(0,0,0)",
|
||||||
|
"font-family" : "Dialog.plain",
|
||||||
|
"font-weight" : "normal",
|
||||||
|
"content" : "",
|
||||||
|
"font-size" : 10,
|
||||||
|
"width" : 2.0,
|
||||||
|
"source-arrow-shape" : "none",
|
||||||
|
"opacity" : 1.0,
|
||||||
|
"target-arrow-shape" : "none"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge[EdgeBetweenness > 2,826.99057424]",
|
||||||
|
"css" : {
|
||||||
|
"line-color" : "rgb(68,1,84)"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge[EdgeBetweenness = 2,826.99057424]",
|
||||||
|
"css" : {
|
||||||
|
"line-color" : "rgb(68,2,86)"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge[EdgeBetweenness > 1,414.49520293][EdgeBetweenness < 2,826.99057424]",
|
||||||
|
"css" : {
|
||||||
|
"line-color" : "mapData(EdgeBetweenness,1,414.49520293,2,826.99057424,rgb(33,145,140),rgb(68,2,86))"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge[EdgeBetweenness > 2][EdgeBetweenness < 1,414.49520293]",
|
||||||
|
"css" : {
|
||||||
|
"line-color" : "mapData(EdgeBetweenness,2,1,414.49520293,rgb(203,24,29),rgb(33,145,140))"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge[EdgeBetweenness = 2]",
|
||||||
|
"css" : {
|
||||||
|
"line-color" : "rgb(203,24,29)"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge[EdgeBetweenness < 2]",
|
||||||
|
"css" : {
|
||||||
|
"line-color" : "rgb(253,231,37)"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"selector" : "edge:selected",
|
||||||
|
"css" : {
|
||||||
|
"line-color" : "rgb(255,0,0)"
|
||||||
|
}
|
||||||
|
} ]
|
||||||
|
} ]
|
1
xquery/person-file-net/web_session/styles/main.css
Normal file
1
xquery/person-file-net/web_session/styles/main.css
Normal file
@ -0,0 +1 @@
|
|||||||
|
body{background:#fff;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;color:#555;font-weight:100}.browsehappy{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}#cy{width:800px;height:600px;background-color:#eee}
|
Loading…
Reference in New Issue
Block a user