I am trying to connect Jena to an Oracle database using SDB, but when I compile the code I have an error and I don't know what this means:
An exception in the stream "main" org.openjena.riot.RiotException: Code: 11 / LOWERCASE_PREFERRED in SCHEME: lowercase is preferred in this component
My sdb.ttl file that I use:
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema
My Jena class that uses SDB:
import com.hp.hpl.jena.rdf.model.Model; import com.hp.hpl.jena.rdf.model.Statement; import com.hp.hpl.jena.rdf.model.StmtIterator; import com.hp.hpl.jena.sdb.SDBFactory; import com.hp.hpl.jena.sdb.Store; public class semantyka { public static void main(String [] argv) { Store store = SDBFactory.connectStore("D:\\pobrane\\SDB-1.3.4\\Store\\sdb.ttl") ; Model model = SDBFactory.connectDefaultModel(store) ; StmtIterator sIter = model.listStatements() ; for ( ; sIter.hasNext() ; ) { Statement stmt = sIter.nextStatement() ; System.out.println(stmt) ; } sIter.close() ; store.close() ; } }
What is wrong and how can I fix it?
source share