Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/386.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Jena中的SDB连接错误_Java_Path_Jena - Fatal编程技术网

Java Jena中的SDB连接错误

Java Jena中的SDB连接错误,java,path,jena,Java,Path,Jena,我尝试使用SDB将Jena与Oracle数据库连接,但在编译代码时出现错误,我不知道这意味着什么: 线程“main”org.openjena.riot.RiotException中的异常:代码:11/方案中首选小写字母:此组件中首选小写字母 我使用的sdb.ttl文件: @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix rdf: <http://www.w3.org/1999/02/

我尝试使用SDB将Jena与Oracle数据库连接,但在编译代码时出现错误,我不知道这意味着什么:

线程“main”org.openjena.riot.RiotException中的异常:代码:11/方案中首选小写字母:此组件中首选小写字母

我使用的sdb.ttl文件:

@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#> .
@prefix sdb:      <http://jena.hpl.hp.com/2007/sdb#> .

<#store> rdf:type sdb:Store ;
sdb:layout         "layout2/hash" ;
sdb:connection     <#conn> ;
<#conn> rdf:type sdb:SDBConnection ;

sdb:sdbType        "oracle" ;
sdb:sdbHost        "localhost" ;
sdb:sdbName        "XE" ;       # Oracle SID
sdb:driver         "oracle.jdbc.driver.OracleDriver" ;

# With OracleXE, it can be useful to use the user/password
# to give multiple stores in the same installation.
sdb:sdbUser        "m" ;
sdb:sdbPassword    "w" ;
.
有什么问题,我该如何解决?

来自评论:

而不是

"D:\\pobrane\\SDB-1.3.4\\Store\\sdb.ttl"
应该是

"file:///D:\\pobrane\\SDB-1.3.4\\Store\\sdb.ttl"

好的,我找到了answear.D:\\pobrane\\SDB-1.3.4\\Store\\SDB.ttl“应该是
”file:///D:\\pobrane\\SDB-1.3.4\\Store\\SDB.ttl“