Class QueryConverter

java.lang.Object
fr.inria.rules.integraal.util.converter.QueryConverter

public class QueryConverter extends Object
Converts FOQuery to and from Graal's ConjunctiveQuery
This is used for compatibility with Graal 1.3 version.
Author:
Florent Tornil
  • Method Details

    • convert

      public static ConjunctiveQuery convert(FOQuery<?> query)
      Converts the given FOQuery into a Graal ConjunctiveQuery
      Parameters:
      query - the query to convert
      Returns:
      the converted query
    • convert2

      public static fr.lirmm.graphik.graal.api.core.ConjunctiveQuery convert2(FOQuery<?> query)
      Converts the given FOQuery into a Graal ConjunctiveQuery
      Parameters:
      query - the query to convert
      Returns:
      the converted query
    • reverse

      public static FOQuery<?> reverse(ConjunctiveQuery query)
      Converts the given ConjunctiveQuery into a FOQuery
      Parameters:
      query - the query to convert
      Returns:
      the converted query