Class DefaultConjunctiveQueryWithNegatedParts

java.lang.Object
fr.lirmm.graphik.integraal.core.DefaultConjunctiveQueryWithNegatedParts
All Implemented Interfaces:
ConjunctiveQueryWithNegatedParts, Query

public class DefaultConjunctiveQueryWithNegatedParts extends Object implements ConjunctiveQueryWithNegatedParts
Default implementation of a conjunctive query with explicit negated parts.
Author:
Clément Sipieter (INRIA) <clement@6pi.fr>
  • Constructor Details

    • DefaultConjunctiveQueryWithNegatedParts

      public DefaultConjunctiveQueryWithNegatedParts(InMemoryAtomSet positiveAtomSet, List<InMemoryAtomSet> negatedParts)
      Creates a query with negated parts and infers the answer variables from the positive part.
      Parameters:
      positiveAtomSet - the positive query body
      negatedParts - the negated query parts
    • DefaultConjunctiveQueryWithNegatedParts

      public DefaultConjunctiveQueryWithNegatedParts(String label, InMemoryAtomSet positiveAtomSet, List<InMemoryAtomSet> negatedParts)
      Creates a labeled query with negated parts and infers answer variables from the positive part.
      Parameters:
      label - the query label
      positiveAtomSet - the positive query body
      negatedParts - the negated query parts
    • DefaultConjunctiveQueryWithNegatedParts

      public DefaultConjunctiveQueryWithNegatedParts(InMemoryAtomSet positiveAtomSet, List<InMemoryAtomSet> negatedParts, List<Term> ans)
      Creates a query with negated parts and explicit answer variables.
      Parameters:
      positiveAtomSet - the positive query body
      negatedParts - the negated query parts
      ans - the answer variables
    • DefaultConjunctiveQueryWithNegatedParts

      public DefaultConjunctiveQueryWithNegatedParts(String label, InMemoryAtomSet positiveAtomSet, List<InMemoryAtomSet> negatedParts, List<Term> ans)
      Creates a labeled query with negated parts and explicit answer variables.
      Parameters:
      label - the name of this query
      positiveAtomSet - the positive part of the conjunction of atoms representing the query
      negatedParts - a list of negated conjunctions of atoms
      ans - the list of answer variables
    • DefaultConjunctiveQueryWithNegatedParts

      public DefaultConjunctiveQueryWithNegatedParts(ConjunctiveQueryWithNegatedParts query)
      Creates a copy of the specified query with negated parts.
      Parameters:
      query - the query to copy
  • Method Details