Jena Fuseki上的错误消息“SyntaxError:JSON.parse:JSON数据的第1行第1列的意外字符”

时间:2018-03-15 09:13:34

标签: json sparql jena

我必须使用apache jena-fuseki,一个应用程序Web来查询用XML语言编写的RDF file。当我加载文件时,它向我显示有关函数JSON.parse的错误消息。我检查文档是正确的,我尝试使用RDF验证器(link)并且它没有给我任何问题。

知道为什么我无法加载文件?

JSON Error

这是文件代码:

<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:gml="http://www.opengis.net/gml"
  xmlns:archaeo="http://www.ics.forth.gr/isl/CRMext/CRMarchaeo.rdfs/"
  xmlns:crm="http://www.cidoc-crm.org/cidoc-crm/"
  xmlns:sci="http://www.ics.forth.gr/isl/CRMext/CRMsci.rdfs/"
  xmlns:skos="http://www.w3.org/2004/02/skos/core#"
  xmlns:crmdig="http://www.ics.forth.gr/isl/CRMext/CRMdig.rdfs/"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
  <crm:E4_Period rdf:about="http://archaeositarproject.it/st_named_year_range_#59">
    <crm:P4_has_time-span>
      <crm:E52_Time-Span>
        <crm:P82b_end_of_the_end rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">-961</crm:P82b_end_of_the_end>
        <crm:P81b_begin_of_the_end rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">-961</crm:P81b_begin_of_the_end>
        <crm:P81a_end_of_the_begin rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">-1200</crm:P81a_end_of_the_begin>
        <crm:P82a_begin_of_the_begin rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">-1200</crm:P82a_begin_of_the_begin>
      </crm:E52_Time-Span>
    </crm:P4_has_time-span>
    <crm:P1_is_identified_by>
      <crm:E49_Time_Appellation>
        <rdfs:label xml:lang="it">Età del Bronzo Finale</rdfs:label>
      </crm:E49_Time_Appellation>
    </crm:P1_is_identified_by>
  </crm:E4_Period>
  <crm:E4_Period rdf:about="http://archaeositarproject.it/st_named_year_range_#58">
    <crm:P4_has_time-span>
      <crm:E52_Time-Span>
        <crm:P82b_end_of_the_end rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">-1201</crm:P82b_end_of_the_end>
        <crm:P81b_begin_of_the_end rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">-1201</crm:P81b_begin_of_the_end>
        <crm:P81a_end_of_the_begin rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">-1250</crm:P81a_end_of_the_begin>
        <crm:P82a_begin_of_the_begin rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">-1250</crm:P82a_begin_of_the_begin>
      </crm:E52_Time-Span>
    </crm:P4_has_time-span>
    <crm:P1_is_identified_by>
      <crm:E49_Time_Appellation>
        <rdfs:label xml:lang="it">Età del Bronzo Recente, fase II</rdfs:label>
      </crm:E49_Time_Appellation>
    </crm:P1_is_identified_by>
  </crm:E4_Period>
</rdf:RDF>

1 个答案:

答案 0 :(得分:1)

这是Apache Jena Fuseki v3.5.0中的一个错误,已在v3.6.0中修复。