SlideShare a Scribd company logo
Context, Quality and Relevance:
Dependencies and Impacts on RESTful
       Web Services Design
    Hong-Linh Truong1, Schahram Dustdar1 , Andrea Maurino2 ,
                        Marco Comerio2
1
    Distributed Systems Group, Vienna University of Technology
     2
       Department of Informatics, Systems and Communication
                  University of Milano – Bicocca

                   truong@infosys.tuwien.ac.at
           http://www.infosys.tuwien.ac.at/Staff/truong
Outline

 Motivation
 Quality, context and relevance in data-intensive
  services
 Access to quality and context associated with
  data resources
 APIs for specifying and obtained data quality
 Open issues
 Conclusions and future work



ComposableWeb's 10, ICWE 2010, Vienna   2
Motivation: compose data intensive
          RESTful services
 Composition of Yahoo! Boss News Search, Google
  News Search , and Flickr
   recent news and high-qualified images, but free-
    of charge, related to "Haiti earthquake"




 ComposableWeb's 10, ICWE 2010, Vienna       3
If the composer is aware of context
         and quality parameters
 Possible mappings of context and quality
  requirements




      but it is a tedious task and we are not sure we have a
      correct mapping
ComposableWeb's 10, ICWE 2010, Vienna         4
Motivation: access to large data
         resources
 Retrieve big datasets from RESTful services for further
  extraction, transform or mashup activities




                    http://www.undata-api.org/

ComposableWeb's 10, ICWE 2010, Vienna            5
Motivation: access to large data
         resources


 Without QoD: get datasets and perform mashup
 With QoD support:
    http://localhost:8080/UNDataService/data/query/Population
     annual growth rate (percent)?crq.qod:
       dataelementcompleteness= 0.8654708520179372,
        datasetcompleteness=0.7356502242152466;
    http://localhost:8080/UNDataService/data/query/Adult literacy
     rate (percent)?crq.qod:
       dataelementcompleteness=0.5874439461883408,datasetcompleteness
        =0.04349775784753363
     → Should we retrieve the data and perform data mashup?
ComposableWeb's 10, ICWE 2010, Vienna                  6
Context, quality and relevance for
         data-intensive services
 Data-intensive services provide data resources whose
  quality and context could not easily described at the
  level of service as a whole
 We all know: missing context and quality leads to
  irrelevant results
 But several questions:
    how can the composition developer recognize context and
     quality description associated with data resources?
    how context and quality parameters can be mapped and
     passed to a service via REST APIs?
    how to obtain context and quality description associated with
     data resources so that further activities can be made?

ComposableWeb's 10, ICWE 2010, Vienna              7
Related work
 Well-researched QoS and context WS
    QoS-based and context-oriented Web service design
    QoS-based/NFP-based Web service discovery and
     ranking
    User experiences and context models for
     personalized Web services .
 However, existing works mainly deal with QoS and
  context information
    QoD other data concerns are the key to data
     resources
    Data resources have different data concerns
 Recent work on quality of mashup
ComposableWeb's 10, ICWE 2010, Vienna     8
Context, quality, and relevance
         dependencies in data service
         composition




 Data resources: (semi-)structured data, unstructured
  documents, images, zipped datasets
ComposableWeb's 10, ICWE 2010, Vienna      9
Impact on the lack context and
         quality – at data resource level
 Difficult to select relevant resources and to provide
  general description of context and quality for the service
  managing the resource.
 The service has to build its own quality and context
  description
    difficult if the service developer is not the data
      resource provider
 It is not clear if the resource will meet the consumer
  quality description
    lead to the information overloading
    challenge for the service to determine the quality of
      the data resource.
ComposableWeb's 10, ICWE 2010, Vienna         10
Impact on the lack context and data
         quality – at data service level

 Not sure if the service can be used.
 Not sure if resources provided can be used.
    The composite service has to implement its own
     service selection mechanisms.
 The composite service is not sure about the quality of
  services and resources to be composed.
    The composite service has to determine the quality
     and context of the resources at its side using its own
     knowledge.



ComposableWeb's 10, ICWE 2010, Vienna        11
Access to data quality and context
         associated with data resources
 Data quality and context associated with data
  resources:
     Different with representative quality and context
      associated with a service as a whole
 Current works:
     Describe context and QoS associated with a service
      or a service operation but not with data resources
 We focus on mechanisms/convention to access
  quality and context associated with data
  resources
     Not how to determine quality and context metrics
