Welcome to the list (and SMW)! I assume you're not working directly with Markus and Denny? I guess there's more SMW-related work being done at KIT than I realized...

To answer your question: the exact set of functions you should use depends on what data exactly you're trying to get, but you can see here for some examples of using SMW functions from another extension:


See the functions getAllValuesForProperty() and getAllPagesForConcept(), specifically.


On Fri, Feb 5, 2010 at 9:37 AM, Marco Mauritczat <mauri@fzi.de> wrote:
Hi everybody,

im new to this list and want to introduce myself quickly. I am a student of
computer science at the university of karlsruhe, working on a piece of
software that should utilise SMW.

My question is: I want to write a software which can query the semantic
mediawiki, without being embedded in the MediaWiki-Website. To be more
precise, the software should communicate with the PHP-scripts of the
semantic mediawiki extension directly, without having to use a web-request.
I have had a look into http://www.semantic-mediawiki.org/doc/ already, but
am not really certain where to start, if I want to send a query to smw.

So far I have experimented with the SMWQueryProcessor and tried to use the
createQuery-function, but keep getting a " Fatal error: Call to a member
function getNsText() on a non-object in
/var/www/mw/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php on
line 387" Error. Thus I wonder if I am starting in the right place anyway.

If anyone could give me a litte support to start off, I would be very

Thank you very much in advance.


The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
Semediawiki-devel mailing list