API result "External identifier"

From semantic-mediawiki.org
< API module "ask"
API module "ask"API result "External identifier"
External identifier
API result format for data type External identifier
Keywords

When using the API to query for semantic data, different datatypes may have different output formats. This page gives an example for datatype "External identifier"Holds a value that associates it with with a external URI for formatting 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 SMW issue ID",
                "key": "Has_SMW_issue_ID",
                "redi": "",
                "typeid": "_eid",
                "mode": 1,
                "format": ""
            }
        ],
        "results": {
            "Help:Using Docker# caeeedfc9cfbfb8ded716890c081fe51": {
                "printouts": {
                    "Has SMW issue ID": [
                        "1218"
                    ]
                }
            }
        },
        "serializer": "SMW\\Serializers\\QueryResultSerializer",
        "version": 2,
        "meta": {
            "hash": "030649377ed392817fcdfa7433876336",
            "count": 1,
            "offset": 0,
            "source": "",
            "time": "0.001235"
        }
    }
}