SKOS (Simple Knowledge Organisation System) Test Cases
Abstract
This document contains and presents test cases for the Simple Knowledge Organisation System (SKOS). Test cases illustrate the correct usage of SKOS, and the formal meaning of its constructs. Other test cases illustrate the resolution of issues considered by the Working Group.
Status of this Document
This is a wiki draft, and is a work in progress. The content of this document may change without warning at any time. This document has no official status whatsoever within any W3C process.
Table of Contents
Contents
Section: SKOS/TestCases/Introduction
This section last edited on 2010-04-01 12:48:32 is part of the SKOS/TestCases wiki draft.
Introduction
@@TODO general introduction
- What are we testing?
- What should be in scope?
- Semantics?
- Application behaviour, e.g. rendering of hierarchies?
Section: SKOS/TestCases/TestTypes
This section last edited on 2010-04-01 12:48:32 is part of the SKOS/TestCases wiki draft.
Test Types
@@TODO kinds of tests
Section: SKOS/TestCases/Conformance
This section last edited on 2010-04-01 12:48:32 is part of the SKOS/TestCases wiki draft.
Conformance
@@TODO Definition of conformance.
- What is a SKOS implementation?
- What does it mean to pass the tests?
Section: SKOS/TestCases/Tests
This section last edited on 2010-04-01 12:48:32 is part of the SKOS/TestCases wiki draft.
Tests
@@TODO define some tests
Test: SKOS/TestCases/Tests/SampleTestCase
This section last edited on 2010-04-01 12:48:32 is part of the SKOS/TestCases/Tests wiki draft.
Test: Sample Test Case
Identifier: |
xyz |
Name: |
Sample Test Case |
Type: |
Inconsistency |
Issue: |
Issue-33 |
Description: |
Use of skos:narrower with skos:Collection is inconsistent |
Because skos:Collection and skos:Concept are declared by the minimal fix proposal to be disjoint classes, several examples given in [SKOS-GUIDE-SEC-COLLECTIONS] become inconsistent. In particular, the use of any SKOS semantic relation property, such as skos:narrower or skos:broader is inconsistent. All examples in [SKOS-GUIDE-SEC-COLLECTIONS] which involve skos:narrower are inconsistent, and are therefore deprecated under this proposal.
The following graph is inconsistent
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> <skos:Concept rdf:about="http://www.example.com/concepts#milk"> <skos:prefLabel>milk</skos:prefLabel> <skos:narrower> <skos:Collection> <rdfs:label>milk by source animal</rdfs:label> <skos:member rdf:resource="http://www.example.com/concepts#buffalomilk"/> <skos:member rdf:resource="http://www.example.com/concepts#cowmilk"/> <skos:member rdf:resource="http://www.example.com/concepts#goatmilk"/> <skos:member rdf:resource="http://www.example.com/concepts#sheepmilk"/> </skos:Collection> </skos:narrower> </skos:Concept> </rdf:RDF>
(Would need to also include link to RDF source.)