W3C home > Mailing lists > Public > www-rdf-interest@w3.org > May 2004

Re: Partially defined concepts

From: David Menendez <zednenem@psualum.com>
Date: Fri, 14 May 2004 01:42:27 -0400
To: Ander Altuna/LABEIN <aaltuna@labein.es>
Cc: www-rdf-interest@w3.org
Message-id: <r02000200-1033-7C3C2126A56911D8AC0B000393758032@[10.0.1.2]>

Ander Altuna/LABEIN writes:

> 
> But then, if australian employee is a just a subclass of employee, we
> can`t define the value of the property nationality. The subclass
> australian employee would have the propertiy nationality without
> defining. Can't we define a subconcept associating a value to some
> properties, so any instance of this subconcept would have some values
> predefined?

You want OWL for this.

    <owl:Class rdf:about='http://example.org#australian'>
      <rdfs:subClassOf rdf:resource='http://example.org#employee'/>
      <rdfs:subClassOf>
        <owl:Restriction>
            <owl:onProperty 
              rdf:resource='http://example.org#nationality'/>
            <owl:hasValue>australian</owl:hasValue>
        </owl:Restriction>
      </rdfs:subClassOf>
    </owl:Class>

With this definition, if you have:

    _:x rdf:type example:australian.

You can infer:

    _:x example:nationality "australian".
-- 
David Menendez <zednenem@psualum.com> <http://www.eyrie.org/~zednenem/>
Received on Friday, 14 May 2004 01:43:58 GMT

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