Mentions légales du service

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

- passes to Namespaces

parent ccd47d2a
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@ import org.semanticweb.owl.align.Cell;
import org.semanticweb.owl.align.Relation;
import fr.inrialpes.exmo.align.impl.Annotations;
import fr.inrialpes.exmo.align.impl.Namespaces;
import fr.inrialpes.exmo.align.impl.BasicAlignment;
import fr.inrialpes.exmo.align.impl.ObjectCell;
import fr.inrialpes.exmo.align.impl.BasicParameters;
......@@ -86,7 +87,7 @@ public class RDFRendererVisitor implements AlignmentVisitor
String extensionString = "";
alignment = align;
nslist = new Hashtable<String,String>();
nslist.put(Annotations.ALIGNNS,"align");
nslist.put(Namespace.ALIGNMENT.uri,"align");
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");
......@@ -108,7 +109,7 @@ public class RDFRendererVisitor implements AlignmentVisitor
writer.print("<?xml version='1.0' encoding='utf-8");
writer.print("' standalone='no'?>\n");
}
writer.print("<rdf:RDF xmlns='"+Annotations.ALIGNNS+"'");
writer.print("<rdf:RDF xmlns='"+Namespace.ALIGNMENT.uri+"'");
for ( Enumeration e = nslist.keys() ; e.hasMoreElements(); ) {
String k = (String)e.nextElement();
writer.print("\n xmlns:"+nslist.get(k)+"='"+k+"'");
......@@ -123,7 +124,7 @@ public class RDFRendererVisitor implements AlignmentVisitor
}
writer.print(">\n");
writer.print("<Alignment");
String idext = align.getExtension( Annotations.ALIGNNS, Annotations.ID );
String idext = align.getExtension( Namespace.ALIGNMENT.uri, Annotations.ID );
if ( idext != null ) {
writer.print(" rdf:about=\""+idext+"\"");
}
......
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