On 30/10/11 06:43, Sareh Aghaei wrote:
Hi Dear

In my program, I read a .rdf file at first and after that I open a .nt file
to read, but it has an error!! While I read .nt file at first and then .rdf
file, there is no error!!

How can I solve this error?

The current development codebase does not have resolveGlobalToString so this might be a fixed issue. You could try downloading a version

From the stacktrace, you're running an old version (which version of which system are you running?)


The error is :



Exception in thread "main" org.openjena.riot.RiotException:<C:\linkeddata
\persondata_en.nt>  Code: 11/LOWERCASE_PREFERRED in SCHEME: lowercase is
preferred in this component

You should fix this : "C:" isn't a legal URI (this ne code tries to detect this in some cases).

Try:

file:///C:/linkeddata/persondata_en.nt


         at
org.openjena.riot.system.IRIResolver.exceptions(IRIResolver.java:256)

         at
org.openjena.riot.system.IRIResolver.access$100(IRIResolver.java:24)

         at
org.openjena.riot.system.IRIResolver$IRIResolverNormal.resolveToString(IRIRe
solver.java:380)

         at
org.openjena.riot.system.IRIResolver.resolveGlobalToString(IRIResolver.java:
78)

         at
org.openjena.riot.system.JenaReaderRIOT.readImpl(JenaReaderRIOT.java:121)

         at
org.openjena.riot.system.JenaReaderRIOT.read(JenaReaderRIOT.java:79)

         at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:226)

         at
com.hp.hpl.jena.util.FileManager.readModelWorker(FileManager.java:395)

         at com.hp.hpl.jena.util.FileManager.readModel(FileManager.java:335)

         at com.hp.hpl.jena.util.FileManager.readModel(FileManager.java:319)

         at firsttest.Main.main(Main.java:118)

Which says what?


Java Result: 1

Thanks









Reply via email to