Changeset: 984bfd51aed8 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=984bfd51aed8
Modified Files:
        monetdb5/extras/rdf/rdf.h
        monetdb5/extras/rdf/rdf_shredder.c
        monetdb5/extras/rdf/rdfschema.h
Branch: rdf
Log Message:

Small fix when compiling without building all rdf tables


diffs (37 lines):

diff --git a/monetdb5/extras/rdf/rdf.h b/monetdb5/extras/rdf/rdf.h
--- a/monetdb5/extras/rdf/rdf.h
+++ b/monetdb5/extras/rdf/rdf.h
@@ -63,7 +63,7 @@ RDFpartialjoin (bat *res, bat *lmap, bat
 
 
 #define IS_DUPLICATE_FREE 0            /* 0: Duplications have not been 
removed, otherwise 1 */
-#define IS_COMPACT_TRIPLESTORE 0       /* 1: Only keep SPO for triple store */
+#define IS_COMPACT_TRIPLESTORE 1       /* 1: Only keep SPO for triple store */
 #define TRIPLE_STORE 1
 #define MLA_STORE    2
 #define NOT_IGNORE_ERROR_TRIPLE 0
diff --git a/monetdb5/extras/rdf/rdf_shredder.c 
b/monetdb5/extras/rdf/rdf_shredder.c
--- a/monetdb5/extras/rdf/rdf_shredder.c
+++ b/monetdb5/extras/rdf/rdf_shredder.c
@@ -541,7 +541,9 @@ int CTrefine(BAT **ret, BAT *b, BAT *a);
 static str
 post_processing (parserData *pdata)
 {
+       #if IS_COMPACT_TRIPLESTORE == 0
        clock_t beginT, endT;   
+       #endif
        BAT *map_oid = NULL, *S = NULL, *P = NULL, *O = NULL;
        BAT **graph = pdata->graph;
 #if STORE == TRIPLE_STORE
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
@@ -114,7 +114,7 @@ typedef struct PropStat {
                                        Specifically, the consistsOf list only 
contains 
                                        the freqIdx of merged CS from previous 
rule. */
 
-#define OUTPUT_FREQID_PER_LABEL 0      /* This is for evaluating the results 
of merging using S1. TODO: Set it to 0 for default*/
+#define OUTPUT_FREQID_PER_LABEL 1      /* This is for evaluating the results 
of merging using S1. TODO: Set it to 0 for default*/
 
 #define IS_MULVALUE_THRESHOLD  1.1     /* The ratio betweeen (the number of 
triple coverred by Prop P) / (number of Non-NULL object values for P)
                                           If this ratio is ~1, only use single 
value column for that prop
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to