由于编码中文字符,无法将webdatacommons示例文件上传到OpenRDF Sesame 2.7.0(貌似)

时间:2013-05-02 10:00:09

标签: rdf sparql sesame

我刚尝试上传示例webdatacommons RDF file

进入Sesame 2.7.0并收到消息:

"'洪雄熊' was not recognised as a language literal, and could not be verified, with language zh_tw [line 3931]"

我在文件中检查了该行,结果如下:

<http://bearhungfactory.mysinablog.com/index.php> <http://creativecommons.org/ns#attributionName> "\u6D2A\u96C4\u718A"@zh_tw <http://bearhungfactory.mysinablog.com/index.php>   .

我想知道是否有办法放松芝麻验证,所以我还可以上传这些文件?如果没有,您能否建议是否有其他解决方法上传 webdatacommons成芝麻?或者我可以使用这个数据的SPARQL端点吗?

以下是完整的例外情况:

    WARNING: org.openrdf.workbench.exceptions.BadRequestException: '洪雄熊' was not recognised as a language literal, and could not be verified, with language zh_tw [line 3931]
org.openrdf.workbench.exceptions.BadRequestException: '洪雄熊' was not recognised as a language literal, and could not be verified, with language zh_tw [line 3931]
    at org.openrdf.workbench.commands.AddServlet.add(AddServlet.java:117)
    at org.openrdf.workbench.commands.AddServlet.doPost(AddServlet.java:69)
    at org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:95)
    at org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:137)
    at org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:104)
    at org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:222)
    at org.openrdf.workbench.proxy.WorkbenchServlet.handleRequest(WorkbenchServlet.java:151)
    at org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:119)
    at org.openrdf.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:131)
    at org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:137)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.openrdf.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:63)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
Caused by: org.openrdf.rio.RDFParseException: '洪雄熊' was not recognised as a language literal, and could not be verified, with language zh_tw [line 3931]
    at org.openrdf.http.client.SesameHTTPClient.upload(SesameHTTPClient.java:646)
    at org.openrdf.http.client.SesameHTTPClient.upload(SesameHTTPClient.java:563)
    at org.openrdf.repository.http.HTTPRepositoryConnection.add(HTTPRepositoryConnection.java:412)
    at org.openrdf.workbench.commands.AddServlet.add(AddServlet.java:114)
    ... 28 more

我在Ubuntu 12.04 LTS上使用“Native Java Store RDF Schema和Direct Type Hierarchy”存储库,64位使用JDK 1.6和Tomcat 7.0。

我将非常感谢您的帮助或一般建议。感谢。

1 个答案:

答案 0 :(得分:2)

来自answers.semanticweb和Sesame邮件列表的答案:

http://answers.semanticweb.com/questions/22526/unable-to-upload-webdatacommons-example-file-into-openrdf-sesame-270-seemingly-because-of-encoded-chinese-characters

摘要:zh_tw不是有效的语言标记。转换为zh-tw