Code Monkey home page Code Monkey logo

Comments (2)

rogerlucena avatar rogerlucena commented on May 19, 2024

The final orientation for this Issue was:

We shall not allow inequalities for nodes and predicates inside HAVING clauses, only equalities are allowed there for them (for clarity and to avoid confusion with regards to what is indeed being compared - the ID or the type of a node (or both)? the ID or the timestamp of a predicate? and so on). In the case of inequalities an error should be returned instructing the user to use the ID/TYPE/AT keywords and leverage the extracted bindings to do these comparisons in a clearer way.

For literals, on the other hand, we support both equalities and inequalities inside HAVING.

To illustrate, taking the example of predicate inequalities inside HAVING clauses, the user shall be oriented to do something like:

SELECT ?s, ?p, ?o
FROM ?family
WHERE {
    ?s ?p ID ?pID AT ?time ?o
}
HAVING (?pID < "parent_of"^^type:text) AND (?time > 2016-03-01T00:00:00-08:00);

But, if the user wants to do just an equality they can do it directly (as it does not cause any confusion):

SELECT ?s, ?p, ?o
FROM ?family
WHERE {
    ?s ?p ?o
}
HAVING ?p = "parent_of"@[];

The same applies for nodes.

from badwolf.

rogerlucena avatar rogerlucena commented on May 19, 2024

This Issue was finished with the PRs: #117, #134, #137, #138.

Previous work done on this Issue (mainly regarding node and literal comparisons): #102, #100.

from badwolf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.