Andy, Thanks for the reply.
As a response to your answer on #1, note that the store descriptor file (quoted in the message) contains no such file string as "c:\X\cornerstone-lte2\config\planStore.ttl". That was the configFile argument to connectStore. The Javadoc for SDBFactory.connectStore(String configFile) says: "configFile - Filename for assembler for Store and SDBConenction". It should either make explicit that it expects a URI or convert the filename to a URI internally. Dave -----Original Message----- From: Andy Seaborne [mailto:[email protected]] On Behalf Of Andy Seaborne Sent: Monday, September 10, 2012 4:27 PM To: [email protected] Subject: Re: SDB and concurrent update > 1. warning about .ttl file contents. I compared mine against the one in the > Jena 2.7.3 distro, including byte-for-byte, and I see nothing that explains > this. It is, however, "only" a warning. > > WARN [tomcat-http--18] (ErrorHandlerFactory.java:68) - [line: 6, col: 1 ] > Bad IRI: <c:\X\cornerstone-lte2\config\planStore.ttl#store> Code: > 4/UNWISE_CHARACTER in PATH: The character matches no grammar rules of > URIs/IRIs. These characters are permitted in RDF URI References, XML system > identifiers, and XML Schema anyURIs. Two things are bad here: c: \ although it's only the \ that is actually causing the warning. A URI like: <c:/X/c...> parses as a URI scheme called "c:" (c.f. http:) which isn't what you mean. The correct [*] URI is file:///c:/. yes - 3 /// - there is an empty host betwen the first two / and the third. file://host/c:/ \ is not allowed in URIs. try / (good news - MS Windoes accepts / in file names) [*] for some value of correct as the "file:" RFC is a bit hazy in places. > WARN [tomcat-http--18] (ErrorHandlerFactory.java:68) - [line: 8, col: 24] > Bad IRI: <c:\X\cornerstone-lte2\config\planStore.ttl#conn> Code: > 4/UNWISE_CHARACTER in PATH: The character matches no grammar rules of > URIs/IRIs. These characters are permitted in RDF URI References, XML system > identifiers, and XML Schema anyURIs. > WARN [tomcat-http--18] (ErrorHandlerFactory.java:68) - [line: 10, col: 1 ] > Bad IRI: <c:\X\cornerstone-lte2\config\planStore.ttl#conn> Code: > 4/UNWISE_CHARACTER in PATH: The character matches no grammar rules of > URIs/IRIs. These characters are permitted in RDF URI References, XML system > identifiers, and XML Schema anyURIs. > > --- planStore.ttl --- > @prefix sdb: <http://jena.hpl.hp.com/2007/sdb#> . > @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . > @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . > @prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . > > <#store> rdf:type sdb:Store ; > sdb:layout "layout2" ; > sdb:connection <#conn> ; > . > <#conn> rdf:type sdb:SDBConnection ; > sdb:sdbType "postgresql" ; > sdb:sdbHost "localhost" ; > sdb:sdbName "jenaStore" ; > . > ---
