W3C

Protocol for Web Description Resources (POWDER): Test Suite

W3C Working Draft 23 June 2008

This version
TBC
Latest version
TBC
Editors:
Antonis Kukurikos, Institute of Informatics & Telecommunications (IIT), NCSR

Abstract

The document describes and presents test cases for the Protocol for Web Description Resources (POWDER). The test cases aim to indicate the correct formats of POWDER documents and illustrate various crucial aspects on the usage of POWDER documents, such as locating a document and infering information of off it.

Status of this document

This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.

This is a Public Working Draft, designed to aid discussion and solicit feedback. it was developed by the POWDER Working Group which expects to advance this Working Draft to Recommendation Status. Clearly there is more test data to be added which is expected to happen relatively rapidly.

Please send comments about this document to public-powderwg@w3.org (with public archive).

Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.

This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.

Table of Contents

1 Introduction
2 Test Types
2.1 Parser Tests
2.2 GRDDL Tests
2.3 POWDER Locator Tests
2.4 POWDER Trust Tests
2.5 POWDER Inference Tests
3 Manifest Files
4 The POWDER tests
5 Acknowledgements
6 References

1 Introduction

As part of the POWDER specification, the POWDER Working Group provides a set of test cases. The present document discusses these test cases. They are intented to facilitate and exemplify the creation of POWDER documents of varying complexity and provide a means to assert the conformance of software applications designed to handle POWDER documents.

The document provides a description of the various test types, the format that was used and the structure of the manifest files that accompany the tests.

2 Test Types

The tests are classified with respect to the issue they aim to examine. The main concerns are the syntactic validity of a document, the equivalence between various forms of POWDER documents, the ability to locate a POWDER document associated with a resource and the ability to infer information about a given resource from a POWDER document associated with it. The following sections indicate the classification of the tests included in the test suite and describe their structure.

2.1 Parser Tests

The parser tests are initially separated into positive and negative parser tests. Each test examines the valitidy of a POWDER document against a conformance requirement of the specification. The documents included in the positive tests meet the requirement they are tested against, whereas those included in the negative tests violate a given element of the conformance model.

Each test consists of one POWDER document and a Manifest file. The POWDER document is named posNNN.xml or negNNN.xml if it is included in the positive or negative parser tests respectively, where NNN is the index number of the test with three digits. The Manifest file is named ManifestposNNN.rdf or ManifestnegNNN.rdf.

2.2 GRDDL Tests

These tests include pairs of documents. The first peer is a POWDER document, named powderNNN.xml and the second is a POWDER-S document, named powdersNNN.rdf. Each POWDER-S document is what should be derived from its corresponding POWDER document when applying a transformation on the latter. The transformation may or may not be performed using the XSLT provided for this purpose but the output POWDER-S document must be equivalent. Tbe Manifest file describing each test is named ManifestgrddlNNN.rdf.

2.3 POWDER Locator Tests

The locator tests comprise of pairs of documents. The first document defines a web resource that contains a reference to a POWDER document while the second one is the POWDER document itself. Any locator should reach the POWDER document via the resource. There are tests for each means of locating a POWDER document, as defined in the DR document included in the specification [DR].

2.4 POWDER Trust Tests

TBC

2.5 POWDER Inference Tests

The tests use two documents. A POWDER document and a POWDER-S document. Each test runs an XPath query [XPATH]against the POWDER document or a SPARQL query [SPARQL] against the POWDER-S document. The queries are given as a file named xpathNNN.xp or sparqlNNN.sq. Each file is accompanied by a manifest file, named ManifestxpathNNN.rdf or ManifestsparqlNNN.rdf which defines the information infered by the query. The results are given in a file named respxpathNNN or respsparqlNNN.

3 Manifest Files

The Manifest files associated with the POWDER tests follow the schema developed for the RDF test cases [RDF-TEST]. Furthermore, the said schema is extended to include some new properties and types, as defined in the POWDER test ontology (TBD).

Each test is associated with a Manifest file, identified from the URI formed from the file's URL with a fragment test. A given test has a rdf:type explicit, within the scope of:

wdrtest:parsertest
wdrtest:grddltest
wdrtest:locatortest
wdrtest:trusttest
wdrtest:inferencetest

Where the wdrtest namespace is bound to http://www.w3.org/2008/powder-test/testSchema# and rtest is bound to http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#.

The name of the original author of each test is given using a dc:creator property.

The description of the test is given as a value of a rtest:description property.

The input document for a test is given as a value of a rtest:inputDocument property, whereas the expected output document, if applied, is given as a value of a rtest:outputDocument property.

The status of a test included in the suite, declared using a rtest:status property can be in the set of the following values:

APPROVED
REJECTED
PROPOSED

4 The POWDER Tests

This section demonstrates the documents included in the POWDER Test Suite. The documents are categorized with respect to their type. The subsections indicated in the following content table link to an online representation of the test documents of the corresponding type. The actual documents along with the manifest file of the test they are used into can be downloaded in a compressed file. The directory structure of the compressed file has as follows:

Top Level

POWDER-TS: The entry directory

Second Level

positive parsers tests
negative parsers tests
grddl tests
trust tests
inference tests

Each directory contains the test documents of the corresponding type, along with the manifest file of each test and following the naming conventions discussed in the present document.

Contents

5 Acknowledgements

TBD

6 References

[GRDDL]
Gleaning Resource Descriptions from Dialects of Languages (GRDDL) W3C Recommendation 11 September 2007
[DR]
Protocol for Web Description Resources: Description Resources W3C Working Draft 17 March 2008
[XPATH]
XML Path Language Version 1.0 W3C Recommendation 16 November 1999
[SPARQL]
SPARQL Query Language for RDF W3C Recommendation 15 January 2008
[RDF-TEST]
RDF Test Cases W3C Recommendation 10 February 2004