ComposableWeb's 10, ICWE 2010, Vienna         12
Data quality and context support in
         current RESTful WS design
 Many RESTful services do not provide data quality and
  context information
 In RESTful service description, WADL or ATOM
    Allow specify individual resource but there is no
     description for context and quality information.
 At the REST APIs level, there is no convention for
  specifying and obtaining context and quality information.
  → provide context and quality description exchange
  protocols among the interactions of service
  compositions, services and resources



ComposableWeb's 10, ICWE 2010, Vienna        13
Data quality and context support in
         current RESTful WS design
 RESTful WS design: PUT, GET, POST, DELETE data
  resources but no support for non-functional properties
  (e.g., context/quality)
 Possible option:




   → difficult to understand and manage the relationship between
   the resource and its quality/context description
 We assume: non-functional properties are a part of data
  resources → using the same operation for the same
  resource id but with different parameters
ComposableWeb's 10, ICWE 2010, Vienna         14
Proposed design principles –
         convention
 Focus on specifying and obtaining context and
  quality associated with data resources
  provided by services
 Static and dynamic context and quality binding
    Static: context and quality can be published with
     resource description (e.g., WADL, ATOM)
    Dynamic: context and quality information obtained at
     runtime
 We test this principle with
    WADL, a RESTful service provides the Google Flu
     Trend data, a RESTful service wrapping the UN
     datasets service
ComposableWeb's 10, ICWE 2010, Vienna       15
Representations for Context and
           Quality
 We do not develop/propose new context and quality models
   Assume that the community will rely on existing models
   We use custom models from [APSCC 2009: 87-94]
       {
        ...
         "crq.qod": {
            "crq.uptodateness": "up to dateness",
            ...
            "crq.dataelementcompleteness":"data element completeness",
            "crq.datasetcompleteness":"data set completeness",
            "crq.domainspecificqod": [
              {
                           "name": "name of the metric",
                           "value": "value of the metric"
                 },
            ]
         },
       …
      }
 ComposableWeb's 10, ICWE 2010, Vienna                        16
Static quality and context information
         for data resources WADL
specify context and quality schemas and their types using
grammars/include and doc/title
    <grammars>
         <include
    href="http://www.infosys.tuwien.ac.at/prototype/SOD1/restfuldesign/schemas/crq-
    quality.xsd">
            <doc title="Quality">
               grammar describing quality
            </doc>
         </include>
         <include
    href="http://www.infosys.tuwien.ac.at/prototype/SOD1/restfuldesign/schemas/crq-
    context.xsd">
            <doc title="Context">
               grammar describing context
            </doc>
         </include>
      </grammars>

 ComposableWeb's 10, ICWE 2010, Vienna                           17
Static quality and context information
           for data resources with WADL
specify the published, static quality and context information using
representation
   <representation id="QualityPresentation" element="crqQuality:crq.qod"
                             mediaType="application/json">
      <doc title="QoDDescription">
        {"crq.qod": {
                 "crq.datasetcompleteness": 0.10256410256410256,
                 "crq.consistency": 1,
                 "crq.uptodateness":5
        }}
      </doc>
   </representation>
   <representation id="ContextPresentation" element="crqContext:crq.context"
                          mediaType="application/json">
      <doc title="ContextDescription">
         {"crq.context": {
                 "crq.location": "Europe",
                 "crq.datapermission":"free"
        }}
      </doc>
   </representation>

 ComposableWeb's 10, ICWE 2010, Vienna                                    18
Static quality and context information
           for data resource discovery with
           ATOM-alike model
<cdc:category label="Demographic and socioeconomic statistics"/>
  <cdc:id>http://undata-api.appspot.com/data/query/Adult literacy rate (percent)
</cdc:id>
  <cdc:title>UN Data on Adult literacy rate</cdc:title>
  <cdc:entry>
   <cdc:category term="DaaSConcerns" scheme="...daasconcern-v0.2.xsd"/>
   <cdc:content type="application/xml">
<tns:qod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http:/
/www.infosys.tuwien.ac.at/SOD1/daasconcerns/custom" xsi:type="tns:QoD">
  <tns:crq.dataelementcompleteness>0.5874439461883408</tns:crq.dataelementcomple
