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

How to use the extended SPARQL constructs #4

Closed
szarnyasg opened this issue Dec 5, 2015 · 2 comments
Closed

How to use the extended SPARQL constructs #4

szarnyasg opened this issue Dec 5, 2015 · 2 comments

Comments

@szarnyasg
Copy link
Contributor

Hi,

I managed to get Corese working with basic SPARQL queries. I have a couple of questions about the extended SPARQL language:

  1. I'd like to use the param[...] construct described in the paper Analysis of a Real Online Social Network Using Semantic Web Frameworks. Does this work in the current version of Corese? Or do I have to "simulate" this by generating the queries for all parameters?

  2. I've found group by any queries in the tests (1, 2), but I couldn't get it working:

    PREFIX base: <http://www.semanticweb.org/ontologies/2015/trainbenchmark#> 
    select ?x ?y 
    where {
      ?x base:follows ?y
    }
    group by any
    

    This throws an exception:

    ERROR 2015-12-05 19:44:47,855 [562367320@qtp-354432491-19] (SPARQLRestAPI.java:398) - Error while querying the remote KGRAM engine
    

    (Without the group by any line, it's fine).

  3. Is there a more up-to-date version of this documentation somewhere?

Thanks,
Gabor

@ocorby
Copy link
Contributor

ocorby commented Dec 7, 2015

Hi,

Unfortunately these features are not available anymore.

There is a new way to perform these types of computing. It consists in
associating a plugin to the SPARQL interpreter in such a way that :
each time a solution of the query is found or a property path is
identified, a plugin callback function is called in order to perform
specific processing, e.g. network analysis operation.

The plugin must implement the ResultListener interface
(fr.inria.edelweiss.kgram.event ; kgram project)

The main functions to be implemented are :

public boolean process(Path path)

public boolean process(Environment env)

Best regards

Olivier Corby

@szarnyasg
Copy link
Contributor Author

Thanks, I'll look into the Java API.

@szarnyasg szarnyasg changed the title How to use the extended SPARQL construct How to use the extended SPARQL constructs Dec 10, 2015
ErwanDemairy added a commit that referenced this issue Jun 1, 2017
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