Hi there,
I am Jason Koh, a PhD student at UCSD studying semantic web.
I am trying to use Jena+Fuseki as it supports REST API directly, but I
cannot find API documents for it. I was trying to do reverse-engineering,
but it is too much. *Is there any REST API document of Fuseki?*
Specific problem I currently face is following (in Python)
1) Working: requests.post('http://localhost:3030/myproject?query=SELECT
?anything WHERE{?anything ?aa ?bb} LIMIT 10')
2) Not working: requests.post('http://localhost:3030/myproject?query=
'prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT ?anything
WHERE{?anything rdf:type ?bb} LIMIT 10'')
This returns code 404, and the server says:
[2016-09-04 14:42:17] Fuseki INFO [12] 400 Parse error:
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns
Encountered " "<" "< "" at line 1, column 13.
Was expecting:
<IRIref> ...
(5 ms)
I cannot help myself to debug this as I put one < for prefix which seems to
be standard in SPARQL.
*Does any of you know how to fix this problem?* (Still I would be very
happy to have an API doc.)
Thanks for all the open sources and supports. It really helps me.
With regards,
Jason Koh
cseweb.ucsd.edu/~jbkoh