I am running some test cases.

When I run the tests (TestReaderEvent) from within Jean (2.10.1) it works
fine.  When I run it using the testing jar from a different project (using
the same setup) it does not.

Under Jena 2.10.1  The call calls are:
model.getReader("N-TRIPLE")
ModelCom.getReader("N-TRIPLE")
RDFReaderFImpl.getReader("N-TRIPLE")
String className = langToClassName.getProperty(lang) returns
"com.hp.hpl.jena.rdf.model.impl.NTripleReader"

under a different project the calls are:
model.getReader("N-TRIPLE")
ModelCom.getReader("N-TRIPLE")
RDFReaderFImpl.getReader("N-TRIPLE")
String className = langToClassName.getProperty(lang) returns
"com.hp.hpl.jena.n3.N3JenaWriter.JenaReadersWriters$RDFReaderRIOT_TTL"


>From what I can gather the reader class names are loaded in an
RDFReaderFImpl static block:

static { // static initializer - set default readers
        langToClassName = new Properties();
        for (int i = 0; i<LANGS.length; i++) {
            langToClassName.setProperty(
                               LANGS[i],
                               JenaRuntime.getSystemProperty(PROPNAMEBASE +
LANGS[i],
                                                  DEFAULTREADERS[i]));
        }
    }

The only thing I can figure is taht the JenaRuntime.getSystemProperty() is
returning a different value, but in debugging it is simpley calling
System.getProperty( propName, default) and returning that value (no
exception thrown).

Does anybody have any idea why this is happening and what I need to do to
get both sets of code to use the
com.hp.hpl.jena.rdf.model.impl.NTripleReader as the other reader does not
pass the tests.

Thanks,
Claude


-- 
I like: Like Like - The likeliest place on the web<http://like-like.xenei.com>
Identity: https://www.identify.nu/[email protected]
LinkedIn: http://www.linkedin.com/in/claudewarren

Reply via email to