Download & Extend

Getting error running sparql query

Project:SPARQL
Version:6.x-1.0-alpha1
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs review
Issue tags:.engine, missing

Issue Summary

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

Comments

#1

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

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

Component:User interface» Code

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

Status:active» needs review

here's a patch with the file from github.

AttachmentSize
sparql_275363.patch 5.45 KB

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

#9

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.

#10

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.

#11

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.

#12

Priority:normal» critical

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

Nothing in dblog. Has this been resolved?

Thanks :)

#13

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