gpt4 book ai didi

rdf - RDF 文件未按预期生成三元组

转载 作者:行者123 更新时间:2023-12-04 14:22:44 26 4
gpt4 key购买 nike

我正在使用 MarkLogic 8.0-6.3

使用 sem:rdf-load 从 RDF 文件生成三元组时很少有三元组没有被创建。

我已经粘贴了 RDF 文件内容、生成的三元组和我用来加载文件的查询。

RDF

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
xmlns:skos-abc="http://www.abccustom.com#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<skos:Concept rdf:about="http://www.mla.com/work/W19622_2">
<skos-abc:createdDate>5/10/2004 12:13:25 PM</skos-abc:createdDate>
<skos-abc:classification>
<skos-abc:literature>Netherlandic literature</skos-abc:literature>
<skos-abc:timePeriod>1900-1999</skos-abc:timePeriod>
</skos-abc:classification>
<skos-abc:genreName>poetry</skos-abc:genreName>
</skos:Concept>
</rdf:RDF>

三元组
<?xml version="1.0" encoding="UTF-8"?>
<sem:triples xmlns:sem="http://marklogic.com/semantics">
<sem:triple>
<sem:subject>http://www.mla.com/work/W19622_2</sem:subject>
<sem:predicate>http://www.w3.org/1999/02/22-rdf-syntax-ns#type</sem:predicate>
<sem:object>http://www.w3.org/2004/02/skos/core#Concept</sem:object>
</sem:triple>
<sem:triple>
<sem:subject>http://www.mla.com/work/W19622_2</sem:subject>
<sem:predicate>http://www.abccustom.com#createdDate</sem:predicate>
<sem:object datatype="http://www.w3.org/2001/XMLSchema#string">5/10/2004 12:13:25 PM</sem:object>
</sem:triple>
<sem:triple>
<sem:subject>http://www.mla.com/work/W19622_2</sem:subject>
<sem:predicate>http://www.abccustom.com#classification</sem:predicate>
<sem:object>http://marklogic.com/semantics/blank/3225438043493348960</sem:object>
</sem:triple>
<sem:triple>
<sem:subject>http://marklogic.com/semantics/blank/3225438043493348960</sem:subject>
<sem:predicate>http://www.w3.org/1999/02/22-rdf-syntax-ns#type</sem:predicate>
<sem:object>http://www.abccustom.com#literature</sem:object>
</sem:triple>
<sem:triple>
<sem:subject>http://www.mla.com/work/W19622_2</sem:subject>
<sem:predicate>http://www.abccustom.com#classification</sem:predicate>
<sem:object>http://marklogic.com/semantics/blank/6756667330843774627</sem:object>
</sem:triple>
<sem:triple>
<sem:subject>http://marklogic.com/semantics/blank/6756667330843774627</sem:subject>
<sem:predicate>http://www.w3.org/1999/02/22-rdf-syntax-ns#type</sem:predicate>
<sem:object>http://www.abccustom.com#timePeriod</sem:object>
</sem:triple>
<sem:triple>
<sem:subject>http://www.mla.com/work/W19622_2</sem:subject>
<sem:predicate>http://www.abccustom.com#genreName</sem:predicate>
<sem:object datatype="http://www.w3.org/2001/XMLSchema#string">poetry</sem:object>
</sem:triple>
</sem:triples>

查询
sem:rdf-load("D:\Projects\MLA\SKOS sample\work1.rdf", ("graph=thesaurus-work1"));

不为以下部分生成三元组
<skos-abc:classification>
<skos-abc:literature>Netherlandic literature</skos-abc:literature>
<skos-abc:timePeriod>1900-1999</skos-abc:timePeriod>
</skos-abc:classification>

我期望在输出中也低于三倍。
Sub: http://marklogic.com/semantics/blank/3225438043493348960
Pred: literature
Obj: Netherlandic literature
--------------------------------------
Sub: http://marklogic.com/semantics/blank/6756667330843774627
Pred: timePeriod
Obj: 1900-1999

请帮助我在 RDF 中找到问题。

最佳答案

我同意 MarkLogic 没有正确解析您的 RDF/XML 数据。请联系 MarkLogic 支持以创建此问题的错误报告。

关于rdf - RDF 文件未按预期生成三元组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50876708/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com