Skip to content

Commit ed18b23

Browse files
fixed crashes with SPARQL FILTER expressions in combination with Redland Rasqal
1 parent 46a9436 commit ed18b23

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ Setting up Konclude for building/compiling with Visual Studio 2015/2017:
149149
150150
# CHANGELOG
151151
152-
152+
- Konclude v0.7.0-1137:
153+
- Fixed crashes for SPARQL FILTER expressions in combination with Redland Rasqal.
153154
154155
- Konclude v0.7.0-1135:
155156
- (Limited) SPARQL and query answering support with Redland Rasqal.

Source/Parser/CSPARQLRedlandRasqalReasoningBGPQueryParser.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,11 +1039,13 @@ namespace Konclude {
10391039
for (CExpressionVariable* disVar : disVarList) {
10401040
if (projVarPosHash.contains("?" + disVar->getName())) {
10411041
cint64 pos = projVarPosHash.value("?" + disVar->getName());
1042-
sortedDisVarList[pos] = disVar;
1042+
if (pos >= 0) {
1043+
sortedDisVarList[pos] = disVar;
1044+
}
10431045
}
10441046
}
10451047
for (CExpressionVariable* disVar : disVarList) {
1046-
if (!projVarPosHash.contains("?" + disVar->getName())) {
1048+
if (projVarPosHash.value("?" + disVar->getName(), -1) < 0) {
10471049
sortedDisVarList[nextProjVarPos++] = disVar;
10481050
}
10491051
}

revision-git.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#define KONCLUDE_VERSION_GIT_REVISION_NUMBER 1135
2-
#define KONCLUDE_VERSION_GIT_TAG_NAME_STRING "v0.7.0"
3-
#define KONCLUDE_VERSION_GIT_REVISION_HASH_STRING "91b3e331"
1+
#define KONCLUDE_VERSION_GIT_REVISION_NUMBER 1137
2+
#define KONCLUDE_VERSION_GIT_TAG_NAME_STRING "v0.7.0"
3+
#define KONCLUDE_VERSION_GIT_REVISION_HASH_STRING "e414f879"

0 commit comments

Comments
 (0)