我正在使用 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 中的问题。