Comments (5)
The fact is that LDF client/server has a limited coverage of the SPARQL specification. As you clearly see in the error msg, it doesn't support aggregate functions such as GROUP BY. For that you need to rewrite most of the current LD-R SPARQL query templates.
from ld-r.
Hi Ali, I've been trying to get my LD-R app to work with the Linked Data Fragments client , but connecting them seemed not to work. This is the workflow I've tried:
- launch LDF
server.js
(localhost:5000) with some dummy Turtle triples - launch
ldf-client-http
(localhost:9999) to create a SPARQL endpoint (http://localhost/9999/sparql) that fetches data from my LDF server on localhost:5000. I've tested with Postman, and I was able to send GET requests with a sparql query successfully. Results came back in JSON. - add the following line in the server.js config of the LD-R app:
'http://localhost:9999/demo': {
host: 'localhost', port: 9999, path: '/sparql', endpointType: 'virtuoso'
},
- Launch the LD-R app
- open localhost:3000 in the browser (works) and navigate to browse the added dataset in LD-R (http://localhost:9999/demo). Here, I get the following 400 code response (bad request) from both LD-R and ldf-client-http. The LD-R console shows the following error:
body: 'ERROR: Query execution could not start.\n\nThe query is not yet supported\nUnsupported group type: graph\n'
It might be possible that the above approach was quite naive. There might be issues with the endpointType from LD-R, as ldf-client-http sparql endpoints is a new kind of endpoint for LD-R (meaning that some queries need to be adapted). On the other hand, I was not able to make a POST request using postman on the ldf-client-http instance, but this might just be me :)
Any ideas? Did you already played with ldf-client-http?
from ld-r.
Thanks for your response, Ali!
Can you point me to the LD-R code that contains these SPARQL query templates? I found these: https://github.com/ali1k/ld-r/tree/master/services/sparql, but there might be more?
But I also guess that the current LD-R UI is expecting SPARQL aggregating functionality, right? So changing the queries would not be enough, as there would need to be some kind of update regarding the UI (in case of connecting to a LDF sparql endpoint)?
from ld-r.
There's also potentially an issue with queries containing IN operator:
body: 'ERROR: Query execution could not start.\n\nThe query is not yet supported\nUnsupported operator: in.\n'
from ld-r.
Maybe it's more interesting to look to the Comunica project which includes a SPARQL interface. This somehow seems to be the successor of the LDF client.js and can also deal with LDF and other Linked Data sources. See LinkedDataFragments/Client.js#42
Sadly enough, I can't run Comunica on Windows, but it works for me on my old Mac
from ld-r.
Related Issues (20)
- deploy on Heroku HOT 1
- Pb with GraphDB HOT 18
- Nesting property categories HOT 1
- Support property chains in reactor.js HOT 9
- Weird Behaviour HOT 2
- working with jena/fuseki HOT 1
- Wrong propertyURI creation while creating the "facets" HOT 1
- SPARQL Editor
- Question on setting base URI when creating a new resource HOT 5
- No users displayed in admin user list HOT 4
- dealing with reading/writing to named graphs and the default graph in GraphDB HOT 3
- Workflow for managing user permissions HOT 1
- property set to isHidden is still visible in detailed view
- blank nodes cannot be viewed as subjects HOT 2
- Default edit access for users HOT 1
- Support JWT to authenticate against GraphDB HOT 1
- Multi Resource Reactor HOT 13
- Debugging HOT 2
- reference to the sparql endpoint for a dataset (Dynamic Configuration) HOT 2
- Label rendering behavior
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ld-r.