teness>
  <tns:crq.datasetcompleteness>0.04349775784753363</tns:crq.datasetcompleteness>
</tns:qod>
</cdc:content>
   <cdc:published>2010-06-23T22:23:30.557Z</cdc:published>
  </cdc:entry>




ComposableWeb's 10, ICWE 2010, Vienna                       19
Specifying and obtaining data context
           and quality using parameters in REST
           APIs
 Specifying requests by using utilizing query parameters
  the form of crq.metricName=value
       GET/resource?crq.accuracy="0.5"&crq.location=’’Europe”

 Obtaining contex and quality by using context and
  quality parameters without specifying value conditions
 curl http://localhost:8080/UNDataService/data/query/Population annual growth rate
 (percent)?crq.qod
 {”crq.qod” : {
 ”crq.dataelementcompleteness ”: 0.8654708520179372,
 ”crq.datasetcompleteness”: 0.7356502242152466,
 ...
 }}

 Context and quality schema can be also accessed via
  parameters
ComposableWeb's 10, ICWE 2010, Vienna                           20
Open issues
 Data context and quality of data resources is a part of
  the contract/licensing of the data resource?
 The use of parameters can be achieved but
    Context and quality metrics and representations are
     diverse → how do we compare quality/context metrics
      defined by different services
 We propose only convention/principle. To convince its
  use we need:
    Use accepted terms, evaluate via real applications
    Perform possible different mappings
 Data concerns must more than data quality and context
    e.g., data privacy

ComposableWeb's 10, ICWE 2010, Vienna      21
Conclusions and future work
 Analyzed the importance of data context and quality
  support in RESTful data-intensive services
 Limitations of current RESTful Web service design with
  the respect to data context, quality and relevance
 Propose conventions to specify and obtain context and
  quality associated with data resources
 Future plans
    Examine possible mappings and focus on validation
    Composition of context and quality of data resources
    Link data concern evaluation to data concern
     publishing for data services

ComposableWeb's 10, ICWE 2010, Vienna      22
Thanks for your attention!

         Hong-Linh Truong
         Distributed Systems Group
         Vienna University of Technology
         Austria

         truong@infosys.tuwien.ac.at
         http://www.infosys.tuwien.ac.at




ComposableWeb's 10, ICWE 2010, Vienna      23

More Related Content

PDF
M.E Computer Science Data Mining Projects
PDF
M phil-computer-science-data-mining-projects
PPT
2005-03-29 Web Services: ES Rationale and Assertions
PPT
Web Service Architecture for e-Learning
PDF
International Journal of Computer Science, Engineering and Information Techno...
PDF
Improving Your Web Services Thorough Semantic Web Techniques
PDF
M.E Computer Science Server Computing Projects
PPT
Au Psy492 M7 A3 E Portf Bagwell P.Doc
M.E Computer Science Data Mining Projects
M phil-computer-science-data-mining-projects
2005-03-29 Web Services: ES Rationale and Assertions
Web Service Architecture for e-Learning
International Journal of Computer Science, Engineering and Information Techno...
Improving Your Web Services Thorough Semantic Web Techniques
M.E Computer Science Server Computing Projects
Au Psy492 M7 A3 E Portf Bagwell P.Doc

Viewers also liked (9)

PPT
Au Psy492 M7 A2 Bagwell P Pp
PPT
Mobilizing multi-Stakeholder Support through Strategic Communication - A Case...
PPT
Au Psy492 M7 A3 E Portf Bagwell P.Doc
PDF
Sentencia t327 01
PPTX
Justifying digital banking
XLS
Nagico united cricket club vs mno montego bay cricket club may 15
XLS
St maarten national tea mvs winairconqueror cricket club rbtt 50 overs
PPS
Outdoors Internacionais
PDF
Learn BEM: CSS Naming Convention
Au Psy492 M7 A2 Bagwell P Pp
Mobilizing multi-Stakeholder Support through Strategic Communication - A Case...
Au Psy492 M7 A3 E Portf Bagwell P.Doc
Sentencia t327 01
Justifying digital banking
Nagico united cricket club vs mno montego bay cricket club may 15
St maarten national tea mvs winairconqueror cricket club rbtt 50 overs
Outdoors Internacionais
Learn BEM: CSS Naming Convention
Ad

Similar to Context, Quality and Relevance: Dependencies and Impacts on RESTful Web Services Design (20)

