Mashups in EMML : Advanced Mashup Techniques : Using the Built-in Mashup Query Web Service : Presto Metadata Queries
Presto Metadata Queries
There are two Presto metadata queries you can make:
*Query for all <presto:presto-meta> statements in a specific mashup. You supply the mashup name as a parameter.
*Query for all <presto:presto-meta> statements that match a condition (an XPath expression) in a specific mashup. You supply the mashup name and the XPath expression.
Find All Presto Metadata as a Mashup
Service Name
JEMSServiceHelper
Operation Name
getPrestoMetadata
Parameters
A single string parameter that is the name of the mashup for the query.
Find Specific Presto Metadata with Presto Connect APIs
Service Name
JEMSServiceHelper
Operation Name
getPrestoMetadata
Parameters
1. A string parameter that is the name of the mashup for the query.
2. A string parameter that is an XPath expression, relative to <presto:presto-meta>, with the condition to select specific Presto metadata. Typically, this condition matches the <user-meta> name. For example:
@name = "cache"
Presto Metadata Query Results
The default JSON response for Presto metatdata queries is in this form:
"response":"{
"serviceMetadata": {
"presto-metas":[
{"cache": "true"},
...
]
}
}
In XML format, the result is a document in this form:
<serviceMetadata>
<presto-metas>
<!-- list of all matching commands -->
<presto-meta name="cache">true</presto-meta>
</presto-metas>
</serviceMetadata>
Copyright © 2013-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback