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

CommentFileSizeAuthor
#6 sparql_275363.patch5.45 KBdrewish

Comments

shelleyp’s picture

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"

omar’s picture

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...

mlncn’s picture

Component: User interface » Code

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

student297’s picture

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

jmiccolis’s picture

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

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

drewish’s picture

Status: Active » Needs review
StatusFileSize
new5.45 KB

here's a patch with the file from github.

shunting’s picture

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?

matthiassamwald’s picture

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.

Yorgg’s picture

Issue tags: +missing, +.engine

I have looking at github for the file under the name of sparql.engine.inc for the SPARQL Drupal module but the download link seems unavailable.

Yorgg’s picture

I have looking at github for the file under the name of sparql.engine.inc for the SPARQL Drupal module but the download link seems unavailable.

thamizhg’s picture

i downloaded sparql module and installed. If i execute some rdf queries in sparql query window, its executed and showing some results.

when i try to execute the following code from my module, it throws error.

sparql_select('?title')->
    where('?node', rdf::type, rdf_curie('drupal:node'))->
    where('?node', 'node:type', 'blog')->
    where('?node', 'node:promote', TRUE)->
    where('?node', 'node:title', rdf_var('?title'));

Fatal error: Call to undefined method SPARQL_Query::where()

Previously i got file not found error(require once) for sparql.engine.inc file. then i downloaded from the patch. After that i am getting the "Call to undefined method SPARQL_Query:" error.

pls let me know the solution to resolve this.

levacjeep’s picture

Priority: Normal » Critical

Also getting this error.
Fatal error: Call to undefined method SPARQL_Query::where()

Nothing in dblog. Has this been resolved?

Thanks :)

ronline’s picture

@student297 the list of end points => http://www.w3.org/wiki/SparqlEndpoints

avpaderno’s picture

Version: 6.x-1.0-alpha1 » 6.x-1.x-dev
Issue summary: View changes
Status: Needs review » Closed (outdated)
Issue tags: -missing, -.engine

I am removing issue tags used from one to four issues. I apologize for bumping the issue.
I am closing this issue as Drupal 6 isn't supported anymore.