Skip to content

Add "HAVING" to SPARQL Component #59

Description

@oshanis

Add "HAVING" to SPARQL Component

We require the "HAVING" clause in SPARQL to implement the following query on the following endpoint [https://punya-sparql.csail.mit.edu/foodkg/namespace/kb/sparql]

``prefix sio: http://semanticscience.org/resource/
prefix dbr: http://dbpedia.org/resource/

SELECT ?s (COUNT(?ing) as ?count) WHERE {
?s http://idea.rpi.edu/heals/kb/tagged http://idea.rpi.edu/heals/kb/tag/vegetarian ;
http://idea.rpi.edu/heals/kb/uses ?ing.
}
GROUP BY ?s
HAVING (?count < 5)
``

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions