Reputation: 31
I am trying to retrieve all the statements from a named graph (the name is a URI) within a repository using the Graph Store HTTP Protocol. I am using version 8.10 GraphDB installation on Windows 10.
The installation reports the API's availability at: /repositories/{repositoryID}/rdf-graphs/{graph}
However, replacing {graph} with the URI leats to a report of No Handler Found error or a noslash error (if the URI is encoded).
I've tried unencoded URIs and encoded URIs. The referenced specification SPARQL 1.1 Graph Store HTTP Protocol suggests ?graph={graph} may be required but this also fails.
Some examples:
11:14:50.901 [http-nio-7200-exec-2] WARN o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.servlet.NoHandlerFoundException: No handler found for GET /repositories/foodandwine/rdf-graphs/http://www.w3.org/TR/2003/PR-owl-guide-20031209/food]
11:14:59.583 [http-nio-7200-exec-10] WARN o.s.web.servlet.PageNotFound - No handler found for GET /repositories/foodandwine/rdf-graphs/http%3e//www.w3.org/TR/2003/PR-owl-guide-20031209/food
Message Invalid URI: noSlash
Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
I am sure I've missed something very simple but a steer in the right direction would be greatly appreciated.
Upvotes: 2
Views: 326
Reputation: 2601
As Damyan said, use a URL like this:
curl -X GET --header 'Accept: application/rdf+xml' http://localhost:7200/repositories/test/rdf-graphs/service?graph=http%3A%2F%2Fbase.org%2Ftest
Reposting his comment as answer, so this question doesn't appear again in [graphdb] answers:0
Upvotes: 0