Exemplo n.º 1
0
 //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;
 }
Exemplo n.º 2
0
        //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;
        }
Exemplo n.º 3
0
 public virtual bool TryGetUri(OV_iri iriString, out ObjectVariants iriCoded)
 {
     iriCoded = iriString;
     return true;
 }
Exemplo n.º 4
0
 public virtual bool TryGetUri(OV_iri iriString, out ObjectVariants iriCoded)
 {
     iriCoded = iriString;
     return(true);
 }