Mentions légales du service

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

- moved to Namespace

parent b7f82a0a
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,7 @@ import fr.inrialpes.exmo.align.onto.BasicOntology; ...@@ -57,6 +57,7 @@ import fr.inrialpes.exmo.align.onto.BasicOntology;
import fr.inrialpes.exmo.align.impl.URIAlignment; import fr.inrialpes.exmo.align.impl.URIAlignment;
import fr.inrialpes.exmo.align.impl.BasicParameters; import fr.inrialpes.exmo.align.impl.BasicParameters;
import fr.inrialpes.exmo.align.impl.Annotations; import fr.inrialpes.exmo.align.impl.Annotations;
import fr.inrialpes.exmo.align.impl.Namespace;
/** /**
* This class allows the creation of a parser for an Alignment file. * This class allows the creation of a parser for an Alignment file.
...@@ -268,7 +269,7 @@ public class AlignmentParser extends DefaultHandler { ...@@ -268,7 +269,7 @@ public class AlignmentParser extends DefaultHandler {
System.err.println("startElement AlignmentParser : " + pName); System.err.println("startElement AlignmentParser : " + pName);
parseLevel++; parseLevel++;
if( namespaceURI.equals("http://knowledgeweb.semanticweb.org/heterogeneity/alignment") if( namespaceURI.equals("http://knowledgeweb.semanticweb.org/heterogeneity/alignment")
|| namespaceURI.equals(Annotations.ALIGNNS) ) { || namespaceURI.equals(Namespace.ALIGNMENT.uri) ) {
if (pName.equals("relation")) { if (pName.equals("relation")) {
} else if (pName.equals("semantics")) { } else if (pName.equals("semantics")) {
} else if (pName.equals("measure")) { } else if (pName.equals("measure")) {
...@@ -346,7 +347,7 @@ public class AlignmentParser extends DefaultHandler { ...@@ -346,7 +347,7 @@ public class AlignmentParser extends DefaultHandler {
onto1 = ((URIAlignment)alignment).getOntologyObject1(); onto1 = ((URIAlignment)alignment).getOntologyObject1();
onto2 = ((URIAlignment)alignment).getOntologyObject2(); onto2 = ((URIAlignment)alignment).getOntologyObject2();
if ( atts.getValue("rdf:about") != null && !atts.getValue("rdf:about").equals("") ) { if ( atts.getValue("rdf:about") != null && !atts.getValue("rdf:about").equals("") ) {
alignment.setExtension( Annotations.ALIGNNS, Annotations.ID, atts.getValue("rdf:about") ); alignment.setExtension( Namespace.ALIGNMENT.uri, Annotations.ID, atts.getValue("rdf:about") );
}; };
} else { } else {
if ( debugMode > 0 ) System.err.println("[AlignmentParser] Unknown element name : "+pName); if ( debugMode > 0 ) System.err.println("[AlignmentParser] Unknown element name : "+pName);
...@@ -415,7 +416,7 @@ public class AlignmentParser extends DefaultHandler { ...@@ -415,7 +416,7 @@ public class AlignmentParser extends DefaultHandler {
if(debugMode > 2) if(debugMode > 2)
System.err.println("endElement AlignmentParser : " + pName); System.err.println("endElement AlignmentParser : " + pName);
if( namespaceURI.equals("http://knowledgeweb.semanticweb.org/heterogeneity/alignment") if( namespaceURI.equals("http://knowledgeweb.semanticweb.org/heterogeneity/alignment")
|| namespaceURI.equals(Annotations.ALIGNNS) ) { || namespaceURI.equals(Namespace.ALIGNMENT.uri) ) {
try { try {
if (pName.equals("relation")) { if (pName.equals("relation")) {
relation = content; relation = content;
......
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