]> arthur.barton.de Git - netatalk.git/blobdiff - etc/spotlight/slmod_sparql_parser.c
Add generated files from yacc and flex
[netatalk.git] / etc / spotlight / slmod_sparql_parser.c
index d4082fd248bbc8f72ef531f994ac747e5b350ca6..bb06ba7a66d9feb172c739018f48a5a56bfb05b8 100644 (file)
 
 /* In a future release of Bison, this section will be replaced
    by #include "y.tab.h".  */
 
 /* In a future release of Bison, this section will be replaced
    by #include "y.tab.h".  */
-#ifndef YY_YY_Y_TAB_H_INCLUDED
-# define YY_YY_Y_TAB_H_INCLUDED
+#ifndef YY_YY_SLMOD_SPARQL_PARSER_H_INCLUDED
+# define YY_YY_SLMOD_SPARQL_PARSER_H_INCLUDED
 /* Enabling traces.  */
 #ifndef YYDEBUG
 # define YYDEBUG 0
 /* Enabling traces.  */
 #ifndef YYDEBUG
 # define YYDEBUG 0
@@ -219,7 +219,7 @@ int yyparse ();
 /* Line 387 of yacc.c  */
 #line 221 "slmod_sparql_parser.c"
 
 /* Line 387 of yacc.c  */
 #line 221 "slmod_sparql_parser.c"
 
-#endif /* !YY_YY_Y_TAB_H_INCLUDED  */
+#endif /* !YY_YY_SLMOD_SPARQL_PARSER_H_INCLUDED  */
 
 /* Copy the second part of user declarations.  */
 
 
 /* Copy the second part of user declarations.  */
 
@@ -1449,8 +1449,8 @@ yyreduce:
 #line 73 "slmod_sparql_parser.y"
     {
     ssp_result = talloc_asprintf(ssp_slq,
 #line 73 "slmod_sparql_parser.y"
     {
     ssp_result = talloc_asprintf(ssp_slq,
-                                 "SELECT DISTINCT ?url WHERE "
-                                 "{ ?obj nie:url ?url FILTER(regex(?url, '^file://%s/')) . %s}",
+                                 "SELECT ?url WHERE "
+                                 "{ ?obj nie:url ?url FILTER(regex(?url, '^file://%s/')) . %s} LIMIT 100",
                                  ssp_slq->slq_vol->v_path, (yyvsp[(1) - (1)].sval));
     (yyval.sval) = ssp_result;
 }
                                  ssp_slq->slq_vol->v_path, (yyvsp[(1) - (1)].sval));
     (yyval.sval) = ssp_result;
 }