PDF
SOME INTEROPERABILITY ISSUES IN THE DESIGNING OF WEB SERVICES : CASE STUDY ON...
PPT
lecture7 Enhancing Cloud Copmuting Services.ppt
PDF
Web Service QoS Prediction Based on Adaptive Dynamic Programming Using Fuzzy ...
PDF
M.Phil Computer Science Data Mining Projects
PDF
A new approach to gather similar operations extracted from web services
PPTX
Unit 2
PDF
Location-Aware and Personalized Collaborative Filtering for Web Service Recom...
PDF
Location-Aware and Personalized Collaborative Filtering for Web Service Recom...
PDF
On Evaluating and Publishing Data Concerns for Data as a Service
PDF
WEB SERVICES COMPOSITION METHODS AND TECHNIQUES: A REVIEW
PDF
A review on framework and quality of service based web services discovery
PDF
Web Services Discovery and Recommendation Based on Information Extraction and...
PPT
Itz Lecture Bi & Web Tech Standards Feb 2009
DOC
Combining efficiency, fidelity, and flexibility in resource information services
PDF
Reliability evaluation model for composite web services
PDF
SERVICE ORIENTED QUALITY REQUIREMENT FRAMEWORK FOR CLOUD COMPUTING
PDF
SOME INTEROPERABILITY ISSUES IN THE DESIGNING OF WEB SERVICES : CASE STUDY ON...
PDF
SOME INTEROPERABILITY ISSUES IN THE DESIGNING OF WEB SERVICES : CASE STUDY ON...
PDF
YASAM SEMANTIC WEB SERVICE MATCHMAKER YASAR SEMANTIC WEB SERVICE REGISTRY. Ya...
PDF
R01765113122
SOME INTEROPERABILITY ISSUES IN THE DESIGNING OF WEB SERVICES : CASE STUDY ON...
lecture7 Enhancing Cloud Copmuting Services.ppt
Web Service QoS Prediction Based on Adaptive Dynamic Programming Using Fuzzy ...
M.Phil Computer Science Data Mining Projects
A new approach to gather similar operations extracted from web services
Unit 2
Location-Aware and Personalized Collaborative Filtering for Web Service Recom...
Location-Aware and Personalized Collaborative Filtering for Web Service Recom...
On Evaluating and Publishing Data Concerns for Data as a Service
WEB SERVICES COMPOSITION METHODS AND TECHNIQUES: A REVIEW
A review on framework and quality of service based web services discovery
Web Services Discovery and Recommendation Based on Information Extraction and...
Itz Lecture Bi & Web Tech Standards Feb 2009
Combining efficiency, fidelity, and flexibility in resource information services
Reliability evaluation model for composite web services
SERVICE ORIENTED QUALITY REQUIREMENT FRAMEWORK FOR CLOUD COMPUTING
SOME INTEROPERABILITY ISSUES IN THE DESIGNING OF WEB SERVICES : CASE STUDY ON...
SOME INTEROPERABILITY ISSUES IN THE DESIGNING OF WEB SERVICES : CASE STUDY ON...
YASAM SEMANTIC WEB SERVICE MATCHMAKER YASAR SEMANTIC WEB SERVICE REGISTRY. Ya...
R01765113122
Ad

More from Hong-Linh Truong (20)

