3

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?

halfer
  • 19,824
  • 17
  • 99
  • 186
Monalizza
  • 43
  • 5

1 Answers1

3
  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.

AndyS
  • 16,345
  • 17
  • 21
  • Thanks @AndyS but when I try s-put or s-delete, I get command not found error. Ruby is installed in my system. – Monalizza Jul 11 '15 at 02:56
  • They are in the Fuseki distribution. Make surethey are accessible to the command path and marked executable for your system. You may also need to fix how it finds ruby. – AndyS Jul 12 '15 at 20:35
  • Can you please let me know of how I check if they are accessible to the command path and marked executable for your system? – Monalizza Jul 13 '15 at 10:57
  • That is basic OS setup. – AndyS Jul 14 '15 at 11:23
  • Can you please let me know how I can check if they are accessible to the command path and marked executable for my system? – Monalizza Jul 14 '15 at 12:51