if (!Array.prototype.forEach) {
Array.prototype.forEach = function(callback) {
var T, k;
if (this == null) {
throw new TypeError('this is null or not defined');
}
var O = Object(this);
var len = O.length >>> 0;
if (typeof callback !== 'function') {
throw new TypeError(callback + ' is not a function');
}
if (arguments.length > 1) {
T = arguments[1];
}
k = 0;
while (k < len) {
var kValue;
if (k in O) {
kValue = O[k];
callback.call(T, kValue, k, O);
}
k++;
}
};
}
data_url = "http://linkdata.org/property/rdf1s7933i"
var all_data;
function initialize(){
all_data = new Array();
tmp_a_data = new Array();
$.each(LinkData.getWorks(), function(workKey, workValue) {
$.each(LinkData.getFiles(workValue), function(fileKey, fileValue) {
$.each(LinkData.getSubjects(workValue, fileValue), function(subjKey, subjValue) {
var tmp_data = {}
tmp_data["id"] = subjValue;
$.each(LinkData.getProperties(workValue, fileValue), function(propKey, propValue) {
$.each(LinkData.getObjects(workValue, fileValue, subjValue, propValue), function(objKey, objValue) {
if(propValue == "http://imi.ipa.go.jp/ns/core/rdf#名称"){
tmp_data["name"] = objValue;
}else if(propValue == "http://www.w3.org/2003/01/geo/wgs84_pos#lat"){
tmp_data["lat"] = objValue;
}else if(propValue == "http://www.w3.org/2003/01/geo/wgs84_pos#long"){
tmp_data["lng"] = objValue;
}else if(propValue == "http://imi.ipa.go.jp/ns/core/rdf#住所"){
tmp_data["location"] = objValue;
}else if(propValue == data_url + "#" + encodeURIComponent("利用時間")){
tmp_data["genre"] = objValue;
}else if(propValue == data_url + "#" + encodeURIComponent("利用日")){
tmp_data["capacity"] = objValue;
}else if(propValue == data_url + "#" + encodeURIComponent("備考")){
tmp_data["area"] = objValue;
}else if(propValue == data_url + "#" + encodeURIComponent("種別")){
tmp_data["wifi_type"] = objValue;