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

shelleyp - June 26, 2008 - 18:18
Component:Code» User interface

Forgot the end point.

Suggestion: a required field like the sparql end point shouldn't be included in a collapsible section labeled "Options"

#2

omar - July 4, 2008 - 23:12

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

Benjamin Melançon - September 23, 2008 - 17:30
Component:User interface» Code

Confirmed, adding the sparql.engine.inc file from omar's link above fixes at least that issue.

#4

student297 - October 15, 2008 - 03:10

what is end point url? I am a starter,Sorry for asking though

#5

jmiccolis - November 3, 2008 - 16:01

sparql.engine.inc file is indeed missing from CVS.

@Arto, any reason not to just add the version in your github repo?

#6

drewish - May 15, 2009 - 07:14
Status:active» needs review

here's a patch with the file from github.

AttachmentSize
sparql_275363.patch 5.45 KB

#7

shunting - May 25, 2009 - 19:18

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

matthiassamwald - August 18, 2009 - 14:17

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.

 
 

Drupal is a registered trademark of Dries Buytaert.