I am trying to send a query to the completion point of DBipedia through a PHP script, unfortunately any liability did not get. This script is:
& lt; Php require_once ('sparqllib.php'); $ Db = sparql_connect ('http://dbpedia.org/sparql'); $ Query = "SELECT? Movie WHERE {? Movie & lt; http: //purl.org/dc/terms/subject> http: //dbpedia.org/resource/Category: French_films & gt;}; $ Result = sparql_query ($ query); $ Fields = sparql_field_array ($ result); While ($ row = sparql_fetch_array ($ result)) {foreach ($ field as $ field) {print "$ line [$ field] \ n"; }}? & Gt; This gives me an HTTP 500 error.
Update:
I need help, please! Whatever I know, I tried, no success was found. Curious thing is that in Python, a similar script works ... I'm really frustrated about it.
From the comment on this question: < P> I got my mistake I wrote fileds instead of fields, the code was okay. Thanks for the help ??? Viqu
No comments:
Post a Comment