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 virtual bool TryGetUri(OV_iri iriString, out ObjectVariants iriCoded)
 {
     iriCoded = iriString;
     return true;
 }
Exemplo n.º 3
0
 //private const string rdf_syntax_ns = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
 //private const string xmlSchemaNs = "http://www.w3.org/2001/XMLSchema#";
 //private const string xmlSchemaPrefix="xsd:";
 //public static string[] GetAll()
 //{
 //    return new[]
 //    {
 //      // String,Bool,Decimal,Integer, Float, Double,
 //      // Date, Time, DateTime, DateTimeStamp,
 //      // GYear, GMonth, GDay, GYearMonth,           GMonthDay,      Duration   ,YearMonthDuration  , DayTimeDuration,
 //      // Byte, Short, Int, Long, UnsignedByte, unsignedShort, unsignedInt, unsignedLong,  positiveInteger,   nonNegativeInteger, negativeInteger, nonPositiveInteger,
 //      //hexBinary, base64Binary, anyURI, language, normalizedString, token, NMTOKEN,  Name, NCName
 //     Nil   ,RdfFirst,  RdfRest, RdfType
 //    };
 //}
 public SpecialTypesClass(NodeGenerator nodeGenerator)
 {
     //    date =nodeGenerator. CreateUriNode(Date);
     //    @string = nodeGenerator.CreateUriNode(String);
     //    //simpleLiteral = simple_literal_equals_string_literal
     //    //    ? String
     //    //    :  nodeGenerator.CreateUriNode(SpecialTypes.SimpleLiteral);
     //    langString = nodeGenerator.CreateUriNode(String);
     //    integer = nodeGenerator.CreateUriNode(Integer);
     //    @decimal = nodeGenerator.CreateUriNode(Decimal);
     //    @double = nodeGenerator.CreateUriNode(Double);
     //    @bool = nodeGenerator.CreateUriNode(Bool);
     //    @float = nodeGenerator.CreateUriNode(Float);
     //    timeDuration = nodeGenerator.CreateUriNode(DayTimeDuration);
     //    dateTime = nodeGenerator.CreateUriNode(DateTime);
     //nil = nodeGenerator.AddIri(Nil);
     //first = nodeGenerator.AddIri(RdfFirst);
     //rest = nodeGenerator.AddIri(RdfRest);
     type = nodeGenerator.AddIri(RdfType);
 }