v1.7.0+
Status: | effective |
Progress: | 100% |
Version: | 1.7.0+ |
API result "Annotation URI"
From Linux Web Expert
Annotation URI | |
---|---|
API result format for data type Annotation URI | |
Keywords | |
API · API module · API result · action ask · ask · action askargs · askargs · datatype Annotation URI
|
When using the API to query for semantic data, different datatypes may have different output formats. This page gives an example for datatype "Annotation URI"Holds URIs, but has some technical differences during export compared to the "URL" type 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
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 annotation uri",
"key": "Has_annotation_uri",
"redi": "",
"typeid": "_anu",
"mode": 1,
"format": ""
}
],
"results": {
"Help:List of datatypes": {
"printouts": {
"Has annotation uri": [
"https://www.semantic-mediawiki.org"
]
}
}
},
"serializer": "SMW\\Serializers\\QueryResultSerializer",
"version": 2,
"meta": {
"hash": "fdc99bc8db33f0e0f8fc60962104475b",
"count": 1,
"offset": 0,
"source": "",
"time": "0.001427"
}
}
}