on 12-29-2015 1:34 PM
Hi guys,
I am using the Restful SDK to get the dataproviders query specification (http://server:6405/biprws/raylight/v1/documents/{ID}/dataproviders/DP0/specification). The result XML is something like this:
<queryspec:QuerySpec xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:parameter="http://com.sap.sl.parameter" xmlns:queryspec="http://com.sap.sl.queryspec" dataProviderId="DP0">
<queryParameters>
</queryParameters>
<queriesTree xsi:type="queryspec:QueryOperatorNode" queryOperator="Union">
<children xsi:type="queryspec:QueryDataNode">
<bOQuery name="Query" identifier="_DQwTUS-BEeWGVJVUo9we">
<resultObjects identifier="DS0.DO4fc" name="asdasdad"/>
<conditionPart>
<conditionTree xsi:type="queryspec:ConditionOperatorNode" logicalOperator="And">
</conditionTree>
</conditionPart>
</bOQuery>
</children>
</queriesTree>
</queryspec:QuerySpec>
I have to parse this XML to identify all the universe objects used by the document (result objects and conditions too). Where can I find the formal schema/specification/documentation for this XML?
Are there any good examples available, to parse this XML?
Thx.
Hello,
Just be careful because all result objects may not be used in the document.
I think there is no particular documentation of the query specification. The format is the same used by IDT (Information Design Tool).
Best regards,
Anthony
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thx Anthony,
what do you mean by "all result objects may not be used in the document". If a query spec lists an object as a result object I would consider that object to be "used by" the document, meaning: I can't delete that object from the universe, because the document depends on that object.
Am I missing something?
Ok, I understand the purpose of your application and I agree with your checks!
About the query specification (QS) format, we have a action item in our backlog to add also the support of the QS format (XML/JSON) used in SL RESTful API. But I can't say when it will be available... 😕
Regards,
Anthony
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.