Class AbstractQueryService

    • Constructor Detail

      • AbstractQueryService

        public AbstractQueryService​(InterMineAPI im)
        Constructor.
        Parameters:
        im - The InterMine application object.
    • Method Detail

      • getSchemaUrl

        protected java.lang.String getSchemaUrl​(java.lang.String queryFormat)
        Parameters:
        queryFormat - JSON or XML
        Returns:
        The XML Schema url.
      • getSchemaLocation

        public static java.lang.String getSchemaLocation​(javax.servlet.http.HttpServletRequest request,
                                                         java.lang.String queryFormat)
        Parameters:
        request - A request for a mine, so we can work out where the schema probably is.
        queryFormat - JSON or XML
        Returns:
        The Schema url.
      • getQueryBuilder

        protected PathQueryBuilder getQueryBuilder​(java.lang.String input)
        Get a path-query builder.
        Parameters:
        input - The query XML or JSON.
        Returns:
        A builder for this query.
      • formatIsJsonObj

        protected boolean formatIsJsonObj()
        Returns:
        Whether or not the format is for JSON-Objects