In Hyperledger Composer, you have all the transactions recorded for a business network. You can have multiple business networks to query. You can use queries, REST APIs and filters to do your analysis.
In Hyperledger Fabric, you can inquire of the Fabric blockchain direct, using a combination of routes: you have the Node js REST APIs https://github.com/hyperledger/fabric-sdk-rest (these are a work in progress as it states) or you can use the Fabric SDK.