Submitted on January 7, 2009 - 09:00.
Drupal is one of the most popular open source content management systems. It has been deployed by many enterprises to run their Web portals and engage with communities. WSO2's SOA developer portal WSO2 OxygenTank that hosts contents such as project pages, blogs, forums and other community involvements, also runs on Drupal . In addition to the functionality mentioned, Drupal can also be used to extract data for the purpose of calculating certain parameters such as rate of content submission and rate of community involvement that has great marketing value.
WSO2 Web Services Framework for PHP (WSF/PHP) is an enterprise grade Web service library for PHP developers, with support for the widest WS-* stack. It also comes with an in-built data services capability. WSF/PHP data services capability can be used to develop Web services around a Drupal database, exposing content easily and rapidly, with security and reliability intact.
The objective of this solution is to provide an application; that offers information with a marketing value using data available in the WSO2 portal database.
Our solution contains a data service that exposes data as a Web service, and a Web application that consumes that data service in providing different views of recent trends in content submission and community involvement.
The decision to build a Web service to expose these information was chosen over the alternative of writing a Drupal module, as Web services allow these information to be accessed by non-PHP code and remote applications, with the WS-* support for reliability and the security.
Nodes in Drupal can be pages, blog posts, forums etc. A node consists of an identifier, type (whether it is a blog, page or forum), title and content. Nodes mainly provide community feedback on the projects such as new ideas, suggestions and issues. When retrieving multiple number nodes, data services queries would truncate the content to maximum 200 characters to make it faster, shorter - but still sufficient to have an idea about the content of the node.
Comments are community feedback for a give forum topic or a blog post. Comments also represent community suggestions and issues.
Users form the community. It is important to track users, as it explains the development of the community and helps marketing be informed of those users who has the potential to become paid customers.
WSO2 WSF/PHP can be been used to wrap SQL queried as Web service operations. Here are the list of the operations implemented in our solution:
The above set of operation can be classified under the following group:
This set of operations targets clients who needs all information for a detailed analysis. This has only very little marketing value, as it provides lots of data without a prior agreement:
This operation allows clients to get the information within a preferred duration. If the selected duration is last hour or last 24 hours, it will give the updates on the content in the recent past. The people involved in marketing can use these data to do a detailed analysis of the trends and latest events happening around the community and the projects.
These operations provide a count of the content submitted for a given duration. This can be used as a parameter for quick analysis of the growth of community and its activities.
This will provide a detailed statistics of the community involvement and the project popularity over a given time. We can create a graphical view of these statistics in a graph to observe the trend patterns over a proffered period using these data. These can be directly used to decision making involved with marketing and project management.
The application for marketing provides a user interface for displaying data retrieved using the data services mentioned mentioned earlier. It consists of two representations of such data:
This shows a list of content that is of interest to the viewer. The content can be chosen from among the above listed categories.
i.e.
The content could be constrained to fall into durations under the following categories:
The information from the 4th category of operations is used to provide a graphical view. It shows graphs for,
Similar to the 'textual representation', it allows the viewer to choose the duration of the information.
Since we already have Web services hosting data in Drupal databases, we would be able to provide different views of this data in the marketing mashup, which uses the WSO2 Mashup Server. It will allow marketing people to access the information provided by this application from their mashup dashboard itself.
WSO2 WSF/PHP data services allows extracting out the data which has a great marketing value from the Drupal database in WSO2.org Web portal, and expose it as web services. PHP or any other framework that support web services can consume these services, and provide views for marketing people to access these information.
Dimuthu Gamage is a Software Engineer at WSO2. dimuthu at wso2 dot com
Excellent Writeup
Helped me a lot. Thanks.
Hello
Hello Nice Post
Banner StandsGet discount
Banner StandsGet discount banner stands from Capital Exhibits. A leader in trade show exhibits, adjustable retractable banner stands, printing, pop up banners, trade show banner stands and roll ups.