semantic-mediawiki.org


● General 

●Semantic MediaWiki

●Introduction

●Getting support

●Community portal

●Open Semantic Data Association

●SMWCon

●Recent changes
 


● Users 

●Manual

●Getting started

●Report a bug

●Sandbox wiki

●MediaWiki
 


● Admini­strators 

●Manual

●Store and search environment

●Features and supplementary functions

●Installation

●Configuration

●Maintenance

●Report a bug

●Sandbox wiki

●MediaWiki
 


● Devel­opers 

●Manual

●Source code

●Code documentation

●Report a bug

●Sandbox wiki

●MediaWiki
 


● ?

●Getting support

●Frequent questions

●Missing content

●Missing translation

●Found an error
 




● ...  

●Discussion
 
●View source

●History
 








●Log in

●Request account
 

















 v1.7.0+ 
 Status:effective
 Progress:100%
 Version:1.7.0+



 

API result "Reference"

 
From semantic-mediawiki.org
 
< API module "ask"
API module "ask"API result "Reference"
Jump to:navigation, search
 

Reference
API result format for data type Reference

Keywords

API · API module · API result · action ask · ask · action askargs · askargs · datatype Reference

When using the API modules to query for semantic data, different datatypes may have different output formats. This page gives an example for datatype "Reference"Holds a value that associates it to individual defined provenance metadata record 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 Wikidata reference",
                "key": "Has_Wikidata_reference",
                "redi": "",
                "typeid": "_ref_rec",
                "mode": 1,
                "format": ""
            }
        ],
        "results": {
            "Demo:Franz Schubert": {
                "printouts": {
                    "Has Wikidata reference": [
                        {
                            "Has Wikidata item": {
                                "label": "Has Wikidata item",
                                "key": "Has_Wikidata_item",
                                "typeid": "_eid",
                                "item": [
                                    "Q7312"
                                ]
                            },
                            "Has URL": {
                                "label": "Has URL",
                                "key": "Has_URL",
                                "typeid": "_uri",
                                "item": [
                                    "https://en.wikipedia.org/wiki/Franz_Schubert"
                                ]
                            }
                        }
                    ]
                }
            }
        },
        "serializer": "SMW\\Serializers\\QueryResultSerializer",
        "version": 2,
        "meta": {
            "hash": "45c0dcb7416234d9f81ed6cb390609bb",
            "count": 1,
            "offset": 0,
            "source": "",
            "time": "0.006378"
        }
    }
}
Retrieved from "https://www.semantic-mediawiki.org/w/index.php?title=Help:API:ask/Reference&oldid=69069"
 

Categories: 
●Document
●API example
 












●What links here

●Related changes

●Special pages

●Printable version

●Permanent link

●Page information

●Cite this page

●Browse properties
 













●This page was last edited on 19 March 2019, at 10:37.

●Content is available under "Attribution 3.0 Germany" (CC BY 3.0 DE) unless otherwise noted.
 














●Privacy policy

●About <semantic-mediawiki.org> (Imprint)

●Disclaimers
 




"Attribution 3.0 Germany" (CC BY 3.0 DE)
Powered by MediaWiki
Powered by Semantic MediaWiki