API result "Email"

From semantic-mediawiki.org
Email
API result format for data type Email
Keywords
API · API module · API result · action ask · ask · action askargs · askargs · datatype Email

When using the API modules to query for semantic data, different datatypes may have different output formats. This page gives an example for datatype "Email"Holds e-mail addresses 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 email address",
                "key": "Has_email_address",
                "redi": "",
                "typeid": "_ema",
                "mode": 1,
                "format": ""
            }
        ],
        "results": {
            "User:Hans": {
                "printouts": {
                    "Has email address": [
                        "mailto:Hans.de.Bruin@hz.nl",
                        "mailto:hans@bigpicturelab.nl"
                    ]
                }
            }
        },
        "serializer": "SMW\\Serializers\\QueryResultSerializer",
        "version": 2,
        "meta": {
            "hash": "01c719246af1ac2a2a24d71c0c6b5410",
            "count": 1,
            "offset": 0,
            "source": "",
            "time": "0.001440"
        }
    }
}