ASK Queries

Description

ASK is the query language to extract data from Semantic MediaWikis.

The wiki needs to have a public API that supports those queries.

Example Code

<div id="table-ask-query" class="plastic-js" style="height: auto; width: 100%;">

    <div class="plastic-query" type="application/ask-query"
        data-url="http://semwiki-exp01.multimedia.hs-augsburg.de/ba-wiki/api.php">
            [[Kategorie:Mitarbeiter]]
            | ?Vorname=Vorname
            | ?Nachname=Nachname
            | ?Mail=Mail
            | ?Festnetz=Festnetz
            | ?Handy=Handy
    </div>

    <div class="plastic-options" type="application/json">
        {
            "benchmark": true
        }
    </div>

    <div class="plastic-display" data-module="advanced-table" type="application/json">
        {
            "tableClasses": "table table-condensed smaller-font",
            "paging": true,
            "searching": true,
            "ordering": true,
            "orderMulti": true
        }
    </div>
</div>

Live Example

[[Kategorie:Mitarbeiter]] | ?Vorname=Vorname | ?Nachname=Nachname | ?Mail=Mail | ?Festnetz=Festnetz | ?Handy=Handy
{ "benchmark": true }
{ "tableClasses": "table table-condensed smaller-font", "paging": true, "searching": true, "ordering": true, "orderMulti": true }

Options

All options are given via HTML attributes.

type

States the MIME type and the query module / language to be used:

type="application/ask-query"

data-query-url

States the API URL of the targeted Semantic MediaWiki Installation:

data-url="http://semwiki-exp01.multimedia.hs-augsburg.de/ba-wiki/api.php"