text: import { Container } from "../data/Container";
  import { cloneElement } from "../data/utils";
  import { AskToken } from "../tokens/AskToken";
  import { FromClause } from "./FromClause";
  function getSelectFn(genericFactory, container) {
      return function () {
          var queryClause = new AskToken();
          var queryToken = cloneElement(container.targetToken, { queryClause: queryClause });
          var newContainer = new Container({
              iriResolver: container.iriResolver,
              targetToken: queryToken,
          });
          return FromClause.createFrom(genericFactory, newContainer, {});
      };
  }
  export var AskClause = {
      createFrom: function (genericFactory, container, object) {
          return Object.assign(object, {
              ask: getSelectFn(genericFactory, container),
          });
      },
  };
  
  //# sourceMappingURL=AskClause.js.map
  