API result "Keyword"

From semantic-mediawiki.org
< API module "ask"
API module "ask"API result "Keyword"
API result format for data type Keyword
API · API module · API result · action ask · ask · action askargs · askargs · datatype Keyword

When using the API modules to query for semantic data, different datatypes may have different output formats. This page gives an example for datatype "Keyword"Holds text of restricted length that is being normalised (similar to datatype Text) using API-module "ask"Allows to do ask queries. API-module "askargs"Allows to do ask queries with as little ask query specific syntax as possible however uses the same output format.

Example JSON result output[edit]

You can experiment with the api result output yourself by using the API Sandbox. The following example can be reproduced here.

    "query": {
        "printrequests": [
                "label": "Has keyword",
                "key": "Has_keyword",
                "redi": "",
                "typeid": "_keyw",
                "mode": 1,
                "format": ""
        "results": {
            "Help:Ask syntax/Printout column content alignment": {
                "printouts": {
                    "Has keyword": [
                        "table format"
        "serializer": "SMW\\Serializers\\QueryResultSerializer",
        "version": 2,
        "meta": {
            "hash": "672b825e6b807784d74eb7366af535c3",
            "count": 1,
            "offset": 0,
            "source": "",
            "time": "0.001720"