Semantic MediaWiki and related extensions
QueryEngine

The QueryEngine handles the transformation of the ask query language into a SQL construct and is also responsible to return query results from the SQL back-end with the help of the following components:

Overview

image

### Examples

$classDescription = new ClassDescription(
new DIWikiPage( 'Foo', NS_CATEGORY )
);
$namespaceDescription = new NamespaceDescription(
NS_MAIN
);
$someProperty = new SomeProperty(
new DIProperty( 'Foo' ),
);
$description = new Conjunction( [
$namespaceDescription,
$classDescription,
$someProperty
] );
$query = new Query( $description );
$query->setLimit( 10 );
$sqlStorefactory = new SQLStoreFactory(
new SQLStore()
);
$queryEngine = $sqlStorefactory->newMasterQueryEngine();
$queryResult = $queryEngine->getQueryResult( $query );

About | General disclaimer | Privacy policy