configuration files - How to Configure a SPARQL Endpoint in dotNetRDF? -


i trying specify configuration file sets sparql endpoint in dotnetrdf. before integrating in application, testing configuration file loading run local server in rdfserver gui tool , trying access server store manager tool, both dotnetrdf tools (though shouldn't relevant issue).

i following manual using minimal configuration code setting sparql handler:

@prefix dnr: <http://www.dotnetrdf.org/configuration#> .  <dotnetrdf:/sparql> dnr:httphandler ;   dnr:type "vds.rdf.web.queryhandler" ;   dnr:queryprocessor _:proc .  _:proc dnr:sparqlqueryprocessor ;   dnr:type "vds.rdf.query.leviathanqueryprocessor" ;   dnr:usingstore _:store .  _:store dnr:triplestore ;   dnr:type "vds.rdf.triplestore" . 

the documentation says:

this specifies configuration handler responds requests on uri /sparql providing sparql query endpoint.

i load configuration , run on localhost:1987. however, when trying access described, sending simple query (select * { ?a ?b ?c . } limit 10) http://localhost:1987/sparql without default graph, log output server invariably contains remark:

error there no handlers registered can process request


i have tried building on top of provided example loading graph local file, taking account information on how define graph respective manual page (for sake of test, loading pizza ontology, file of have placed in same directory configuration file):

@prefix dnr: <http://www.dotnetrdf.org/configuration#> .  <dotnetrdf:/graph> dnr:httphandler ;   dnr:type "vds.rdf.web.queryhandler" ;   dnr:queryprocessor _:proc .  _:proc dnr:sparqlqueryprocessor ;   dnr:type "vds.rdf.query.leviathanqueryprocessor" ;   dnr:usingstore _:store .  _:store dnr:triplestore ;   dnr:type "vds.rdf.triplestore" ;   dnr:usinggraph <http://example.org/graph> .  <http://example.org/graph> dnr:graph ;   dnr:type "vds.rdf.graph" ;   dnr:fromfile "pizza.owl" . 

i have tried following variants of sending aforementioned simple query:

  1. http://localhost:1987/graph (because seemed logical choice based on bit of configuration saying <dotnetrdf:/graph>)
  2. http://localhost:1987/graph/sparql (in case sparql suffix gets automatically added after configured url)
  3. http://localhost:1987/sparql (in case sparql suffix replaces graph-specific url reason)

i tried of these without default graph, , http://example.org/graph default graph.

for 2) , 3), got same result above:

error there no handlers registered can process request

for 1), on other hand, server says:

error unexpected error handler vds.rdf.utilities.server.sparqlserverhandler

the fact 1) yields different message somehow makes i'm on right track url there, still not provide me hint on how set configuration file.


how can configure simple sparql endpoint graph loaded local file?

is there kind of minimal configuration example somewhere?

so cause of problem partly documentation failure , partly bug in rdfserver.

rdfserver more limited our asp.net integration , supports configuring sparql servers. fails inform of , tries configure sparql servers anyway defined http handlers in configuration file. causes failures see when trying access handler because sparql servers make assumptions how accessed.

the primary assumption mapped wildcard path need have uri of form <dotnetrdf:/path/*> subject http handler declaration so:

@prefix dnr: <http://www.dotnetrdf.org/configuration#> .  <dotnetrdf:/sparql/*> dnr:httphandler ;   dnr:type "vds.rdf.web.sparqlserver" ;   dnr:queryprocessor _:proc .  _:proc dnr:sparqlqueryprocessor ;   dnr:type "vds.rdf.query.leviathanqueryprocessor" ;   dnr:usingstore _:store .  _:store dnr:triplestore ;   dnr:type "vds.rdf.triplestore" . 

if change configuration allow access endpoints @ /sparql/query , /sparql/update. note sparql graph store protocol not supported via rdfserver.

we'll make sure future versions of rdfserver enforce these restrictions more , give appropriate error messages when trying use unsupported configurations.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -