Language
Login
Language Setting
X
English
日本語 [Japanese]
about this App
ごみ無し
useful
0
Loading...
$('#sch_disp').click(function(evt){ //alert("sch"); var face = document.getElementById("result"); face.innerHTML = ""; var areaz = ""; var area = document.js.txtb.value ; var kubun = document.js.txtc.value ; if ( area == "石巻A") { areaz = "http://linkdata.org/property/rdf1s7941i#%E7%9F%B3%E5%B7%BB%EF%BC%A1" ; } if ( area == "石巻B") { areaz = "http://linkdata.org/property/rdf1s7941i#%E7%9F%B3%E5%B7%BB%EF%BC%A2" ; } if ( area == "石巻C") { areaz = "http://linkdata.org/property/rdf1s7941i#%E7%9F%B3%E5%B7%BB%EF%BC%A3" ; } if ( area == "石巻D1") { areaz = "http://linkdata.org/property/rdf1s7941i#%E7%9F%B3%E5%B7%BB%EF%BC%A4%EF%BC%91" ; } if ( area == "石巻D2") { areaz = "http://linkdata.org/property/rdf1s7941i#%E7%9F%B3%E5%B7%BB%EF%BC%A4%EF%BC%92" ; } if ( area == "北上") { areaz = "http://linkdata.org/property/rdf1s7941i#%E5%8C%97%E4%B8%8A" ; } if ( area == "雄勝") { areaz = "http://linkdata.org/property/rdf1s7941i#%E9%9B%84%E5%8B%9D" ; } if ( area == "河北A飯野川") { areaz = "http://linkdata.org/property/rdf1s7941i#%E6%B2%B3%E5%8C%97%EF%BC%A1%E9%A3%AF%E9%87%8E%E5%B7%9D" ; } if ( area == "河北B大谷地") { areaz = "http://linkdata.org/property/rdf1s7941i#%E6%B2%B3%E5%8C%97%EF%BC%A2%E5%A4%A7%E8%B0%B7%E5%9C%B0" ; } if ( area == "河北C二俣") { areaz = "http://linkdata.org/property/rdf1s7941i#%E6%B2%B3%E5%8C%97%EF%BC%A3%E4%BA%8C%E4%BF%A3" ; } if ( area == "河北D大川") { areaz = "http://linkdata.org/property/rdf1s7941i#%E6%B2%B3%E5%8C%97%EF%BC%A4%E5%A4%A7%E5%B7%9D" ; } if ( area == "河南A") { areaz = "http://linkdata.org/property/rdf1s7941i#%E6%B2%B3%E5%8D%97%EF%BC%A1" ; } if ( area == "河南B") { areaz = "http://linkdata.org/property/rdf1s7941i#%E6%B2%B3%E5%8D%97%EF%BC%A2" ; } if ( area == "河南C") { areaz = "http://linkdata.org/property/rdf1s7941i#%E6%B2%B3%E5%8D%97%EF%BC%A3" ; } if ( area == "河南D") { areaz = "http://linkdata.org/property/rdf1s7941i#%E6%B2%B3%E5%8D%97%EF%BC%A4" ; } if ( area == "桃生-寺崎・中津山") { areaz = "http://linkdata.org/property/rdf1s7941i#%E6%A1%83%E7%94%9F%EF%BC%A1%EF%BC%8D%EF%BC%91" ; } if ( area == "桃生-新田・給人町・神取・高須賀") { areaz = "http://linkdata.org/property/rdf1s7941i#%E6%A1%83%E7%94%9F%EF%BC%A1%EF%BC%8D%EF%BC%92" ; } if ( area == "桃生-城内・倉埣・牛田・永井") { areaz = "http://linkdata.org/property/rdf1s7941i#%E6%A1%83%E7%94%9F%EF%BC%A2%EF%BC%8D%EF%BC%91" ; } if ( area == "桃生-樫崎・太田") { areaz = "http://linkdata.org/property/rdf1s7941i#%E6%A1%83%E7%94%9F%EF%BC%A2%EF%BC%8D%EF%BC%92" ; } if ( area == "桃生-山田・金辻") { areaz = "http://linkdata.org/property/rdf1s7941i#%E6%A1%83%E7%94%9F%EF%BC%A3" ; } if ( area == "牡鹿A") { areaz = "http://linkdata.org/property/rdf1s7941i#%E7%89%A1%E9%B9%BF%EF%BC%A1" ; } if ( area == "牡鹿B") { areaz = "http://linkdata.org/property/rdf1s7941i#%E7%89%A1%E9%B9%BF%EF%BC%A2" ; } if ( area == "牡鹿C") { areaz = "http://linkdata.org/property/rdf1s7941i#%E7%89%A1%E9%B9%BF%EF%BC%A3" ; } if ( area == "牡鹿D") { areaz = "http://linkdata.org/property/rdf1s7941i#%E7%89%A1%E9%B9%BF%EF%BC%A4" ; } if ( area == "網地島") { areaz = "http://linkdata.org/property/rdf1s7941i#%E7%B6%B2%E5%9C%B0%E5%B3%B6" ; } if ( area == "") { alert("地区名称は必須です。") ; location.href = location.href + '#home'; return false; } //alert(areaz); //var keyword = getParameterFromURL("subject"); // obtain keyword from the URL "?subject=" //alert(keyword) ; var list = "<br>" + "**********結果**********"; // list to be displayed var put = ""; var out = "" ; var outdate = "" ; var now = new Date(); now.setDate(now.getDate() + 1); var tom = new Date() ; tom.setDate(tom.getDate() + 50) ; //alert(now) ; //alert(tom) ; var Year = now.getFullYear(); var mwk = now.getMonth(); var youbi = "" ; mwk++; var Month = ('00' + mwk).slice(-2); var Nichi = ('00'+(now.getDate())).slice(-2); //Year = '2021'; //Month = '06'; //Nichi = '25'; var kyou = Year + "-" + Month + "-" + Nichi; //alert(kyou); put = 0 ; // Work loop $.each(LinkData.getWorks(), function(workKey, workValue) { // File loop $.each(LinkData.getFiles(workValue), function(fileKey, fileValue) { var hit = ""; // list of subjects whose URI matches keyword var nHit = 0; // number of subjects whose URI matches keyword //alert(fileKey); //alert(fileValue); if (fileValue == "ishinomaki_GarbageCollectionSchedule_2021") { // Subject loop $.each(LinkData.getSubjects(workValue, fileValue), function(subjKey, subjValue) { $.each( LinkData.getTriplesBySubject(workValue, fileValue, subjValue), function( tripleKey, tripleValue ) { var prop = tripleValue.property; var obj = tripleValue.object; //if ( prop == "http://www.w3.org/2000/01/rdf-schema#label" ) { //put = 0; //} if ( prop == "http://linkdata.org/property/rdf1s7941i#%E6%9C%88%E6%97%A5" ) { outdate = obj if ( obj == kyou) { put = 1 ; } } if ( prop == "http://linkdata.org/property/rdf1s7941i#%E6%9B%9C%E6%97%A5" ) { youbi = obj ; } if ( prop == areaz) { if (kubun != "") { var string = obj ; var pattern = kubun ; if (string.indexOf(pattern) > -1) { //alert("1"); if ( put == 1) { list += "<br>直近のごみ収集" ; list += "<br>" + obj; list += "<br>" + outdate + "(" + youbi + ")"; list += "<br>" ; put++ ; }else { if ( put == 2) { list += "<br>次回のごみ収集" ; list += "<br>" + obj; list += "<br>" + outdate + "(" + youbi + ")"; list += "<br>" ; put++ ; } } } }else { //alert("1"); if ( put == 1) { list += "<br>直近のごみ収集" ; list += "<br>" + obj; list += "<br>" + outdate + "(" + youbi + ")"; list += "<br>" ; put++ ; }else { if ( put == 2) { list += "<br>次のごみ収集" ; list += "<br>" + obj; list += "<br>" + outdate + "(" + youbi + ")"; list += "<br>" ; put++ ; } } } } }); //link to map display if coordinates exist }); } }); }); if ( put < 2) { list += "<br>" + "今年度の収集はありません。" ; } $("#result").append( list ); window.find(highlight); location.href = location.href + '#home'; return false; }); $('#zzzz').click(function(evt){ //alert("value"); var face = document.getElementById("result"); face.innerHTML = ""; //var keyword = getParameterFromURL("subject"); // obtain keyword from the URL "?subject=" var list = "<br>" + "**********結果**********" ; var gomi = document.js.name.value ; if ( gomi == "") { alert("出したいごみは必須です。") ; location.href = location.href + '#home'; return false; } var put = "" ; var put2 = "" ; //alert(gomi) ; list += "<br>あなたの出したいごみは「" + gomi + "」ですね。"; list += "<br>「" + gomi + "」を含む以下の「出すごみ・分別区分」を参考にして下さい。"; $.each(LinkData.getWorks(), function(workKey, workValue) { // File loop $.each(LinkData.getFiles(workValue), function(fileKey, fileValue) { //alert(fileValue); if (fileValue == "Classification") { //alert(fileValue) ; // Subject loop $.each(LinkData.getSubjects(workValue, fileValue), function(subjKey, subjValue) { $.each( LinkData.getTriplesBySubject(workValue, fileValue, subjValue), function( tripleKey, tripleValue ) { var prop = tripleValue.property; var obj = tripleValue.object; if (prop =="http://linkdata.org/property/rdf1s7941i#%E5%93%81%E5%90%8D") { var string = obj ; var pattern = gomi ; put = 0 ; if (string.indexOf(pattern) > -1) { list += "<br>" ; list += "<br>" + "出すごみ:" + obj ; put = 1 ; put2 = 1 ; } } if (prop == "http://linkdata.org/property/rdf1s7941i#%E5%88%86%E5%88%A5%E5%8C%BA%E5%88%86") { if ( put == 1) { list += "<br>" + "分別区分:" + obj ; } } if ( prop == "http://linkdata.org/property/rdf1s7941i#%E5%87%BA%E3%81%97%E6%96%B9%E3%81%AA%E3%81%A9") { if (put == 1) { list += "<br>" + "説明:" + obj ; } } }); }); } }); }); if (put2 == "") { list += "<br><br>「出すごみ・分別区分」が見つかりません。" ; } $("#result").append( list ); window.find(highlight); location.href = location.href + '#home'; return false; });
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; }
<form name="js"> 地区名称 :<input type="text" name="txtb" list="data1"><br> <datalist id="data1"> <option value="石巻A"></option> <option value="石巻B"></option> <option value="石巻C"></option> <option value="石巻D1"></option> <option value="石巻D2"></option> <option value="北上"></option> <option value="雄勝"></option> <option value="河北A飯野川"></option> <option value="河北B大谷地"></option> <option value="河北C二俣"></option> <option value="河北D大川"></option> <option value="河南A"></option> <option value="河南B"></option> <option value="河南C"></option> <option value="河南D"></option> <option value="桃生-寺崎・中津山"></option> <option value="桃生-新田・給人町・神取・高須賀"></option> <option value="桃生-城内・倉埣・牛田・永井"></option> <option value="桃生-樫崎・太田"></option> <option value="桃生-山田・金辻"></option> <option value="牡鹿A"></option> <option value="牡鹿B"></option> <option value="牡鹿C"></option> <option value="牡鹿D"></option> <option value="網地島"></option> </datalist> <br> ごみ種類 :<input type="text" name="txtc" list="data2"><br> <datalist id="data2"> <option value="燃やせるごみ"></option> <option value="ペットボトル"></option> <option value="あき缶"></option> <option value="あきびん"></option> <option value="スプレー"></option> <option value="ガスカートリッジ"></option> <option value="新聞"></option> <option value="古本等"></option> <option value="雑紙"></option> <option value="紙パック"></option> <option value="ダンボール"></option> <option value="古着"></option> <option value="布類"></option> <option value="燃やせないごみ"></option> <option value="金属"></option> <option value="有害ごみ"></option> </datalist> <br> <a href="javascript:void(0);" id="sch_disp">ごみ収集予定(直近と次まで)</a><br> <!-- <input type="button" value="ごみ収集スケジュール" onclick="sch_disp()"><br> --> <br> 出したいごみ:<input type="text" name="name" size="30" maxlength="20" value="出したいごみの名称を入れる"><br> <br> <a href="javascript:void(0);" id="zzzz">区分・出し方等</a> <div id="result"></div> </form>
Preview
Input Data
ReadMe
Snapshots
LinkData Work
Table Data
宮城県石巻市 ごみカレンダー(令和2年度以降)
Contributor:石巻市, ICT総合推進課
Update:Jun 24, 2021
518 Downloads, 1 Applications
Classification
Collection_area
ishinomaki_GarbageCollectionSchedule_2021
Add LinkData work(LinkData)
Link http://app.linkdata.org/run/app1s1843i?tab=readme
jquery-1.11.2.min.js
Work
Add
Clear
insert work id or work name.