Extension:Semantic Need

= Overview = Semantic Need gives you the opportunity to automatically analyze inline queries, subqueries and property chains and concepts and give you information about missing annotations in your wiki. This is accomplished by analyzing existing queries and the information they request from wikipages.

= Requirements/Installation = in your LocalSettings.php in SMWQueryProcessor.php's getResultFromQuery function before both return statements in SMWConcept.php's render function before the return statement
 * Mediawiki 1.17 or greater (latest version tested with 1.18.2)
 * Semantic Mediawiki Extension 1.7 or greater
 * insert
 * insert
 * insert
 * go to /Special:SNEAdmin to initialize the SemanticNeed database (and optionally scan the wiki for existing queries)

= Description of SNE-Core =
 * All logged queries throughout the wiki can update their result sets in real time after a wikipage's properties or categories have been edited.
 * Allows you to scan your wiki for existing queries after the database has been initialized through the Semantic Need administrator special page

= Description of SNE-Ext =
 *  SNE-Core needs to be installed
 * Link on the wiki sidebar to display description of the wikipage (1)
 * Toolbox that displays missing properties or categories in queries result sets (2)
 * Overview of all logged queries (as special page)
 * Description of a query (as special page)
 * Description of a wikipage with (1) (as special page):
 * queries that have this page as a result
 * constraints lacking on the page to be a result
 * list of categories and properties to have this page as a result (2)
 * list of categories and properties lacking in a query's result set (2)

if you don't want the SemanticNeed-Extension functionality don't add the rows in your LocalSettings.php

= Additional Information =
 * To initialize the database and scan for queries go to /Special:SNEAdmin
 * A demo system is running at http://amazonas.fzi.de/semanticneed/

= Download = Source code is available at  (User/Pass "anonymous").

= Examples =

for SNE-Core
Query:  
 * initial state


 * queries update immediately when constraint restrictions are met (in this case )


 * queries update immediately when printouts are added or changed (in this case |?capitol )

for SNE-Ext
to be added
 * Link on the wiki sidebar to display description of the wikipage
 * Toolbox that displays missing properties or categories in queries result sets
 * Overview of all logged queries
 * Description of a query
 * Description of a wikipage

= Acknowledgements = Development of Semantic Need is partially funded by the Landesstiftung BW in the context of project GlobaliSE. Semantic Need has been developed by FZI Germany and Hans-Jörg Happel. We thank those external developers and all contributors to the MediaWiki core and to Semantic MediaWiki and its related extensions.

= See also =
 * Extension:Semantic MediaWiki - required for Semantic Need
 * Semantic Need presentation slides from SMWCon 2010