public IUriNode CreateUriNode(string uriOrQname) { SUriNode sUriNode = new SUriNode(namespaceMaper.coding.InsertOne(GetEntityString(uriOrQname)), this); return(sUriNode); }
public IUriNode GetUriNode(Uri uri) { var code = namespaceMaper.coding.GetCode(uri.ToString()); if (code == int.MinValue) { return(null); } SUriNode sUriNode = new SUriNode(code, this); return(sUriNode); }
public IEnumerable <Triple> GetTriples() { PaEntry paEntry = dataCell.Root.Element(0); //foreach (var element in entitiesTree.Root.Elements()) for (int i = 0; i < entitiesTree.Root.Count(); i++) { var element = entitiesTree.Root.Element(i); //(int)element.Field(0).Get(),=WRONG SUriNode sUriNode = new SUriNode(i, this); foreach (object[] po in (object[])element.Field(1).Get()) { paEntry.offset = (long)po[1]; yield return(new Triple(sUriNode, new SUriNode((int)po[0], this), new SLiteralNode(paEntry.Get(), this))); } foreach (object[] po in (object[])element.Field(2).Get()) { yield return(new Triple(sUriNode, new SUriNode((int)po[0], this), new SUriNode((int)po[1], this))); } } }
public IUriNode CreateUriNode(Uri uri) { SUriNode sUriNode = new SUriNode(namespaceMaper.coding.InsertOne(uri.ToString()), this); return(sUriNode); }