java - How to preserve namespace prefixes in a Jena TDB dataset? -
I am using Jena TDB (1.1.1) to store a set of named articles. Everything works fine, but whenever I recover a named graph from a dataset, all the namespace prefix information is lost. Is there a way to preserve namespace prefixes in the original RDF graph?
The following code snippet shows the problem.
@Test Public Zero Test PreserveNsPrefixes () {String Model Text = "@Profix RO: Its Outlook is:
Ns prefix number: 3 & lt; Http: //example.org/ro> A & lt; Http: //www.w3.org/ns/ldp#DirectContainer> , & Lt; Http: //purl.org/wf4ever/ro#ResearchObject> , & Lt; Http: //www.openarchives.org/ore/terms/Aggregation> . NS prefix number: 0 I think it is related to it although I do not think this is an exact duplicate.
It is just that if the comment is removed, its answer is not opened, this is the problem, And the problem has been solved.
Comments
Post a Comment