dongzong2017 2017-05-20 15:35
浏览 104
已采纳

网站(HTML / PHP)可能链接到GraphDB?

In the course of a master's thesis I developed an ontology which I imported into Ontotext GraphDB. At this point I need to connect a website (HTML / PHP) with the ontology I imported into Ontotext GraphBD. My technical knowledge is not high so I wondered if it is possible to connect these two components and if yes how can I do it?

I have on one side a website and on the other an ontology in GraphDB. Now I need that in this website it is possible for example to do CRUD operations so that these operations are also done in the ontology that is in Ontotext GraphDB.

Example: Consult through my website all the individuals present in the ontology.

I in the Ontotext GraphDB workbench through the Sparql queries I get these operations, but I want to do it through the website that I'm doing in HTML, PHP and CSS.

Thanks for your attention.

Best regards

  • 写回答

2条回答 默认 最新

  • drza10046 2017-05-26 18:19
    关注

    I think I solved my problem with this here.

    In general, you need to download Semsol's ARC2 library.

    Then you create the php file with a structure like this:

    <?php
      /* ARC2 static class inclusion */ 
      include_once('semsol/ARC2.php');  
    
      $dbpconfig = array(
      "remote_store_endpoint" => "http://dbpedia.org/sparql",
       );
    
      $store = ARC2::getRemoteStore($dbpconfig); 
    
      if ($errs = $store->getErrors()) {
         echo "<h1>getRemoteSotre error<h1>" ;
      }
    
      $query = '...';
    
      /* execute the query */
      $rows = $store->query($query, 'rows'); 
    
        if ($errs = $store->getErrors()) {
           echo "Query errors" ;
           print_r($errs);
        }
    
        /* display the results in an HTML table */
        echo "..." 
    
      ?>
    

    I thank everyone who tried to help me.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 C++使用Gunplot
  • ¥15 这个电路是如何实现路灯控制器的,原理是什么,怎么求解灯亮起后熄灭的时间如图?
  • ¥15 matlab数字图像处理频率域滤波
  • ¥15 在abaqus做了二维正交切削模型,给刀具添加了超声振动条件后输出切削力为什么比普通切削增大这么多
  • ¥15 ELGamal和paillier计算效率谁快?
  • ¥15 file converter 转换格式失败 报错 Error marking filters as finished,如何解决?
  • ¥15 Arcgis相交分析无法绘制一个或多个图形
  • ¥15 关于#r语言#的问题:差异分析前数据准备,报错Error in data[, sampleName1] : subscript out of bounds请问怎么解决呀以下是全部代码:
  • ¥15 seatunnel-web使用SQL组件时候后台报错,无法找到表格
  • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)