向我的 SPARQL 客户端端点发出 POST 请求时出现以下错误:
Malformed query: org.openrdf.rio.RDFParseException: IRI included an unencoded space: '32' [line 1]
我正在使用 Postman 发出请求并设置了一个标头,它是 Content-Type 并且具有 value sparql-update
。
我在正文中传递的数据是这样的:
insert data { <rdf:RDF xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:country="http://example.xyz.ds/country/"
xmlns:currency="http://example.xyz.ds/currency/"
xmlns:area="http://example.xyz.ds/area/"
xmlns:city="http://example.xyz.ds/city/"
xmlns:root="http://example.xyz.ds/terms#"
xmlns:specialIdenifier="http://example.xyz.ds/specialIdenifier/"
xmlns:product="http://example.xyz.ds/product/"
xmlns:company="http://example.xyz.ds/company/"
xmlns:office="http://example.xyz.ds/office/"
xmlns:schema="http://schema.org/"
xmlns:uuid="java:java.util.UUID"
xmlns:acmUtil="http://example.xyz.ds/util-functions">
<rdf:Description rdf:about="http://example.xyz.ds/company/123456789>
<rdf:type rdf:resource="http://example.xyz.ds/terms#company"/>
<rdfs:label/>
<root:fid xmlns:urn="urn:"
xmlns:func="http://example.xyz.ds/func"
rdf:datatype="http://www.w3.org/2001/XMLSchema#string">4049</root:fid>
<root:deleted xmlns:urn="urn:"
xmlns:func="http://example.xyz.ds/func"
rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</root:deleted>
</rdf:Description>
</rdf:RDF> }
我希望我可以将整个 RDF XML 文档发布到正文中,并且 SPARQL 客户端/海王星数据库只会理解其中的三元组。
我在网上看到了很多关于此错误的信息,但找不到与直接发布数据相关的解决方案。知道如何解决这个问题吗?