From: Jeen B. <jee...@wu...> - 2011-10-26 02:09:33
|
Sorry if I'm overly pushy here, but I thought I'd post a reminder about this as I'd really like to sort this problem out. I am rather keen to get Sesame and SMW to play nice together, and I can put a bit of a testing/debugging effort into this. Where do I start and/or who do I talk to? :) Cheers, Jeen On 21/10/11 14:23, Jeen Broekstra wrote: > I've just set up a clean new Semantic Mediawiki (1.6.1) and am trying to > get it to work with a Sesame (2.6.0) RDF database, using SPARQL query > and update. > > However, I've hit an issue which I'm not sure how to solve: for some > reason SMW will not add any data to the Sesame store. > My configuration for the RDF storage is as follows: > > $smwgDefaultStore = 'SMWSparqlStore'; > $smwgSparqlQueryEndpoint = > 'http://localhost:8080/openrdf-sesame/repositories/testwiki'; # > location of query service > $smwgSparqlUpdateEndpoint = > 'http://localhost:8080/openrdf-sesame/repositories/testwiki/statements'; > # location of update service > > I've not specified a SparqlDataEndpoint, since Sesame does not implement > the graph update protocol yet. > > I have added a simple test page called TestSMW with a property > 'testProperty' with value 'dummypage'. This shows up fine in the wiki, > but for some reason the data does not get added to the Sesame store > (even when running data repair/upgrade). > > I have have checked the logs of my Sesame server, and it shows entries > like these: > > [DEBUG] 2011-10-21 14:16:42,668 [http-8080-4] update="PREFIX wiki: > <http://wallace/testwiki/index.php/Special:URIResolver/> > PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> > PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> > PREFIX owl:<http://www.w3.org/2002/07/owl#> > PREFIX swivt:<http://semantic-mediawiki.org/swivt/1.0#> > PREFIX property: > <http://wallace/testwiki/index.php/Special:URIResolver/Property-3A> > PREFIX xsd:<http://www.w3.org/2001/XMLSchema#> > DELETE { property:Testproperty ?p ?o } WHERE { property:Testproperty ?p > ?o }" > [INFO ] 2011-10-21 14:16:42,668 [repositories/testwiki] POST SPARQL > update request to repository > [DEBUG] 2011-10-21 14:16:42,668 [repositories/testwiki] update="PREFIX > wiki:<http://wallace/testwiki/index.php/Special:URIResolver/> > PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> > PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> > PREFIX owl:<http://www.w3.org/2002/07/owl#> > PREFIX swivt:<http://semantic-mediawiki.org/swivt/1.0#> > PREFIX property: > <http://wallace/testwiki/index.php/Special:URIResolver/Property-3A> > PREFIX xsd:<http://www.w3.org/2001/XMLSchema#> > DELETE { property:Testproperty ?p ?o } WHERE { property:Testproperty ?p ?o } > > This shows that SMW does indeed send SPARQL update requests, and that > Sesame receives them and executes them. However, the strange thing is > that I only see DELETE requests in the logs. There are no INSERT > operations at all, so (obviously) no data ever gets added to the store. > > Anybody have any idea what's going wrong here? > > Cheers, > > Jeen > -- Dr. Jeen Broekstra Intelligent Systems group Wageningen UR - Food& Biobased Research |