Comments (5)
Hi
Aggregates do work, but they require you to add a GROUP BY
clause to the query. Otherwise, the framework will not return correct results.
So, for example, If you want to count all distinct subjects in a RDF dataset, you can use the following query:
SELECT (COUNT(DISTINCT ?s) AS ?c)
WHERE {
?s ?p ?o
}
GROUP BY ?s
I've planned to do a few more work on this project next week, I will put the "aggregates without group by" feature on my todo list ;)
from sparql-engine.
Well, I've just pushed some modifications on the master
branch that should allow SPARQL aggregates to work without adding a GROUP BY clause.
I will be glad if you could try it and provide some feedback.
from sparql-engine.
from sparql-engine.
AWESOME! I will try it out some time this week. Thanks!
from sparql-engine.
oh ha - old comment :)
from sparql-engine.
Related Issues (20)
- Failing example HOT 8
- Types Not Visible for Importing HOT 5
- [Federated SPARQL Queries] setGraphFactory callback should return a `Promise<Graph>` instead of `Graph` HOT 1
- Outline Query Hints HOT 3
- Union Types are Hard to Use HOT 3
- The N3 example is not working... HOT 2
- Add ability to sparql query over unbound (?g) named graphs HOT 2
- Please use BGPCache type instead of LRUBGPCache HOT 1
- Add support for official W3C SPARQL compliance tests
- Incompatible sparqljs Type Definitions HOT 17
- Q: Setting up federated queries to existing SPARQL endpoints HOT 2
- Bug in levelgraph adapter (`this` not resolving as expected) HOT 1
- RDF/JS Compatibility HOT 7
- Modules not found after fresh install HOT 2
- Documentation / help on how to use in the browser HOT 3
- Error: Unknown graph with iri ?g
- BIND operator broken since 7.0 HOT 1
- SPARQL JSON format compatibility HOT 3
- JsonFormat not valid when no results
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 sparql-engine.