W3C home > Mailing lists > Public > www-rdf-interest@w3.org > January 2000

typing of property

From: Lars Dannstedt <Lars_Dannstedt@vd.volvo.se>
Date: Wed, 12 Jan 2000 17:14:59 +0100
Message-Id: <>
To: www-rdf-interest@w3.org
I want to create an RDF structure where a lot of properties will be typed.
For example the property 'date' may be of type 'ValidFrom', 'ValidTo' etc.

In the RDF instance we will have date given as:

	<vc:date rdf:value="1999-10-25"

The reason to use parseType="Resource" is to make the explanations of 
the type values in namespace vcit available.

But this format seems a little bit clumsy for frequent use.
The question is: Is there an abbreviated way to code the statement above?

The property date is declared in namespace vc:

	<rdf:Property ID="date">
		<rdfs:range rdf:resource="http://www.w3.org/datatypes#isodate"/>
		<rdfs:label xml:lang="en">
		<rdfs:comment xml:lang="en">
			Date must be given in the ISO 8601 format: yyyy-mm-dd.
			It must be qualified by the dateType property. 

In namespace 'vcit' (http://vcit-namespace/schema)
the types of date are declared as instances of class DateType:

	<rdfs:Class rdf:ID="DateType"/>
	<DateType rdf:ID="ValidFrom">
			<rdfs:label xml:lang="sv">Giltighetsdatum fr o m
			<rdfs:label xml:lang="en">Valid-from date
    	<DateType rdf:ID="ValidTo">
			<rdfs:label xml:lang="sv">Giltighetsdatum t o m
			<rdfs:label xml:lang="en">Valid-to date

       <!-- Declaration of property dateType -->

	<rdf:Property ID="dateType">
    		<rdfs:range rdf:resource="#DateType"/>

Lars Dannstedt

Senior Consultant
Volvo Information Technology

email: Lars_Dannstedt@vd.volvo.se
Received on Wednesday, 12 January 2000 11:23:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:28 UTC