hi,I have configured the latest version jena and fuseki----both are 3.17.0 as 
required as you said, but the following problems had arisen:
1. I run the conmand:
>tdbloader.bat --loc="D:\ZhouProgram\jena\tdb" 
>"D:\ZhouProgram\jena\ttl\kgdata.ttl"d
it shows:
------------------------
11:39:06 INFO  loader          :: -- Start triples data phase
11:39:06 INFO  loader          :: ** Load empty triples table
11:39:06 INFO  loader          :: -- Start quads data phase
11:39:06 INFO  loader          :: ** Load empty quads table
11:39:06 INFO  loader          :: Load: D:\ZhouProgram\jena\ttl\kgdata.ttl -- 
2020/12/18 11:39:06 CST
11:39:07 WARN  riot            :: [line: 1135, col: 1 ] Bad IRI: 
<http://dsc.nlp-bigdatalab.org:8086/免疫球蛋白E]冷球蛋 白试验> Code: 0/ILLEGAL_CHARACTER 
in PATH: The character violates the grammar rules for URIs/IRIs.
11:39:07 WARN  riot            :: [line: 2247, col: 1 ] Bad IRI: 
<http://dsc.nlp-bigdatalab.org:8086/锝[99mTc]聚合白蛋白注射液> Code: 0/ILLEGAL_CHARACTER 
in PATH: The character violates the grammar rules for URIs/IRIs.
11:39:07 WARN  riot            :: [line: 2304, col: 1 ] Bad IRI: 
<http://dsc.nlp-bigdatalab.org:8086/利维爱[CAD/CAM系统 供应商]> Code: 
0/ILLEGAL_CHARACTER in PATH: The character violates the grammar rules for 
URIs/IRIs.
11:39:07 ERROR riot            :: [line: 2415, col: 40] Bad character in IRI 
(space): <http://dsc.nlp-bigdatalab.org:8086/河西[space]...>
org.apache.jena.riot.RiotException: [line: 2415, col: 40] Bad character in IRI 
(space): <http://dsc.nlp-bigdatalab.org:8086/河西[space]...>
        at 
org.apache.jena.riot.system.ErrorHandlerFactory$ErrorHandlerStd.error(ErrorHandlerFactory.java:146)
        at 
org.apache.jena.riot.tokens.TokenizerText.error(TokenizerText.java:1287)
        at 
org.apache.jena.riot.tokens.TokenizerText.readIRI(TokenizerText.java:505)
        at 
org.apache.jena.riot.tokens.TokenizerText.parseToken(TokenizerText.java:197)
        at 
org.apache.jena.riot.tokens.TokenizerText.hasNext(TokenizerText.java:89)
        at 
org.apache.jena.atlas.iterator.PeekIterator.fill(PeekIterator.java:50)
        at 
org.apache.jena.atlas.iterator.PeekIterator.next(PeekIterator.java:92)
        at org.apache.jena.riot.lang.LangEngine.nextToken(LangEngine.java:98)
        at org.apache.jena.riot.lang.LangEngine.expect(LangEngine.java:132)
        at org.apache.jena.riot.lang.LangEngine.expectOrEOF(LangEngine.java:119)
        at 
org.apache.jena.riot.lang.LangTurtleBase.expectEndOfTriplesTurtle(LangTurtleBase.java:333)
        at 
org.apache.jena.riot.lang.LangTurtle.expectEndOfTriples(LangTurtle.java:51)
        at 
org.apache.jena.riot.lang.LangTurtleBase.triples(LangTurtleBase.java:319)
        at 
org.apache.jena.riot.lang.LangTurtleBase.triplesSameSubject(LangTurtleBase.java:178)
        at 
org.apache.jena.riot.lang.LangTurtle.oneTopLevelElement(LangTurtle.java:46)
        at 
org.apache.jena.riot.lang.LangTurtleBase.runParser(LangTurtleBase.java:79)
        at org.apache.jena.riot.lang.LangBase.parse(LangBase.java:41)
        at 
