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条)

报告相同问题?

悬赏问题

  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 再不同版本的系统上,TCP传输速度不一致
  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程