Skip to content

Commit

Permalink
Wip/dsp 168 refactor gravsearch (#1658)
Browse files Browse the repository at this point in the history
  • Loading branch information
nemmK committed Jun 23, 2020
1 parent ff87b7a commit fdc5140
Show file tree
Hide file tree
Showing 3 changed files with 213 additions and 139 deletions.
Expand Up @@ -41,6 +41,7 @@ object MainQueryResultProcessor {
* @param typeInspectionResult results of type inspection of the input query.
* @return results with only the values the user asked for in the input query's CONSTRUCT clause.
*/
// TODO apparently not needed, work is taken care in ConstructResponseUtilV2.nestResources
def getRequestedValuesFromResultsWithFullGraphPattern(queryResultsWithFullGraphPattern: RdfResources,
valueObjectVarsAndIrisPerMainResource: ValueObjectVariablesAndValueObjectIris,
allResourceVariablesFromTypeInspection: Set[QueryVariable],
Expand Down
Expand Up @@ -273,11 +273,13 @@ class NonTriplestoreSpecificGravsearchToPrequeryTransformer(constructClause: Con
/**
* The variable names used in the GROUP_CONCAT expressions for dependent resources.
*/
// TODO only used by GravsearchMainQueryGenerator and not clear why
val dependentResourceVariablesGroupConcat: Set[QueryVariable] = dependentResourceGroupConcat.map(_.outputVariable)

/**
* The variable names used in the GROUP_CONCAT expressions for values.
*/
// TODO same as above
val valueObjectVariablesGroupConcat: Set[QueryVariable] = valueGroupConcatVariablesPerResource.values.flatten.toSet

/**
Expand Down

0 comments on commit fdc5140

Please sign in to comment.