Changeset: befad300c3bc for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=befad300c3bc
Modified Files:
monetdb5/extras/rdf/rdfschema.c
Branch: rdf
Log Message:
Fix a bug happened when a predicate is the same as the first subject (curP =
*pbt = 0).
Change all curP = 0 to curP = BUN_NONE
diffs (101 lines):
diff --git a/monetdb5/extras/rdf/rdfschema.c b/monetdb5/extras/rdf/rdfschema.c
--- a/monetdb5/extras/rdf/rdfschema.c
+++ b/monetdb5/extras/rdf/rdfschema.c
@@ -4304,7 +4304,7 @@ str RDFassignCSId(int *ret, BAT *sbat, B
#endif
numP = 0;
- curP = 0;
+ curP = BUN_NONE;
curS = 0;
printf("freqThreshold = %d \n", *freqThreshold);
@@ -4330,7 +4330,7 @@ str RDFassignCSId(int *ret, BAT *sbat, B
}
curS = *sbt;
- curP = 0;
+ curP = BUN_NONE;
numP = 0;
numPwithDup = 0;
}
@@ -4429,14 +4429,14 @@ str RDFgetRefCounts(int *ret, BAT *sbat,
buff = (oid *) malloc (sizeof(oid) * maxNumProp);
numP = 0;
- curP = 0;
+ curP = BUN_NONE;
curS = 0;
BATloop(sbat, p, q){
sbt = (oid *) BUNtloc(si, p);
if (*sbt != curS){
curS = *sbt;
- curP = 0;
+ curP = BUN_NONE;
numP = 0;
}
@@ -4507,7 +4507,7 @@ str RDFrelationships(int *ret, BAT *sbat
numPwithDup = 0;
curS = 0;
- curP = 0;
+ curP = BUN_NONE;
BATloop(sbat, p, q){
sbt = (oid *) BUNtloc(si, p);
@@ -4525,7 +4525,7 @@ str RDFrelationships(int *ret, BAT *sbat
#endif
curS = *sbt;
numPwithDup = 0;
- curP = 0;
+ curP = BUN_NONE;
}
pbt = (oid *) BUNtloc(pi, p);
@@ -4682,7 +4682,7 @@ str RDFExtractCSPropTypes(int *ret, BAT
numPwithDup = 0;
curS = 0;
- curP = 0;
+ curP = BUN_NONE;
BATloop(sbat, p, q){
sbt = (oid *) BUNtloc(si, p);
@@ -4692,7 +4692,7 @@ str RDFExtractCSPropTypes(int *ret, BAT
}
curS = *sbt;
numPwithDup = 0;
- curP = 0;
+ curP = BUN_NONE;
}
obt = (oid *) BUNtloc(oi, p);
@@ -5208,7 +5208,7 @@ str RDFExtractSampleData(int *ret, BAT *
numP = 0;
curS = 0;
- curP = 0;
+ curP = BUN_NONE;
BATloop(sbat, p, q){
sbt = (oid *) BUNtloc(si, p);
@@ -5229,7 +5229,7 @@ str RDFExtractSampleData(int *ret, BAT *
}
curS = *sbt;
numP = 0;
- curP = 0;
+ curP = BUN_NONE;
}
if (totalInstance == maxNumInstance) break;
@@ -6036,7 +6036,7 @@ RDFextractPfromPSO(int *ret, bat *pbatid
/* Init a hashmap */
pMap = hashmap_new();
- curP = 0;
+ curP = BUN_NONE;
supportP = 0;
BATloop(pbat, p, q){
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list