Data Pipelining is a technique in OpenSocial which allows developers to request data from either the OpenSocial container or any HTTP endpoint using XML tags. Once the data has been obtained it can be used in a number of ways
The OpenSocial specification defines two different kinds of datapipelining: standard data and the social gadget data.
os:DataRequest - This function allows developers to request OpenSocial information such as person data.
os:HttpRequest - This function allows developers to request data from an arbitrary URL. Similar to a REST web service request. Supports both GET and POST HTTP methods
osVar - This function allows developers to build a JSON object containing values that they wish to "pipeline" to a template or proxied page. Developers can use both literal values or EL statements within this tag.
In addition to the standard data pipeling requests, which are part of the Core Gadget Specification, the Social Gadget Specification adds support for the following tags. Nearly all of this data can be retrieved using os:DataRequest, however, these tags provide a shorter syntax for performing the requests
os:PeopleRequest - This function allows developers to get profile information for a group or a list of people.
os:ViewerRequest - This function allows developers to get the viewer's profile information
os:OwnerRequest - This function allows developers to get the owner's profile information
os:ActivityStreamRequest - This function allows developers to get a set of activity entries for a given viewer, owner or group.
Data obtained via data pipelining can easily be passed to a proxied URI. OpenSocial sends this data packaged as a JSON Object via the HTTP POST method.
The OCLC Developer Network supports the use of OCLC Web Services—a set of tools and APIs that expose data and services for WorldCat and our member libraries and partner institutions or companies. learn more »
© 2010 OCLC Domestic and international trademarks and/or service marks of OCLC Online Computer Library Center, Inc. and its affiliates
Follow the OCLC Developer Network: