I am using MarkLogic 8.0-6.3
While generating triples from an RDF file using sem:rdf-load
few of the triples are not created.
I have pasted the RDF file content, generated triples and the query which I am using to load the file.
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>
Triples
<?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>
Query
sem:rdf-load("D:\Projects\MLA\SKOS sample\work1.rdf", ("graph=thesaurus-work1"));
Triples aren't generated for below part
<skos-abc:classification>
<skos-abc:literature>Netherlandic literature</skos-abc:literature>
<skos-abc:timePeriod>1900-1999</skos-abc:timePeriod>
</skos-abc:classification>
I was expecting below triples as well in the output.
Sub: http://marklogic.com/semantics/blank/3225438043493348960
Pred: literature
Obj: Netherlandic literature
--------------------------------------
Sub: http://marklogic.com/semantics/blank/6756667330843774627
Pred: timePeriod
Obj: 1900-1999
Please help me in finding the problem in RDF.
http://marklogic.com/semantics/blank/3225438043493348960
as you can see from the sem:triples output that you shared.. – Selenaselenate_:bnode4688104443361939814
, not ashttp://marklogic.com/semantics/blank/4688104443361939814
– Selenaselenate