1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
window.onload = function() {
var keyword = getParameterFromURL("subject"); // obtain keyword from the URL "?subject="
var list = ""; // list to be displayed
//alert("グラフの作成開始");
var param = [
[0,0],
[0,0]
];
// Work loop
$.each(LinkData.getWorks(), function(workKey, workValue) {
// File loop
$.each(LinkData.getFiles(workValue), function(fileKey, fileValue) {
//alert(nen);
//alert(fileKey);
//alert(fileValue);
var c_cnt = 0;
// Subject loop
$.each(LinkData.getSubjects(workValue, fileValue), function(subjKey, subjValue) {
$.each( LinkData.getTriplesBySubject(workValue, fileValue, subjValue), function( tripleKey, tripleValue ) {
if(fileValue==="kokusei_ichiran"){
var prop = tripleValue.property;
//alert(prop);
var Nam = getLastName(prop);
//alert(Nam);
var obj = tripleValue.object;
//alert(obj);
var lab = tripleValue.label;
//alert(lab);
if(Nam==="項目"){
param[c_cnt][0] = obj;
}
if(Nam==="URL"){
param[c_cnt][1] = "<a href=\"" + obj + "\" target=\"_blank\"><span class=\"object\">" + shortenURL(obj) + "</span></a>";
c_cnt++;
});
drawtable(param);
window.find(highlight);
};
// Get a parameter value in URL (e.g. ?paramString=value )
function getParameterFromURL( paramString )
{
var i;
var r;
var value = "";
var topWindow = top.window.location.search;
var q = decodeURIComponent(topWindow.substring(1,topWindow.length)).split("&");
if( topWindow ){
for ( i = 0; i < q.length; i++ ){
r = q[i].split("=");
if ( r[0] === paramString ){
value = r[1];
return value;
// Highlight keyword in the string
function highlight( string, keyword )
if ( keyword.length > 0 ) {
var ss = string.split(keyword);
var len = ss.length;
if ( len > 1 ) {
string = ss[0];
for ( i = 1; i < len; i++ ){
// string += "<font color=\"red\">"+keyword+"</font>"+ss[i];
string += "<span class=\"highlight\">"+keyword+"</span>"+ss[i];
return string;
// get the last name of the string separated with # and /
function getLastName( string )
string = decodeURIComponent(string);
var sharp = string.split("#");
span.highlight {color: red;}
span.propertyName {color: gray;}
span.subject { color: blue; }
span.object{ color: black; }
body { background: white; }
a, a span { text-decoration: underline; }
a:hover, a span:hover { text-decoration: none; }
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {'packages':['table']});
google.charts.setOnLoadCallback(drawTable);
</script>
<body>
<H5>国勢調査 項目一覧</H5>
<div id="table_div" style="width: 1000px; height: 600px"></div>
</body>
Click the Browse button or drag and drop to choose files to upload
The Maximum upload size is 1MB.(bmp,gif,jpeg,jpg,png)
*Required field
Add name for another language
You can upload jpg, gif, png file formats
Add description for another language
Fork original application has been updated. >>see
Original application has been updated. >>see
Playing...
Please enter a valid URL