Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SERVICE clause is not parsed #41

Closed
djogopatrao opened this issue Feb 25, 2013 · 3 comments
Closed

SERVICE clause is not parsed #41

djogopatrao opened this issue Feb 25, 2013 · 3 comments

Comments

@djogopatrao
Copy link

The Service clause is specified on SPARQL 1.1 documentation [1]. However, when parsing any query specifiying this clause, the parser fails.

Code:

include_once('arc2-master/ARC2.php');
$parser = ARC2::getSPARQLParser();

$q= '
PREFIX foaf:   <http://xmlns.com/foaf/0.1/>
SELECT ?name
FROM <http://example.org/myfoaf.rdf>
WHERE
{
  <http://example.org/myfoaf/I> foaf:knows ?person .
  SERVICE <http://people.example.org/sparql> { 
    ?person foaf:name ?name . } 
}
';

$parser->parse($q);

yields the error Incomplete or invalid Group Graph pattern. Could not handle " SERVICE <http://people.exam"

[1] http://www.w3.org/TR/2012/PR-sparql11-federated-query-20121108/

@bnowack
Copy link
Collaborator

bnowack commented Feb 26, 2013

That's because ARC doesn't do SPARQL 1.1, just SPARQL+, which is a non-standardised extension of SPARQL 1.0. This is a "won't fix", I'm afraid.

@bnowack bnowack closed this as completed Feb 26, 2013
@djogopatrao
Copy link
Author

Hi

I just wrote a small patch to allow ARC to parse SERVICE statements, as well as subqueries (only SELECTs). What is the best way of contributing this code? as a plugin? or a fork?

@bnowack
Copy link
Collaborator

bnowack commented Feb 26, 2013

Hi,

If it's extending one of the core ARC files, then a pull request would be ideal.

Thanks,
Benji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants