0

我有一个关于我的项目的问题。我们想让用户在选择表单中选择一个值,然后在 sparql 查询中导入该值。我们没有使用 php 或类似的东西。该值应该在 sparql 查询中。这是我尝试过的:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>  
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" id="sgvzlr_script" src="../sgvizler.js"></script>
<script type="text/javascript">
  sgvizler
      .defaultEndpointURL("http://lod.xdams.org/sparql#")
      .prefix('default','http://cdec.opendams.org/lod/shoah/')
      .prefix('persecution','http://cdec.opendams.org/lod/shoah/persecution/');    

  //// Leave this as is. Ready, steady, go!
  $(document).ready(sgvizler.containerDrawAll);
</script>

<h1>TEST</h1>

<html>
<body>
<select>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
</select>


<h2>gTable</h2>

<div id="sgvzl_example19" 
 data-sgvizler-query="SELECT *
              WHERE 
              { persecution:'value' ?b ?c
              }
              LIMIT 10"
 data-sgvizler-chart="google.visualization.Table"
 data-sgvizler-log="2"
 style="width:800px; height:600px;"
 ></div>

提前致谢,

耶勒

4

0 回答 0