PDF
QoA4ML – A Framework for Supporting Contracts in Machine Learning Services
PDF
Sharing Blockchain Performance Knowledge for Edge Service Development
PDF
Measuring, Quantifying, & Predicting the Cost-Accuracy Tradeoff
PDF
DevOps for Dynamic Interoperability of IoT, Edge and Cloud Systems
PDF
Dynamic IoT data, protocol, and middleware interoperability with resource sli...
PDF
Integrated Analytics for IIoT Predictive Maintenance using IoT Big Data Cloud...
PDF
Modeling and Provisioning IoT Cloud Systems for Testing Uncertainties
PDF
Characterizing Incidents in Cloud-based IoT Data Analytics
PDF
Enabling Edge Analytics of IoT Data: The Case of LoRaWAN
PDF
Analytics of Performance and Data Quality for Mobile Edge Cloud Applications
PDF
Testing Uncertainty of Cyber-Physical Systems in IoT Cloud Infrastructures: C...
PDF
Deep Context-Awareness: Context Coupling and New Types of Context Information...
PDF
Managing and Testing Ensembles of IoT, Network functions, and Clouds
PDF
Towards a Resource Slice Interoperability Hub for IoT
PDF
On Supporting Contract-aware IoT Dataspace Services
PDF
Towards the Realization of Multi-dimensional Elasticity for Distributed Cloud...
PDF
On Engineering Analytics of Elastic IoT Cloud Systems
PDF
HINC – Harmonizing Diverse Resource Information Across IoT, Network Functions...
PDF
SINC – An Information-Centric Approach for End-to-End IoT Cloud Resource Prov...
PDF
Governing Elastic IoT Cloud Systems under Uncertainties
QoA4ML – A Framework for Supporting Contracts in Machine Learning Services
Sharing Blockchain Performance Knowledge for Edge Service Development
Measuring, Quantifying, & Predicting the Cost-Accuracy Tradeoff
DevOps for Dynamic Interoperability of IoT, Edge and Cloud Systems
Dynamic IoT data, protocol, and middleware interoperability with resource sli...
Integrated Analytics for IIoT Predictive Maintenance using IoT Big Data Cloud...
Modeling and Provisioning IoT Cloud Systems for Testing Uncertainties
Characterizing Incidents in Cloud-based IoT Data Analytics
Enabling Edge Analytics of IoT Data: The Case of LoRaWAN
Analytics of Performance and Data Quality for Mobile Edge Cloud Applications
Testing Uncertainty of Cyber-Physical Systems in IoT Cloud Infrastructures: C...
Deep Context-Awareness: Context Coupling and New Types of Context Information...
Managing and Testing Ensembles of IoT, Network functions, and Clouds
Towards a Resource Slice Interoperability Hub for IoT
On Supporting Contract-aware IoT Dataspace Services
Towards the Realization of Multi-dimensional Elasticity for Distributed Cloud...
On Engineering Analytics of Elastic IoT Cloud Systems
HINC – Harmonizing Diverse Resource Information Across IoT, Network Functions...
SINC – An Information-Centric Approach for End-to-End IoT Cloud Resource Prov...
Governing Elastic IoT Cloud Systems under Uncertainties

Recently uploaded (20)

PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Spectroscopy.pptx food analysis technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Approach and Philosophy of On baking technology
PDF
Empathic Computing: Creating Shared Understanding
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Spectroscopy.pptx food analysis technology
Per capita expenditure prediction using model stacking based on satellite ima...
The AUB Centre for AI in Media Proposal.docx
MYSQL Presentation for SQL database connectivity
Dropbox Q2 2025 Financial Results & Investor Presentation
20250228 LYD VKU AI Blended-Learning.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Review of recent advances in non-invasive hemoglobin estimation
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
“AI and Expert System Decision Support & Business Intelligence Systems”
Approach and Philosophy of On baking technology
Empathic Computing: Creating Shared Understanding
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Reach Out and Touch Someone: Haptics and Empathic Computing
Digital-Transformation-Roadmap-for-Companies.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Network Security Unit 5.pdf for BCA BBA.

