Fusuki:无法上传owl文件

时间:2017-12-02 12:46:28

标签: sparql jena

enter image description here

将.owl文件上传到fusuki服务器时,我得到了错误的说法     2.1kb     结果:消息失败"语法错误:意外令牌<在JSON的位置0"] 2] 2

我的.owl文件是

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE rdf:RDF [
  <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">
  <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
  <!ENTITY owl "http://www.w3.org/2002/07/owl#">
  <!ENTITY ns_transport "file://www.ibm.com/WSRR/Transport#">
  <!ENTITY wsrr "http://www.ibm.com/xmlns/prod/serviceregistry/6/1/model#">
]>

<rdf:RDF
  xmlns:xsd="&xsd;"
  xmlns:rdf="&rdf;"
  xmlns:rdfs="&rdfs;"
  xmlns:owl="&owl;"
  xmlns:ns_transport="&ns_transport;"
  xmlns:wsrr="&wsrr;"
>

  <owl:Ontology rdf:about="&ns_transport;TransportOntology">
    <owl:imports rdf:resource="http://www.ibm.com/xmlns/prod/serviceregistry/6/1/model"/> 
    <wsrr:prefix rdf:datatype="http://www.w3.org/2001/XMLSchema#string">transport</wsrr:prefix>
    <rdfs:label>A transport classification system.</rdfs:label>
    <rdfs:comment>Cars and buses and some superclasses.</rdfs:comment>
  </owl:Ontology>

  <owl:Class rdf:about="&ns_transport;Transport">
    <rdfs:label>Transport</rdfs:label>
    <rdfs:comment>Top-level root class for transport.</rdfs:comment>
  </owl:Class>

  <owl:Class rdf:about="&ns_transport;LandTransport">
    <rdfs:subClassOf rdf:resource="&ns_transport;Transport"/>
    <rdfs:label>Land Transport.</rdfs:label>
    <rdfs:comment>Middle-level land transport class.</rdfs:comment>
  </owl:Class>

  <owl:Class rdf:about="&ns_transport;AirTransport">
    <rdfs:subClassOf rdf:resource="&ns_transport;Transport"/>
    <rdfs:label>Air Transport.</rdfs:label>
    <rdfs:comment>Middle-level air transport class.</rdfs:comment>
  </owl:Class>

  <owl:Class rdf:about="&ns_transport;Bus">
    <rdfs:subClassOf rdf:resource="&ns_transport;LandTransport"/>
    <rdfs:label>Bus.</rdfs:label>
    <rdfs:comment>Bottom-level bus class.</rdfs:comment>
  </owl:Class>

  <owl:Class rdf:about="&ns_transport;Car">
    <rdfs:subClassOf rdf:resource="&ns_transport;LandTransport"/>
    <rdfs:label>Car.</rdfs:label>
    <rdfs:comment>Bottom-level car class.</rdfs:comment>
  </owl:Class>


</rdf:RDF>

将.owl文件上传到fusuki服务器时,我得到了错误的说法     2.1kb

将.owl文件上传到fusuki服务器时,我得到了错误的说法     2.1kb 在将.owl文件上传到fusuki服务器时,我得到了错误的说法     2.1kb 在将.owl文件上传到fusuki服务器时,我得到了错误的说法     2.1kb 在将.owl文件上传到fusuki服务器时,我得到了错误的说法     2.1kb

1 个答案:

答案 0 :(得分:2)

我在apache-jena-fuseki-3.5.0版本中遇到了同样的问题,但这个错误已经在apache-jena-fuseki-3.6.0中处理了