Class GraphQLQueryRootForStarPattern

java.lang.Object
se.liu.ida.hefquin.engine.wrappers.graphql.utils.GraphQLQueryRootForStarPattern

public class GraphQLQueryRootForStarPattern extends Object
An class for objects that wrap a StarPattern and provide functionality for creating the root field of a GraphQL query based on the star pattern.
  • Field Details

  • Constructor Details

  • Method Details

    • getStarPattern

      public StarPattern getStarPattern()
    • getGraphQLObjectType

      public final String getGraphQLObjectType()
      Returns the GraphQL object type that corresponds to the star pattern or null if the type cannot be determined.
    • getGraphQLArguments

      public final Map<String,org.apache.jena.graph.impl.LiteralLabel> getGraphQLArguments()
      Returns a map representing the arguments that can be used from the given star pattern. The predicate from a TP needs to be a property URI and the object needs to be a literal
    • getGraphQLEntryPoint

      public final GraphQLEntrypoint getGraphQLEntryPoint() throws QueryTranslatingException
      Returns the relevant entry point with regards to if the corresponding star pattern has the required arguments.
      Throws:
      QueryTranslatingException - if no valid entrypoint was found.
    • determineGraphQLObjectType

      protected String determineGraphQLObjectType()
    • determineGraphQLArguments

      protected Map<String,org.apache.jena.graph.impl.LiteralLabel> determineGraphQLArguments()
    • determineGraphQLEntryPoint

      protected GraphQLEntrypoint determineGraphQLEntryPoint() throws QueryTranslatingException
      Throws:
      QueryTranslatingException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object