Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 41b80dfe authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- small updates related to Namespaces

parent b1b57b59
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,9 @@ public class RDFRendererVisitor implements AlignmentVisitor
String extensionString = "";
alignment = align;
nslist = new Hashtable<String,String>();
nslist.put(Namespace.ALIGNMENT.uri,"align");
//nslist.put(Namespace.ALIGNMENT.uri,"align");
// I must fix this # problem
nslist.put( Namespace.ALIGNMENT.uri+"#" , Namespace.ALIGNMENT.shortCut );
nslist.put("http://www.w3.org/1999/02/22-rdf-syntax-ns#","rdf");
nslist.put("http://www.w3.org/2001/XMLSchema#","xsd");
//nslist.put("http://www.omwg.org/TR/d7/ontology/alignment","omwg");
......@@ -110,6 +112,7 @@ public class RDFRendererVisitor implements AlignmentVisitor
writer.print("' standalone='no'?>\n");
}
writer.print("<rdf:RDF xmlns='"+Namespace.ALIGNMENT.uri+"'");
//writer.print(NL+" xml:base='"+Namespace.ALIGNMENT.uri+"'");
for ( Enumeration e = nslist.keys() ; e.hasMoreElements(); ) {
String k = (String)e.nextElement();
writer.print("\n xmlns:"+nslist.get(k)+"='"+k+"'");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment