Getting error running sparql query
shelleyp - June 26, 2008 - 17:43
| Project: | SPARQL |
| Version: | 6.x-1.0-alpha1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
When attempting to run a SPARQL query, I get the following error:
Fatal error: SPARQL_Query::require_once() [function.require]: Failed opening required 'modules/sparql/sparql.engine.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/shelleyp/public_html/realtech/modules/sparql/sparql.inc on line 232

#1
Forgot the end point.
Suggestion: a required field like the sparql end point shouldn't be included in a collapsible section labeled "Options"
#2
I got the same error... but AFAIK, it has nothing to do with endpoints but rather with a file missing from the packages. The sparql.engine.inc file doesn't seem to be in the CVS repository either. Strangely enough I found a version of it here:
http://github.com/bendiken/drupal/commit/cfc1095ad4ef566030c4ecd786b11f0...
#3
Confirmed, adding the sparql.engine.inc file from omar's link above fixes at least that issue.
#4
what is end point url? I am a starter,Sorry for asking though
#5
sparql.engine.inc file is indeed missing from CVS.
@Arto, any reason not to just add the version in your github repo?
#6
here's a patch with the file from github.
#7
The administrative interface allows endpoint to be disabled.
If it is, then the field should not appear in the edit form for a SPARQL node, should it?
#8
The current dev version (1.x-dev) seems to have similar problems. I updated to dev in the hope that the problem with the missing file was fixed by now, but it was not. Then I added sparql.engine.inc from the Github link. But I guess this file is incompatible with the -dev version, it demands to have sparql.pages.inc as well. So I also addes sparql.pages.inc from Github. Now I get the errpr
"Cannot redeclare sparql_endpoint() (previously declared in /var/www/drupal/sites/default/modules/sparql/sparql.pages.inc:16) in /var/www/drupal/sites/default/modules/sparql/sparql.engine.inc on line"
I guess the -dev version was restructured so I am now stuck with incompatible files. What a mess.