RDF 解析错误:元素或属性“http:”不匹配 QName 产生: QName::=(NCName:)?NCName

发布于 2025-01-11 09:39:15 字数 745 浏览 3 评论 0原文

我刚刚创建了一个新的 Ontotext 数据库,并且正在尝试将 rdf 文件导入到该数据库中。

这些文件来自官方机构网站。

内容是(前三行):

<http://dati.camera.it/ocd/persona.rdf/p301553> <http://www.w3.org/2000/01/rdf-schema#label>    "Red John"^^<http://www.w3.org/2001/XMLSchema#string> .
<http://dati.camera.it/ocd/persona.rdf/p25460>  <http://xmlns.com/foaf/0.1/gender>  "male" .
<http://dati.camera.it/ocd/persona.rdf/p300460> <http://purl.org/dc/elements/1.1/title> "John Doe" .

并且我在第一行收到以下错误:

 RDF Parse Error: Element or attribute "http:" do not match QName production: QName::=(NCName:)?NCName. [line 1, column 7]

所以,问题是:如何在 OntotextQName Production > 导入外部资源时?

I just created a new Ontotext DB, and I'm trying to import an rdf file into the DB.

The files comes from an official institutional site.

The content is (first three lines):

<http://dati.camera.it/ocd/persona.rdf/p301553> <http://www.w3.org/2000/01/rdf-schema#label>    "Red John"^^<http://www.w3.org/2001/XMLSchema#string> .
<http://dati.camera.it/ocd/persona.rdf/p25460>  <http://xmlns.com/foaf/0.1/gender>  "male" .
<http://dati.camera.it/ocd/persona.rdf/p300460> <http://purl.org/dc/elements/1.1/title> "John Doe" .

and I received the following error on the first line:

 RDF Parse Error: Element or attribute "http:" do not match QName production: QName::=(NCName:)?NCName. [line 1, column 7]

So, the question is: how can I set/match a QName production on Ontotext when importing an external resource?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文