Hi,
    A SPARQL(given below) with SERVICE keyword when used under 
spin:SelectTemplates returns the expected results but the same query when 
used in the SPARQL Motion script throws the error 'Could not execute 
SPARQLMotion script. HTTP 401 error making the query: Unauthorized'.

*SPARQL used under spin:SelectTemplates*

SELECT ?description
WHERE {
    SERVICE <sparqlEndpoint> {
        GRAPH <dataset> {
            <dataset> rdfs:comment ?description .
        } .
    } .
}



*SPARQL used in SPARQL Motion script*SELECT ?description
WHERE {
    {
        BIND (IRI(CONCAT(str(?sparqlEndpoint), "?default-graph-uri=", 
encode_for_uri(str(?dataset)))) AS ?url) .
    }
    SERVICE ?url {
        ?dataset rdfs:comment ?description .
    }
}

FYI, To enable the use of the SPARQL SERVICE keyword to retrieve data from 
that SPARQL endpoint an entry is added to our local secure storage of the 
following form: username@localhost:8080/evn/tbl/sparql : password.
Since Unauthorized error is thrown in the SPARQLMotion script so I just 
want to check is there any other configuration need to be done in my local 
apart from adding an entry to secure storage as shown above,to successfully 
run the SPARQL's with SERVICE keyword in the SPARQLMotion script 

Thanks,

-- 
You received this message because you are subscribed to the Google Group 
"TopBraid Suite Users", the topics of which include the TopBraid Suite family 
of products and its base technologies such as SPARQLMotion, SPARQL Web Pages 
and SPIN.
To post to this group, send email to [email protected]
--- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to