W3C home > Mailing lists > Public > semantic-web@w3.org > April 2005

Re: Question regarding Classes as Instances in OWL full

From: Ian Davis <iand@internetalchemy.org>
Date: Mon, 04 Apr 2005 11:50:22 +0100
Message-ID: <42511BEE.3070900@internetalchemy.org>
To: Monika Solanki <monika@dmu.ac.uk>
CC: Semantic web <semantic-web@w3.org>

On 02/04/2005 10:52, Monika Solanki wrote:
> I would like to know if this is valid owl full code, can someone help
> 
> <?xml version="1.0"?>
> <rdf:RDF
>     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
>     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>     xmlns:owl="http://www.w3.org/2002/07/owl#"
>     xmlns="http://www.owl-ontologies.com/unnamed.owl#"
>   xml:base="http://www.owl-ontologies.com/unnamed.owl">
>   <owl:Ontology rdf:about=""/>
>   <owl:Class rdf:ID="Person"/>
>   <owl:Class rdf:ID="Monika"/>
>   <owl:ObjectProperty rdf:ID="hasName">
>     <rdfs:domain rdf:resource="#Person"/>
>     <rdfs:range rdf:resource="#Monika"/>
>     <rdf:type
> rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty"/>
>   </owl:ObjectProperty>
>   <Person rdf:ID="Solanki">
>     <hasName rdf:resource="#Monika"/>
>   </Person>
> </rdf:RDF>
> 

In the above, the Monika class is used as the value of the hasName 
property. Using a class as an individual like this makes your document 
OWL Full.

Ian
-- 
http://internetalchemy.org | http://purl.org/NET/iand
Received on Monday, 4 April 2005 10:50:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 07:41:45 UTC