-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support subquery negation operator in SemanticMediaWiki queries. #20
Support subquery negation operator in SemanticMediaWiki queries. #20
Conversation
The syntax is {{#ask: [[prop::val]] !<q>...subquery...</q> }} or just {{#ask: [[prop::val]] ![[prop2::val2]] }}. Change-Id: I107d7f6905860379684a011ba1bf0c44a150c575
* | ||
* @ingroup SMWQuery | ||
*/ | ||
class SMWNegation extends SMWDescription { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh. I was actually thinking of doing this as the topic of my dev workshop at the previous SMWCon.
Thanks for the patch! This is a quite useful feature. There are a number of complexity issues that need to be resolved before this can be merged. Some tests would also be much appreciated. I'll be answering the question of how to write tests soonish. |
This patch introduces behavioral changes together with modifications to core classes therefore unit tests should be provided in order to verify that existing behaviour is not altered and new functionality has sufficient coverage especially in cases where NPath complexity is increased or introduced. |
By the way, I've also submitted this change to gerrit before. What should I do with it there? |
I abandoned it there, given review here has already happened |
hey everyone! Am I right that the only blocker to get this awesome feature merged is unit tests? |
As I pointed out earlier, I'd like to see that amendments of DescriptionAmendments to the SqlQueryBuilderIn case of Since core classes are involved and any change can have unpredictable results it is vital that new functionality provides "healthy" unit tests (if possible regression tests would be appreciated as well). While that may sound like a lot of work, at the current state of the Store we need to start to sort things out independently otherwise the maintenance of the Store implementation remains a nightmare. |
The PR has several issues (as outlined) that got not resolved and with classes so different from the time the PR was created it seems difficult to expect that it will be resolved for SMW 3.0 and any other upcoming release. |
The syntax is {{#ask: [[prop::val]] !
}}or just {{#ask: [[prop::val]] ![[prop2::val2]] }}.
Change-Id: I107d7f6905860379684a011ba1bf0c44a150c575