[GitHub] zeppelin issue #3087: [ZEPPELIN-3644]: Adding SPARQL query language support ...

2018-08-20 Thread NicolasRouquette
Github user NicolasRouquette commented on the issue:

https://github.com/apache/zeppelin/pull/3087
  
FYI: It is possible to use the R SPARQL package:

https://cran.r-project.org/web/packages/SPARQL/index.html

For example, here's the web interface to ACM's SPARQL endpoint:
http://acm.rkbexplorer.com/sparql/

With Zeppelin, we can do the same thing with two paragraphs:

```
%spark.r
library(SPARQL)

endpoint <- "http://acm.rkbexplorer.com/sparql/";
 
query <-
'
PREFIX id:   
PREFIX rdf:  
PREFIX rdfs: 
PREFIX akt:  
PREFIX owl:  
PREFIX akt:  
PREFIX akts: 

SELECT * WHERE { ?s rdfs:label ?o }
LIMIT 10
'

qd <- SPARQL(endpoint,query)
r <- qd$results
df <- as.DataFrame(r)
registerTempTable(df, "ACM")
```

and:

```
%sql
select * from ACM
```

Obviously, this solution lacks SPARQL-language specific syntax highlighting 
or completion;
however, it is very convenient for executing SPARQL queries.


---


[GitHub] zeppelin issue #3087: [ZEPPELIN-3644]: Adding SPARQL query language support ...

2018-08-16 Thread padmacs
Github user padmacs commented on the issue:

https://github.com/apache/zeppelin/pull/3087
  
@felixcheung Yes. This PR will just make the support available for 
highlighting the SPARQL query syntax, so that any interpreter can use it as 
language of choice. The interpreter development is still in progress and  is 
bit specific to the SPARQL server implementation that we have, hence we are 
working on it to make it more generic so can be used for any SPARQL endpoint. 


---


[GitHub] zeppelin issue #3087: [ZEPPELIN-3644]: Adding SPARQL query language support ...

2018-08-14 Thread felixcheung
Github user felixcheung commented on the issue:

https://github.com/apache/zeppelin/pull/3087
  
this is just for syntax highlighting, there is no interpreter code here.
also even for syntax the ACE editor should be set with the language of 
choice - this PR does not have either of those.


---


[GitHub] zeppelin issue #3087: [ZEPPELIN-3644]: Adding SPARQL query language support ...

2018-08-13 Thread padmacs
Github user padmacs commented on the issue:

https://github.com/apache/zeppelin/pull/3087
  
@felixcheung Can you elaborate on which type of hook up you mean?


---


[GitHub] zeppelin issue #3087: [ZEPPELIN-3644]: Adding SPARQL query language support ...

2018-08-13 Thread padmacs
Github user padmacs commented on the issue:

https://github.com/apache/zeppelin/pull/3087
  
@zjffdu  Actually we are working on an interpreter that submits SPARQL 
query to our system through GRPC calls currently. But we can work with 
community to make to more generalized, so that queries can be executed against 
any of the SPARQL Endpoints.

This PR is specifically about getting an SPARQL query language support into 
Zeppelin-web module. So that the Notebook editor identifies and displays the 
SPARQL query with proper color codes for syntax and keywords.


---


[GitHub] zeppelin issue #3087: [ZEPPELIN-3644]: Adding SPARQL query language support ...

2018-07-22 Thread zjffdu
Github user zjffdu commented on the issue:

https://github.com/apache/zeppelin/pull/3087
  
@padmacs Can you describe more details about this PR ? What features does 
this PR provide ? Screenshot will be helpful. 


---