MashZone NextGen 10.2 | Appendix | Legacy Presto components | Mashables and Mashups | Mashups in EMML | Advanced Mashup Techniques | Using the Built-in Mashup Query Web Service | MashZone NextGen Metadata Queries
 
MashZone NextGen Metadata Queries
There are two MashZone NextGen 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 MashZone NextGen 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 MashZone NextGen Metadata with MashZone NextGen 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 MashZone NextGen metadata. Typically, this condition matches the <user-meta> name. For example:
@name ="cache"
MashZone NextGen Metadata Query Results
The default JSON response for MashZone NextGen 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-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release