org.apache.jena.riot.RDFParserRegistry$ReaderRIOTLang.read(RDFParserRegistry.java:184)
        at org.apache.jena.riot.RDFParser.read(RDFParser.java:353)
        at org.apache.jena.riot.RDFParser.parseURI(RDFParser.java:322)
        at org.apache.jena.riot.RDFParser.parse(RDFParser.java:296)
        at 
org.apache.jena.riot.RDFParserBuilder.parse(RDFParserBuilder.java:540)
        at org.apache.jena.riot.RDFDataMgr.parseFromURI(RDFDataMgr.java:921)
        at org.apache.jena.riot.RDFDataMgr.parse(RDFDataMgr.java:711)
        at org.apache.jena.riot.RDFDataMgr.parse(RDFDataMgr.java:680)
        at org.apache.jena.riot.RDFDataMgr.parse(RDFDataMgr.java:668)
        at 
org.apache.jena.tdb.store.bulkloader.BulkLoader.loadQuads$(BulkLoader.java:151)
        at 
org.apache.jena.tdb.store.bulkloader.BulkLoader.loadDataset(BulkLoader.java:109)
        at org.apache.jena.tdb.TDBLoader.loadDataset$(TDBLoader.java:259)
        at org.apache.jena.tdb.TDBLoader.loadDataset(TDBLoader.java:185)
        at org.apache.jena.tdb.TDBLoader.load(TDBLoader.java:69)
        at tdb.tdbloader.loadQuads(tdbloader.java:156)
        at tdb.tdbloader.exec(tdbloader.java:108)
        at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
        at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
        at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
        at tdb.tdbloader.main(tdbloader.java:52)
-------------------------
and then I run the command line:
>fuseki-server --loc="D:/ZhouProgram/jena/tdb" /kg
it shows:
-------------------------
11:45:31 INFO  Server          :: Running in read-only mode for /kg
11:45:31 INFO  Server          :: Apache Jena Fuseki 3.17.0
11:45:31 INFO  Config          :: 
FUSEKI_HOME=D:\ZhouProgram\jena\apache-jena-fuseki-3.17.0
11:45:31 INFO  Config          :: 
FUSEKI_BASE=D:\ZhouProgram\jena\apache-jena-fuseki-3.17.0\run
11:45:31 INFO  Config          :: Shiro file: 
file://D:\ZhouProgram\jena\apache-jena-fuseki-3.17.0\run\shiro.ini
11:45:32 INFO  Config          :: Template file: templates/config-tdb-dir
11:45:34 INFO  Server          :: Database: TDB1 dataset: 
location=D:/ZhouProgram/jena/tdb
11:45:34 INFO  Server          :: Path = /kg
11:45:34 INFO  Server          :: System
11:45:34 INFO  Server          ::   Memory: 1.0 GiB
11:45:34 INFO  Server          ::   Java:   1.8.0_271
11:45:34 INFO  Server          ::   OS:     Windows 10 10.0 amd64
11:45:34 INFO  Server          ::   PID:    7172
11:45:34 INFO  Server          :: Started 2020/12/18 11:45:34 CST on port 3030
---------------------------
but when I type in my browser and jump to http://localhost:3030, it showed 
there was no dataset on it, whatever http://localhost:3030/dataset.html or 
http://localhost:3030/manage.html
2.Because of the above experience,I try to run this command line to directly 
publish the RDF data rather than through tdb:
>fuseki-server --file "D:\ZhouProgram\jena\ttl\kgdata.ttl" /kg
it shows:
---------------------------
11:48:38 INFO  Server          :: Dataset: in-memory: load file: 
D:\ZhouProgram\jena\ttl\kgdata.ttl
11:48:39 WARN  riot            :: [line: 1135, col: 1 ] Bad IRI: 
<http://dsc.nlp-bigdatalab.org:8086/免疫球蛋白E]冷球蛋 白试验> Code: 0/ILLEGAL_CHARACTER 
in PATH: The character violates the grammar rules for URIs/IRIs.
11:48:39 WARN  riot            :: [line: 2247, col: 1 ] Bad IRI: 
<http://dsc.nlp-bigdatalab.org:8086/锝[99mTc]聚合白蛋白注射液> Code: 0/ILLEGAL_CHARACTER 
in PATH: The character violates the grammar rules for URIs/IRIs.
11:48:39 WARN  riot            :: [line: 2304, col: 1 ] Bad IRI: 
<http://dsc.nlp-bigdatalab.org:8086/利维爱[CAD/CAM系统 供应商]> Code: 
0/ILLEGAL_CHARACTER in PATH: The character violates the grammar rules for 
URIs/IRIs.
11:48:39 ERROR riot            :: [line: 2415, col: 40] Bad character in IRI 
(space): <http://dsc.nlp-bigdatalab.org:8086/河西[space]...>
Failed to load file: D:\ZhouProgram\jena\ttl\kgdata.ttl
-----------------------------
3.At last, I decide to add new dataset through  http://localhost:3030 UI rather 
than command line,I press the button named 'add new dataset' on the page 
http://localhost:3030/manage.html,but there was no reaction
thank for your reply!

















