输出格式在耶拿Fuseki服务器 [英] output format in Jena Fuseki server

查看:181
本文介绍了输出格式在耶拿Fuseki服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给出这个命令:

 前缀dm:< http://one.example/> 
SELECT?pID
WHERE
{
?pID dm:hasDNamexxxvvvII。





arq引擎输出以下内容:

  ------------------- 
| pID |
===================
| dm:C002172 |
-------------------



<
$ b

  {
head:{
vars :[pID]
},
results:{
bindings:[
{
pID:{type:uri ,value:http://one.example/C002172}
}
]
}
}

第一个问题:如何使Fuseki服务器输出的结果更具可读性,无需使用所有大括号和其他标记?
$ b

第二个问题:
如何从Fuseki服务器删除数据集,控制面板中没有这个选项,我在网上搜索。但我能找到的是这样的:
http://jena.apache.org /documentation/serving_data/soh.html
我在终端上试过这些命令,但实际上并没有工作吗?



感谢您的帮助和快速响应!

解决方案


  1. 要求格式文本/纯文本输出=文本)。此外,CSV或TSV格式可能对您有用。

  2. Re:删除数据集。不在当前版本中。你可以清空它们,或者是SOH DELETE或PUT中的空内容,或者是PUT空的内容(例如N-Quads)到 http:// localhost:3030 / dataset / 使用curl,wget。


given this command:

prefix dm:  <http://one.example/>
SELECT ?pID
WHERE
{
 ?pID dm:hasDName "xxxvvvII" .
} 

The arq engine outputs the following:

-------------------
| pID           |
===================
| dm:C002172      |
-------------------

The fuseki server outputs the following:

{
"head": {
"vars": [ "pID" ]
} ,
"results": {
"bindings": [
  {
    "pID": { "type": "uri" , "value": "http://one.example/C002172" }
  }
 ]
}
}

first question: how can I make the Fuseki server output the result in a more readable way with out the all braces and other token?

second question: How can I delete datasets from Fuseki server, There is no such option in the control panel and I searched online. But all I can find is this: http://jena.apache.org/documentation/serving_data/soh.html I tried these command in the terminal but they didn't actually work?

I appreciate your help and quick response!

解决方案

  1. Ask for format text/plain (content negotiation or ?output=text). Also CSV or TSV formats may be useful to you.

  2. Re: deleting datasets. Not in the current release. You can empty them though, either each graph as in SOH DELETE or PUT of empty content, or PUT empty content (e.g. N-Quads) to http://localhost:3030/dataset/ using curl, wget.

这篇关于输出格式在耶拿Fuseki服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