public void setOWLFormat(string defaultNS, PrefixOWLOntologyFormat namespaceManager, CogniPy.CNL.EN.endict lex) { this.defaultNs = defaultNS; var map = namespaceManager.getPrefixName2PrefixMap(); var keys = map.keySet().iterator(); while (keys.hasNext()) { var k = keys.next().ToString(); var v = map.get(k).ToString(); k = k.Split(':')[0]; if (string.IsNullOrEmpty(k)) { defaultNs = v; continue; } if (!Pfx2ns.ContainsKey(k)) { Pfx2ns.Add(k, v); } if (!Ns2pfx.ContainsKey(v)) { Ns2pfx.Add(v, k); } } this.lex = lex; }
//TODO probably this initializer should not exist because the prefixes are not loaded dynamically... public void setOWLDataFactory(string defaultNS, OWLDataFactory factory, PrefixOWLOntologyFormat namespaceManager, CogniPy.CNL.EN.endict lex) { this.factory = factory; this._pfx2ns = null; this._lex = lex; this._defaultNs = defaultNS; this.owlNC.setOWLFormat(defaultNS, namespaceManager, _lex); }
public void setOWLDataFactory(string defaultNS, PrefixOWLOntologyFormat namespaceManager, CogniPy.CNL.EN.endict lex) { this.owlNC.setOWLFormat(defaultNS, namespaceManager, lex); }