At 2020-12-15 20:53:11, "Andy Seaborne" <a...@apache.org> wrote:
>Hi there,
>
> > apache-jena-fuseki-3.5.0
>
>That's quite old - the current version is 3.17.0
>Upgrading would be a good idea just in case.
>
>Are there any messages in the server log file?
>
>
>It is going to be difficult to pin down an encoding issue (if that is 
>what it is) because by the time we get this email, it has been 
>encoded/decoded so many times it may have changed the data.
>
>What displays correctly one way may actually be different bytes, but it 
>is hidden by display reversing the mis-encoding.  This is especailly 
>true for data displayed in web-browsers.
>
>It is worth executing the queries from the command line with Fuseki running.
>
>Looking at the UTF-8, the first and third queries look right.
>
>     Andy
>
>Comments inline below:
>
>
>On 15/12/2020 03:12, 周蓉 wrote:
>> Hello, when I query in Fuseki like this:
>> 
>> PREFIX : <http://dsc.nlp-bigdatalab.org:8086/>
>> 
>> SELECT * WHERE {
>> 
>>    ?s ?p ?o.
>> 
>> } #query1
>> 
>> It can return the many results ,one of the results is:
>> :口腔毛滴虫病    rdf:type    :症状
>> 
>> 
>> when I query like this:
>> PREFIX : <http://dsc.nlp-bigdatalab.org:8086/>
>> SELECT * WHERE {
>>    :口腔毛滴虫病 rdf:type ?o.
>> } #query2
>> it can return the results:
>> :症状
>
>(That does not show a prefix for rdf: presumably the real query has that 
>PREFIX in it?)
>
>Could you try the query with
>
><http://dsc.nlp-bigdatalab.org:8086/口腔毛滴虫病>
>
>This eliminates one step - the prefix to URI conversion.
>
>> 
>> 
>> but when I query like this:
>> PREFIX : <http://dsc.nlp-bigdatalab.org:8086/>
>> SELECT * WHERE {
>>    ?s rdf:type :症状.
>> } #query3
>> it returns:
>> No data available in table
>> 
>> 
>> 
>> 
>> 
>> it confused me again
>> 
>> is this the problem related to the OWL data in 
>> ..\jena\apache-jena-fuseki-3.5.0\run\databases?
>> 
>> or RDF data in ..\jena\tdb
>
>I would certainly check the data by dumping the database.
>That is especially the the encoding of the URI <http://dsc.nlp- 
>bigdatalab.org:8086/口腔毛滴虫病>
>
>> 
>> 
>> 
>> 
>> look forward and thanks for your reply
>> 
>> 
>> 
>> 
>> 
>>   
>> 

Reply via email to