Commit b19e8f4f authored by Christian Pichot's avatar Christian Pichot
Browse files

Modification of the skol-xl uri constructor for the imported definition in...

Modification of the skol-xl uri constructor for the imported definition in case or prefix endinf by '#' (and not '/')
parent a9f92b0e
......@@ -357,11 +357,15 @@ public class Mapping implements Comparable<Mapping>
Ontology source = aml.getSource();
Ontology target = aml.getTarget();
String out = "";
String uri_tempo = ""; //cpichotMarch2020
if(s2.equals(MappingStatus.CORRECT)){
out = "<rdf:Description rdf:about='" + uris.getURI(sourceId) + "'>";
out += "\n <skos:definition rdf:resource='" + defString(uris.getURI(sourceId),"/") + "'/>";
uri_tempo = uris.getURI(sourceId).replace("#", "#////"); //cpichotMarch2020
//cpichotMarch2020 out += "\n <skos:definition rdf:resource='" + defString(uris.getURI(sourceId),"/") + "'/>";
out += "\n <skos:definition rdf:resource='" + defString(uris.getURI(sourceId).replace("#", "#////"),"/").replace("#////", "#") + "'/>";
out += "\n</rdf:Description>";
out += "\n\n<rdf:Description rdf:about='" + defString(uris.getURI(sourceId),"/") + "'>";
//cpichotMarch2020 out += "\n\n<rdf:Description rdf:about='" + defString(uris.getURI(sourceId),"/") + "'>";
out += "\n\n<rdf:Description rdf:about='" + defString(uris.getURI(sourceId).replace("#", "#////"),"/").replace("#////", "#") + "'>";
out += "\n <status:hasSource rdf:datatype='http://www.w3.org/2001/XMLSchema#string'>" +
target.getURI() + "</status:hasSource>";
out += "\n <rdf:value xml:lang='en'>" + target.getDefinitions(targetId).replaceAll("(^\\[|\\]$)", "") + "</rdf:value>";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment