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: <3.0.3.32.20000112171459.006ab844@pop.it.volvo.se>
To: www-rdf-interest@w3.org
Hi,
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"
	         rdf:parseType="Resource"
		  vcit:dateType="http://vcit-namespace/schema#ValidTo"/>
..........

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?
 
Declarations:

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">
			Date
		</rdfs:label>
		<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. 
		</rdfs:comment>
	</rdf: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>
			<rdfs:label xml:lang="en">Valid-from date
			</rdfs:label>
	</DateType>
    	<DateType rdf:ID="ValidTo">
			<rdfs:label xml:lang="sv">Giltighetsdatum t o m
			</rdfs:label>
			<rdfs:label xml:lang="en">Valid-to date
			</rdfs:label>
	</DateType>

       <!-- Declaration of property dateType -->

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


Thanks
Lars Dannstedt

Senior Consultant
Volvo Information Technology

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:42 GMT