private XPathSemWebNavigator(Entity root, Store model, NamespaceManager namespaces, string exapandThisPredicate) {
			this.model = model;
			
			if (!(namespaces is SemWeb.IO.AutoPrefixNamespaceManager))
				namespaces = new SemWeb.IO.AutoPrefixNamespaceManager(namespaces);
			this.nsmgr = namespaces;
			nswrap = new NSWrap(nsmgr);
			
			Position start = new Position();
			start.FirstChild = true;
			start.LastChild = true;
			start.Predicate = root; // a trick to make sure the URI info for the root reflects the root
			start.Object = root;
			if (exapandThisPredicate != null)
				Expand(start, exapandThisPredicate);
			current = start;
		}
Ejemplo n.º 2
0
        private XPathSemWebNavigator(Entity root, Store model, NamespaceManager namespaces, string exapandThisPredicate)
        {
            this.model = model;

            if (!(namespaces is SemWeb.IO.AutoPrefixNamespaceManager))
            {
                namespaces = new SemWeb.IO.AutoPrefixNamespaceManager(namespaces);
            }
            this.nsmgr = namespaces;
            nswrap     = new NSWrap(nsmgr);

            Position start = new Position();

            start.FirstChild = true;
            start.LastChild  = true;
            start.Predicate  = root;            // a trick to make sure the URI info for the root reflects the root
            start.Object     = root;
            if (exapandThisPredicate != null)
            {
                Expand(start, exapandThisPredicate);
            }
            current = start;
        }