diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/QueryEngine/Condition/FalseCondition.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/QueryEngine/Condition/FalseCondition.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/QueryEngine/Condition/FalseCondition.php b/www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/QueryEngine/Condition/FalseCondition.php new file mode 100644 index 00000000..2446cd02 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/QueryEngine/Condition/FalseCondition.php @@ -0,0 +1,25 @@ +<?php + +namespace SMW\SPARQLStore\QueryEngine\Condition; + +/** + * Represents a condition that cannot match anything. + * Ordering is not relevant, as there is nothing to order. + * + * @ingroup SMWStore + * + * @license GNU GPL v2+ + * @since 1.6 + * + * @author Markus Krötzsch + */ +class FalseCondition extends Condition { + + public function getCondition() { + return "<http://www.example.org> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#nothing> .\n"; + } + + public function isSafe() { + return true; + } +} |