Changeset: f40694c20263 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f40694c20263 Modified Files: monetdb5/extras/rdf/rdfschema.c monetdb5/extras/rdf/rdfschema.h Branch: rdf Log Message:
Fix the bug causing the wrong sample data Because of using wrong Subject oid (curS vs sbt) diffs (40 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 @@ -5074,12 +5074,14 @@ str initFullSampleData(CSSampleExtend *c } csSampleEx[i].numInstances++; } - + + /* if (i == 0) for (j = 0; j < tmpNumCols; j++){ //BATprint(cstablestat->lstcstable[i].colBats[j]); BATprint(csSampleEx[i].colBats[j]); } + */ } @@ -5920,7 +5922,7 @@ str RDFExtractSampleData(int *ret, BAT * if (sampleIdx != BUN_NONE) { assert(!(numP > csSample[sampleIdx].numProp)); if (csSample[sampleIdx].numInstances < NUM_SAMPLE_INSTANCE){ - addSampleInstance(*sbt, buffO, buffP, numP, sampleIdx, csSample); + addSampleInstance(curS, buffO, buffP, numP, sampleIdx, csSample); totalInstance++; } } diff --git a/monetdb5/extras/rdf/rdfschema.h b/monetdb5/extras/rdf/rdfschema.h --- a/monetdb5/extras/rdf/rdfschema.h +++ b/monetdb5/extras/rdf/rdfschema.h @@ -141,7 +141,7 @@ typedef struct PropStat { #define STORE_PERFORMANCE_METRIC_INFO 1 -#define NO_OUTPUTFILE 1 /*Do not write the output to any file */ +#define NO_OUTPUTFILE 0 /*Do not write the output to any file */ typedef struct CS _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list