John; This may be a good follow-on to the previous issue.  I don't know much about how Sesame endpoints work.  They could do 1) give each named graph their own named endpoint, or 2) have a single endpoint for the repository and require a URI to access the named graph (some repositories, including Sesame, have a default graph that is separate from the named graphs, but can be accessed without a named graph URI).

If the "Named graph" entry doesn't matter, then I'd guess it's 1), and all you need is the URL of the SPARQL endpoint.  B
ut you may want to look that up with Sesame documentation.  If it's 2, then it depends on whether you are accessing the default graph or a named graph.  Again, Sesame has a default graph that is separate from the named graphs.  So it depends on where your data is as to which one you fill in.

As an example, I have included a connector to the TopBraid/Examples/kennedys.ttl file thorough the TBC-ME personal server. Note that it uses the Default graph URI to specify the named graph in TBS's SPARQL endpoint.  You should be able to try this out on your TBC-ME.

-- Scott


On 10/2/2012 5:45 PM, John Perdoni wrote:
Hi I am having trouble creating a connection to a Sesame Sparql endpoint (which is on http:localhost:9090)

Using the import wizard I fill in the following parameters

Connection file name                             wordSparqlEndpoint
Base URI(for imports)                            http://example.com/library/word
URL of the SPARQL endpoint                http://localhost:9090/openrdf-sesame/repositories/word
(username and password I have tried with or without but does not make any difference)
Default graph URI                                 http://example.com/library/word
Named graph                                      either left blank or with http://notExample.com/otherCompany/#Data (does not make any difference)

The wizard completes fine with no errors, but upon trying to import this connection into another model/graph I get the following error

HttpException: HttpException: 400 Bad Request: HttpException: 400 Bad Request
    at com.hp.hpl.jena.sparql.engine.http.HttpQuery.execCommon(HttpQuery.java:337)
    at com.hp.hpl.jena.sparql.engine.http.HttpQuery.execGet(HttpQuery.java:189)
    at com.hp.hpl.jena.sparql.engine.http.HttpQuery.exec(HttpQuery.java:144)
    at com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:133)
    at org.topbraid.sparqlendpoint.graph.SPARQLEndpointGraph.doFind1(SPARQLEndpointGraph.java:309)
    at org.topbraid.sparqlendpoint.graph.SPARQLEndpointGraph.doFind1(SPARQLEndpointGraph.java:350)
    at org.topbraid.sparqlendpoint.graph.SPARQLEndpointGraph.doFind1(SPARQLEndpointGraph.java:350)
    at org.topbraid.sparqlendpoint.graph.SPARQLEndpointGraph.doFind1(SPARQLEndpointGraph.java:350)
    at org.topbraid.sparqlendpoint.graph.SPARQLEndpointGraph.doFind1(SPARQLEndpointGraph.java:350)
    at org.topbraid.sparqlendpoint.graph.SPARQLEndpointGraph.doFind(SPARQLEndpointGraph.java:288)
    at org.topbraid.core.graph.AltGraphBase.graphBaseFind(AltGraphBase.java:31)
    at com.hp.hpl.jena.graph.impl.GraphBase.find(GraphBase.java:240)
    at com.hp.hpl.jena.graph.GraphUtil.findAll(GraphUtil.java:29)
    at com.hp.hpl.jena.graph.impl.GraphBase.graphBaseSize(GraphBase.java:379)
    at com.hp.hpl.jena.graph.impl.GraphBase.size(GraphBase.java:352)
    at org.topbraid.sparqlendpoint.graphstore.SPARQLEndpointGraphStore.load(SPARQLEndpointGraphStore.java:93)
    at org.topbraid.core.registry.IFileGraphSource.graphStoreLoad(IFileGraphSource.java:66)
    at org.topbraid.core.registry.IFileGraphSource.loadSpecialGraph(IFileGraphSource.java:45)
    at org.topbraid.core.registry.GraphSource.loadGraph(GraphSource.java:77)
    at org.topbraid.core.io.IO.load(IO.java:267)
    at org.topbraidcomposer.core.io.TBCIO.loadModel(TBCIO.java:289)
    at org.topbraidcomposer.core.io.TBCIO.loadModel(TBCIO.java:318)
    at org.topbraidcomposer.core.models.Imports.addImport(Imports.java:69)
    at org.topbraidcomposer.navigation.imports.actions.ImportFileAction$1.run(ImportFileAction.java:87)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: HttpException: 400 Bad Request
    at com.hp.hpl.jena.sparql.engine.http.HttpQuery.execCommon(HttpQuery.java:299)
    ... 24 more


However if I use the following Sparql from TBC all works, so I know the endpoint is there and functioning , what am I doing wrong with regards to the wizard

PREFIX word: <http://example.com/library/word#>
SELECT *
WHERE {
  SERVICE <http://localhost:9090/openrdf-sesame/repositories/word>
  {  ?subject a <http://example.com/library/word#word> .}

Regards

John
}





--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live,
TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
 
 

--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live,
TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
 
 
# baseURI: http://topbraid.com/KennedysEndpoint

@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sml:     <http://topbraid.org/sparqlmotionlib#> .

[]    rdf:type sml:ImportSPARQLEndpoint ;
      sml:baseURI "http://topbraid.com/KennedysEndpoint"; ;
      sml:defaultGraphURI "http://topbraid.org/examples/kennedys"; ;
      sml:imports () ;
      sml:namedGraphURI "" ;
      sml:url "http://localhost:8083/tbl/sparql"; ;
      sml:userName "" .

Reply via email to