Class DefaultQueryLabeler

java.lang.Object
fr.lirmm.graphik.integraal.core.DefaultQueryLabeler
All Implemented Interfaces:
QueryLabeler

public class DefaultQueryLabeler extends Object implements QueryLabeler
Default implementation that assigns synthetic labels to unlabeled queries.
Author:
Clément Sipieter (INRIA) <clement@6pi.fr>
  • Constructor Details

    • DefaultQueryLabeler

      public DefaultQueryLabeler()
      Creates a labeler with an empty set of already assigned labels.
    • DefaultQueryLabeler

      public DefaultQueryLabeler(Set<String> alreadyAffected)
      Creates a labeler initialized with an existing set of assigned labels.
      Parameters:
      alreadyAffected - the labels that are already in use
  • Method Details

    • setLabel

      public void setLabel(Query query)
      Assigns a label to the provided query if needed.
      Specified by:
      setLabel in interface QueryLabeler
      Parameters:
      query - the query to label