//public override ObjectVariants CreateLiteralOtherType(string p, string typeUriNode) //{ // return new OV_typedint(p, coding_table.Add(typeUriNode), coding_table.GetStringByCode); //} // public ObjectVariants GetCoded(int code) //{ // return new OV_iriint(code, coding_table.GetStringByCode); //} public override bool TryGetUri(OV_iri iriString, out ObjectVariants iriCoded) { int code = coding_table.GetCode(iriString.UriString); iriCoded = iriString; if (code == -1) return false; iriCoded=new OV_iriint(code, coding_table.GetString); return true; }
//public override ObjectVariants CreateLiteralOtherType(string p, string typeUriNode) //{ // return new OV_typedint(p, coding_table.Add(typeUriNode), coding_table.GetStringByCode); //} // public ObjectVariants GetCoded(int code) //{ // return new OV_iriint(code, coding_table.GetStringByCode); //} public override bool TryGetUri(OV_iri iriString, out ObjectVariants iriCoded) { int code = coding_table.GetCodeByString(iriString.UriString); iriCoded = iriString; if (code == -1) return false; iriCoded=new OV_iriint(code, coding_table.GetStringByCode); return true; }