1

我刚刚尝试上传示例webdatacommons RDF 文件

进入 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 上传到 Sesame?或者我可以使用此数据的 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

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

我将不胜感激任何帮助或一般建议。谢谢。

4

1 回答 1

2

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

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

于 2013-05-02T19:10:37.863 回答