You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5d3af46
Browse filesBrowse the repository at this point in the historyBrowse files
caseSome(IriRef(_, _)) =>throwAssertionException(s"Named graphs other than ${OntologyConstants.NamedGraphs.KnoraExplicitNamedGraph} cannot occur in non-triplestore-specific generated search query SPARQL")
Copy file name to clipboardExpand all lines: webapi/src/main/scala/org/knora/webapi/responders/v2/search/gravsearch/prequery/AbstractPrequeryGenerator.scala
-215Lines changed: 0 additions & 215 deletions
Original file line number
Diff line number
Diff line change
@@ -1119,74 +1119,6 @@ abstract class AbstractPrequeryGenerator(constructClause: ConstructClause,
1119
1119
}
1120
1120
}
1121
1121
1122
-
/**
1123
-
* Handles the deprecated function `knora-api:match` in the simple schema.
1124
-
*
1125
-
* @paramfunctionCallExpression the function call to be handled.
1126
-
* @paramtypeInspectionResult the type inspection results.
1127
-
* @paramisTopLevel if `true`, this is the top-level expression in the `FILTER`.
throwGravsearchException(s"Function ${functionIri.toSparql} cannot be used in a Gravsearch query written in the complex schema; use ${OntologyConstants.KnoraApiV2Complex.MatchFunction.toSmartIri.toSparql} instead")
1135
-
}
1136
-
1137
-
// The match function must be the top-level expression, otherwise boolean logic won't work properly.
1138
-
if (!isTopLevel) {
1139
-
throwGravsearchException(s"Function ${functionIri.toSparql} must be the top-level expression in a FILTER")
1140
-
}
1141
-
1142
-
// two arguments are expected: the first must be a variable representing a string value,
1143
-
// the second must be a string literal
1144
-
1145
-
if (functionCallExpression.args.size !=2) throwGravsearchException(s"Two arguments are expected for ${functionIri.toSparql}")
1146
-
1147
-
// a QueryVariable expected to represent a text value
throwGravsearchException(s"Function ${functionIri.toSparql} cannot be used in a Gravsearch query written in the simple schema; use ${OntologyConstants.KnoraApiV2Simple.MatchFunction.toSmartIri.toSparql} instead")
1269
-
}
1270
-
1271
-
// The match function must be the top-level expression, otherwise boolean logic won't work properly.
1272
-
if (!isTopLevel) {
1273
-
throwGravsearchException(s"Function ${functionIri.toSparql} must be the top-level expression in a FILTER")
1274
-
}
1275
-
1276
-
// two arguments are expected: the first must be a variable representing a string value,
1277
-
// the second must be a string literal
1278
-
1279
-
if (functionCallExpression.args.size !=2) throwGravsearchException(s"Two arguments are expected for ${functionIri.toSparql}")
Copy file name to clipboardExpand all lines: webapi/src/main/scala/org/knora/webapi/responders/v2/search/gravsearch/types/InferringGravsearchTypeInspector.scala
+1-18Lines changed: 1 addition & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -982,9 +982,7 @@ class InferringGravsearchTypeInspector(nextInspector: Option[GravsearchTypeInspe
982
982
// the function.
983
983
984
984
functionCallExpression.functionIri.iri.toString match {
Copy file name to clipboardExpand all lines: webapi/src/test/scala/org/knora/webapi/responders/v2/search/gravsearch/types/GravsearchTypeInspectorSpec.scala
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -302,7 +302,7 @@ class GravsearchTypeInspectorSpec extends CoreSpec() with ImplicitSender {
0 commit comments