W3C home > Mailing lists > Public > public-media-annotation@w3.org > March 2011

mapping, RDF and test-cases

From: Pierre-Antoine Champin <pierre-antoine.champin@liris.cnrs.fr>
Date: Wed, 09 Mar 2011 16:40:40 +0100
Message-ID: <4D779F78.9040604@liris.cnrs.fr>
To: "public-media-annotation@w3.org" <public-media-annotation@w3.org>
Hi all,

[Summary: I explain some issues about RDF-based test-cases, and I 
propose a solution]

I said in a previous telecon that I had some concern about making 
test-cases for the RDF mapping.

Let me illustrate my initial concern: when mapping the metadata from


I would like the output to look like this [2]


However, I can not provide that Turtle file as a reference for test 
cases, because of a number of problems:

1/ as suggested by the RDF mapping [1], I minted a number of URIs (in 
the id3v2: namespace) for *subproperties* of the original ma: 
properties, whenever ID3 had a more precise semantics. For example, TEXT 
provides the name of the *lyricist*, so a sub-property of 
ma:hasContributor should be used.

However, we do not want to prescribe the URIs of such sub-properties, so 
they should not appear in the test-cases.

2/ although ID3 does not use URIs for languages, I was able to generate 
a valid URI from the ISO-639 code [2].

While this is a useful mechanism, it can not be prescribed either, as we 
do not want to sponsor a particular URI-scheme for languages.

An obvious solution would be to strip the RDF output the bone, stricly 
sticking to what is *required* from the MA ontology. This gives 
something like:


which is correct, but loses a lot of information, so nobody would 
actually want to generate *just* this.

Proposed solution

We should provide for the test-cases the stripped version of RDF 
metadata, and we should explicitly state that implementations are not 
required to exactly produce those RDF triples, but to produce something 
from which all those triples can be *inferred* using RDFS semantics.

In RDF parlance, the RDF produced by an implementation for complete.mp3 
should *entail* the RDF graph expressed by complete.ttl, under the 
entailment regime of RDFS.

The drawback of this proposal is that it requires that testers use an 
inference engine. However, RDFS semantics is relatively well supported...



[2] http://lexvo.org/id/iso639-3/eng
Received on Wednesday, 9 March 2011 15:41:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:17:41 UTC