Context, Quality and Relevance: Dependencies and Impacts on RESTful Web Services Design

  • 1. Context, Quality and Relevance: Dependencies and Impacts on RESTful Web Services Design Hong-Linh Truong1, Schahram Dustdar1 , Andrea Maurino2 , Marco Comerio2 1 Distributed Systems Group, Vienna University of Technology 2 Department of Informatics, Systems and Communication University of Milano – Bicocca truong@infosys.tuwien.ac.at http://www.infosys.tuwien.ac.at/Staff/truong
  • 2. Outline  Motivation  Quality, context and relevance in data-intensive services  Access to quality and context associated with data resources  APIs for specifying and obtained data quality  Open issues  Conclusions and future work ComposableWeb's 10, ICWE 2010, Vienna 2
  • 3. Motivation: compose data intensive RESTful services  Composition of Yahoo! Boss News Search, Google News Search , and Flickr  recent news and high-qualified images, but free- of charge, related to "Haiti earthquake" ComposableWeb's 10, ICWE 2010, Vienna 3
  • 4. If the composer is aware of context and quality parameters  Possible mappings of context and quality requirements but it is a tedious task and we are not sure we have a correct mapping ComposableWeb's 10, ICWE 2010, Vienna 4
  • 5. Motivation: access to large data resources  Retrieve big datasets from RESTful services for further extraction, transform or mashup activities http://www.undata-api.org/ ComposableWeb's 10, ICWE 2010, Vienna 5
  • 6. Motivation: access to large data resources  Without QoD: get datasets and perform mashup  With QoD support:  http://localhost:8080/UNDataService/data/query/Population annual growth rate (percent)?crq.qod:  dataelementcompleteness= 0.8654708520179372, datasetcompleteness=0.7356502242152466;  http://localhost:8080/UNDataService/data/query/Adult literacy rate (percent)?crq.qod:  dataelementcompleteness=0.5874439461883408,datasetcompleteness =0.04349775784753363 → Should we retrieve the data and perform data mashup? ComposableWeb's 10, ICWE 2010, Vienna 6
  • 7. Context, quality and relevance for data-intensive services  Data-intensive services provide data resources whose quality and context could not easily described at the level of service as a whole  We all know: missing context and quality leads to irrelevant results  But several questions:  how can the composition developer recognize context and quality description associated with data resources?  how context and quality parameters can be mapped and passed to a service via REST APIs?  how to obtain context and quality description associated with data resources so that further activities can be made? ComposableWeb's 10, ICWE 2010, Vienna 7
  • 8. Related work  Well-researched QoS and context WS  QoS-based and context-oriented Web service design  QoS-based/NFP-based Web service discovery and ranking  User experiences and context models for personalized Web services .  However, existing works mainly deal with QoS and context information  QoD other data concerns are the key to data resources  Data resources have different data concerns  Recent work on quality of mashup ComposableWeb's 10, ICWE 2010, Vienna 8
  • 9. Context, quality, and relevance dependencies in data service composition  Data resources: (semi-)structured data, unstructured documents, images, zipped datasets ComposableWeb's 10, ICWE 2010, Vienna 9
  • 10. Impact on the lack context and quality – at data resource level  Difficult to select relevant resources and to provide general description of context and quality for the service managing the resource.  The service has to build its own quality and context description  difficult if the service developer is not the data resource provider  It is not clear if the resource will meet the consumer quality description  lead to the information overloading  challenge for the service to determine the quality of the data resource. ComposableWeb's 10, ICWE 2010, Vienna 10
  • 11. Impact on the lack context and data quality – at data service level  Not sure if the service can be used.  Not sure if resources provided can be used.  The composite service has to implement its own service selection mechanisms.  The composite service is not sure about the quality of services and resources to be composed.  The composite service has to determine the quality and context of the resources at its side using its own knowledge. ComposableWeb's 10, ICWE 2010, Vienna 11
  • 12. Access to data quality and context associated with data resources  Data quality and context associated with data resources:  Different with representative quality and context associated with a service as a whole  Current works:  Describe context and QoS associated with a service or a service operation but not with data resources  We focus on mechanisms/convention to access quality and context associated with data resources  Not how to determine quality and context metrics ComposableWeb's 10, ICWE 2010, Vienna 12
  • 13. Data quality and context support in current RESTful WS design  Many RESTful services do not provide data quality and context information  In RESTful service description, WADL or ATOM  Allow specify individual resource but there is no description for context and quality information.  At the REST APIs level, there is no convention for specifying and obtaining context and quality information. → provide context and quality description exchange protocols among the interactions of service compositions, services and resources ComposableWeb's 10, ICWE 2010, Vienna 13
  • 14. Data quality and context support in current RESTful WS design  RESTful WS design: PUT, GET, POST, DELETE data resources but no support for non-functional properties (e.g., context/quality)  Possible option: → difficult to understand and manage the relationship between the resource and its quality/context description  We assume: non-functional properties are a part of data resources → using the same operation for the same resource id but with different parameters ComposableWeb's 10, ICWE 2010, Vienna 14
  • 15. Proposed design principles – convention  Focus on specifying and obtaining context and quality associated with data resources provided by services  Static and dynamic context and quality binding  Static: context and quality can be published with resource description (e.g., WADL, ATOM)  Dynamic: context and quality information obtained at runtime  We test this principle with  WADL, a RESTful service provides the Google Flu Trend data, a RESTful service wrapping the UN datasets service ComposableWeb's 10, ICWE 2010, Vienna 15
  • 16. Representations for Context and Quality  We do not develop/propose new context and quality models  Assume that the community will rely on existing models  We use custom models from [APSCC 2009: 87-94] { ... "crq.qod": { "crq.uptodateness": "up to dateness", ... "crq.dataelementcompleteness":"data element completeness", "crq.datasetcompleteness":"data set completeness", "crq.domainspecificqod": [ { "name": "name of the metric", "value": "value of the metric" }, ] }, … } ComposableWeb's 10, ICWE 2010, Vienna 16
  • 17. Static quality and context information for data resources WADL specify context and quality schemas and their types using grammars/include and doc/title <grammars> <include href="http://www.infosys.tuwien.ac.at/prototype/SOD1/restfuldesign/schemas/crq- quality.xsd"> <doc title="Quality"> grammar describing quality </doc> </include> <include href="http://www.infosys.tuwien.ac.at/prototype/SOD1/restfuldesign/schemas/crq- context.xsd"> <doc title="Context"> grammar describing context </doc> </include> </grammars> ComposableWeb's 10, ICWE 2010, Vienna 17
  • 18. Static quality and context information for data resources with WADL specify the published, static quality and context information using representation <representation id="QualityPresentation" element="crqQuality:crq.qod" mediaType="application/json"> <doc title="QoDDescription"> {"crq.qod": { "crq.datasetcompleteness": 0.10256410256410256, "crq.consistency": 1, "crq.uptodateness":5 }} </doc> </representation> <representation id="ContextPresentation" element="crqContext:crq.context" mediaType="application/json"> <doc title="ContextDescription"> {"crq.context": { "crq.location": "Europe", "crq.datapermission":"free" }} </doc> </representation> ComposableWeb's 10, ICWE 2010, Vienna 18
  • 19. Static quality and context information for data resource discovery with ATOM-alike model <cdc:category label="Demographic and socioeconomic statistics"/> <cdc:id>http://undata-api.appspot.com/data/query/Adult literacy rate (percent) </cdc:id> <cdc:title>UN Data on Adult literacy rate</cdc:title> <cdc:entry> <cdc:category term="DaaSConcerns" scheme="...daasconcern-v0.2.xsd"/> <cdc:content type="application/xml"> <tns:qod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http:/ /www.infosys.tuwien.ac.at/SOD1/daasconcerns/custom" xsi:type="tns:QoD"> <tns:crq.dataelementcompleteness>0.5874439461883408</tns:crq.dataelementcomple teness> <tns:crq.datasetcompleteness>0.04349775784753363</tns:crq.datasetcompleteness> </tns:qod> </cdc:content> <cdc:published>2010-06-23T22:23:30.557Z</cdc:published> </cdc:entry> ComposableWeb's 10, ICWE 2010, Vienna 19
  • 20. Specifying and obtaining data context and quality using parameters in REST APIs  Specifying requests by using utilizing query parameters the form of crq.metricName=value GET/resource?crq.accuracy="0.5"&crq.location=’’Europe”  Obtaining contex and quality by using context and quality parameters without specifying value conditions curl http://localhost:8080/UNDataService/data/query/Population annual growth rate (percent)?crq.qod {”crq.qod” : { ”crq.dataelementcompleteness ”: 0.8654708520179372, ”crq.datasetcompleteness”: 0.7356502242152466, ... }}  Context and quality schema can be also accessed via parameters ComposableWeb's 10, ICWE 2010, Vienna 20
  • 21. Open issues  Data context and quality of data resources is a part of the contract/licensing of the data resource?  The use of parameters can be achieved but  Context and quality metrics and representations are diverse → how do we compare quality/context metrics defined by different services  We propose only convention/principle. To convince its use we need:  Use accepted terms, evaluate via real applications  Perform possible different mappings  Data concerns must more than data quality and context  e.g., data privacy ComposableWeb's 10, ICWE 2010, Vienna 21
  • 22. Conclusions and future work  Analyzed the importance of data context and quality support in RESTful data-intensive services  Limitations of current RESTful Web service design with the respect to data context, quality and relevance  Propose conventions to specify and obtain context and quality associated with data resources  Future plans  Examine possible mappings and focus on validation  Composition of context and quality of data resources  Link data concern evaluation to data concern publishing for data services ComposableWeb's 10, ICWE 2010, Vienna 22
  • 23. Thanks for your attention! Hong-Linh Truong Distributed Systems Group Vienna University of Technology Austria truong@infosys.tuwien.ac.at http://www.infosys.tuwien.ac.at ComposableWeb's 10, ICWE 2010, Vienna 23