[rdfweb-dev] sw-vocab-status: classes instead of literal

Reto Bachmann-Gmuer reto at gmuer.ch
Wed Jul 28 09:27:46 UTC 2004


Hello

I've just looked at http://www.w3.org/2003/06/sw-vocab-status/ns#". I'm 
wondering if it a good idea to define the status with the literal value 
of a property.

Why not have something like:

<rdfs:Class 
rdf:about="http://xmlns.com/foaf/0.1/PersonalProfileDocument" 
rdfs:label="PersonalProfileDocument" rdfs:comment="A personal profile 	 
RDF document.">
     <rdfs:subClassOf rdf:resource="http://xmlns.com/foaf/0.1/Document"/>
     <rdf:type 
rdf:resource="http://www.w3.org/2003/06/sw-vocab-status/ns#Testing">
</rdfs:Class>

Instead of having the property vs:term_status="testing".

Apart from the question if semantic value should be associated to named 
resources rather than literals, the current solution (with 
'stable','unstable','testing') seems much less suitable for 
internationalization. Having an rdfs:Class would allow labels in many 
languages:

<rdfs:Class 
rdf:about="http://www.w3.org/2003/06/sw-vocab-status/ns#Testing">
	<rdfs:comment>A vocabulary term with testing-status.</rdfs:comment>
	<rdfs:label xml:lang="en">testing</rdfs:label>
	<rdfs:label xml:lang="it">esperimentando</rdf:label>
	<rdfs:label xml:lang="de">versuchshalber</rdf:label>
</rdfs:Class>

cheers,
reto





More information about the foaf-dev mailing list