Mentions légales du service

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

- genericised the Alignement URI fully (it works now again)

parent 15decea9
No related branches found
No related tags found
No related merge requests found
...@@ -249,7 +249,7 @@ public class XMLParser extends DefaultHandler { ...@@ -249,7 +249,7 @@ public class XMLParser extends DefaultHandler {
public void startElement(String namespaceURI, String pName, String qname, Attributes atts) throws SAXException { public void startElement(String namespaceURI, String pName, String qname, Attributes atts) throws SAXException {
if(debugMode > 2) System.err.println("startElement XMLParser : " + pName); if(debugMode > 2) System.err.println("startElement XMLParser : " + pName);
parseLevel++; parseLevel++;
if( namespaceURI.equals("http://knowledgeweb.semanticweb.org/heterogeneity/alignment") if( namespaceURI.equals( Namespace.ALIGNMENT.uri+"#" )
|| namespaceURI.equals( Namespace.ALIGNMENT.uri ) ) { || namespaceURI.equals( Namespace.ALIGNMENT.uri ) ) {
if (pName.equals("relation")) { if (pName.equals("relation")) {
} else if (pName.equals("semantics")) { } else if (pName.equals("semantics")) {
...@@ -346,7 +346,7 @@ public class XMLParser extends DefaultHandler { ...@@ -346,7 +346,7 @@ public class XMLParser extends DefaultHandler {
} }
private Object getEntity( Object ontology, String name ) throws SAXException { private Object getEntity( Object ontology, String name ) throws SAXException {
try { return new URI( name );} try { return new URI( name ); }
catch (URISyntaxException e) { catch (URISyntaxException e) {
throw new SAXException("[XMLParser] bad URI syntax : "+name);} throw new SAXException("[XMLParser] bad URI syntax : "+name);}
} }
...@@ -396,7 +396,7 @@ public class XMLParser extends DefaultHandler { ...@@ -396,7 +396,7 @@ public class XMLParser extends DefaultHandler {
public void endElement(String namespaceURI, String pName, String qName ) throws SAXException { public void endElement(String namespaceURI, String pName, String qName ) throws SAXException {
if(debugMode > 2) if(debugMode > 2)
System.err.println("endElement XMLParser : " + pName); System.err.println("endElement XMLParser : " + pName);
if( namespaceURI.equals("http://knowledgeweb.semanticweb.org/heterogeneity/alignment") if( namespaceURI.equals( Namespace.ALIGNMENT.uri+"#" )
|| namespaceURI.equals( Namespace.ALIGNMENT.uri ) ) { || namespaceURI.equals( Namespace.ALIGNMENT.uri ) ) {
try { try {
if (pName.equals("relation")) { if (pName.equals("relation")) {
......
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