<div>Hi guys,</div>
<div>I met the same problem as Peter wrote in the following link: <a href="http://lists.tdwg.org/pipermail/tdwg-guid/2006-September/000496.html">http://lists.tdwg.org/pipermail/tdwg-guid/2006-September/000496.html</a>. Unfortunately, I didn't get the final solution in it.
</div>
<div> </div>
<div>I'm not sure Peter, Ben and Steve are still in this mail group or not. Anyway, can anybody help me solve this problem? Thanks a lot.</div>
<div> </div>
<div>My code is attached as well. What I want is outputing my vocabulary "Manifest" instead of "rdf:Description".</div>
<div> Map<String, String> ns = new HashMap<String, String>();<br> ns.put("", "<a href="http://www.test.com/2007/08/test-vocabulary">http://www.test.com/2007/08/test-vocabulary</a>#");
<br> ns.put("rdfs", "<a href="http://www.w3.org/2000/01/rdf-schema">http://www.w3.org/2000/01/rdf-schema</a>#");<br> ns.put("rdf", "<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns">
http://www.w3.org/1999/02/22-rdf-syntax-ns</a>#");<br> Model model = ModelFactory.createDefaultModel();<br> model.setNsPrefixes(ns);<br> Resource r = model.createResource("<a href="http://www.test.com/2007/08/test_config#MyNodeID").addProperty(model.createProperty("http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
http://www.test.com/2007/08/test_config#MyNodeID").addProperty(model.createProperty("http://www.w3.org/1999/02/22-rdf-syntax-ns#type</a>"), "<a href="http://www.test.com/2007/08/test-vocabulary#Manifest">
http://www.test.com/2007/08/test-vocabulary#Manifest</a>");<br> Property p = model.createProperty("<a href="http://www.test.com/2007/08/test-vocabulary#created_by">http://www.test.com/2007/08/test-vocabulary#created_by
</a>");<br> Statement s = model.createStatement(r, p, "Chaohong");<br> model.add(s);<br> RDFWriter w = model.getWriter("RDF/XML-ABBREV");<br> w.setProperty("showXMLDeclaration", "true");
<br> w.setProperty("tab", "2");<br> w.setProperty("xmlbase", "<a href="http://www.test.com/2007/08/test_config">http://www.test.com/2007/08/test_config</a>#");<br> w.write(model,
System.out, "<a href="http://www.test.com/2007/08/test-vocabulary">http://www.test.com/2007/08/test-vocabulary</a>#");</div>
<div> </div>
<div>Chaohong</div>