代码之家  ›  专栏  ›  技术社区  ›  jerdeb

加载外部RDF或Turtle文件时出现Apache Jena RIOT异常

  •  1
  • jerdeb  · 技术社区  · 7 年前

    我正在尝试加载 外部的 词汇( http://purl.org/eis/vocab/daq#

    org.apache.jena.riot.RiotException: [line: 23, col: 1 ] Broken token (newline): The Dataset Quality Vocabulary (daQ) is a lightweight, extensible core vocabulary for attaching the result of quality benchmarking of a linked open 
    

    谢谢 杰里米

    1 回复  |  直到 7 年前
        1
  •  1
  •   AndyS    7 年前

    第23行周围的字符串中有原始换行符。替换为“”-引用或修复数据。

    RDF/XML还可以。

    RDFParser 构建一个解析器进程,将“accept”头设置为“application/rdf+xml”。使用的默认值 RDFDataMgr