0

I am trying to query different repositories in allegrograph using sparql service clause but I am getting service clause failed error, could anyone let me know what am I doing wrong.

I think it has something to do with the endpoint.

This is my sample query:

query_string = """PREFIX ab: <http://learningsparql.com/ns/addressbook#> 
PREFIX d:  <http://learningsparql.com/ns/data#>    

SELECT  ?first 
WHERE{
   
  service  <http://localhost:10035/repositories/repo1/> {
  ?s ab:firstName ?first. }

         
}"""

error : Server returned 400: Canceling query because a SERVICE clause failed.

Jeen Broekstra
  • 21,642
  • 4
  • 51
  • 73

0 Answers0