Integrate Software AG Products Using Digital Event Services 10.4 | Integrate Software AG Products Using Digital Event Services | MashZone NextGen Help | Appendix | Legacy Presto components | MashZone NextGen Analytics | RAQL Queries | Load Snapshot Data with <snapshot> or <raql> | Load Snapshots Anonymously
 
Load Snapshots Anonymously
You can also load snapshots as a dataset into a local, anonymous variable with the snapshotquery attribute in <raql>. This example is identical to the named example shown previously except that the query to load snapshots in a dataset stream is specified on <raql>.
The full EMML for this sample is:
<mashup name="coffeeAnonymousSnaps"
xmlns="http://www.openmashup.org/schemas/v1.0/EMML"
xmlns:macro="http://www.openmashup.org/schemas/v1.0/EMMLMacro"
xmlns:presto="http://www.jackbe.com/v1.0/EMMLPrestoExtensions"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openmashup.org/schemas/v1.0/EMML/../schemas/EMMLPrestoSpec.xsd">
<operation name="Invoke">
<output name="result" type="document"/>
<raql outputvariable="result"
snapshotquery="select * from snapshots where service = 'YahooLocalSearchREST'">
select Title,Address,City,State,Latitude,Longitude,Distance
from snapshots limit 60
</raql>
</operation>
</mashup>

Copyright © 2019 | 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