W3C home > Mailing lists > Public > semantic-web@w3.org > October 2014

Re: An object belongs to a set

From: Pat Hayes <phayes@ihmc.us>
Date: Mon, 27 Oct 2014 13:24:19 -0500
Cc: SW-forum Web <semantic-web@w3.org>
Message-Id: <F5C55C7D-2061-4501-810A-CC3957C28963@ihmc.us>
To: Victor Porton <porton@narod.ru>

On Oct 27, 2014, at 12:53 PM, Victor Porton <porton@narod.ru> wrote:

> If I want to assert that an object :x belongs to a set :set is the best method to write this in triples `:x :set true .`?

No. You need to use an explicit membership property. If you care to identify your sets with RDFS or OWL classes, you can use the rdf:type property, which serves exactly this purpose:

:x rdf:type :set .

but if you want to keep your sets distinct from classes, use a different membership property:

:x :member :set .

Pat Hayes


> 
> Other ways?
> 
> --
> Victor Porton - http://portonvictor.org
> 
> 

------------------------------------------------------------
IHMC                                     (850)434 8903 home
40 South Alcaniz St.            (850)202 4416   office
Pensacola                            (850)202 4440   fax
FL 32502                              (850)291 0667   mobile (preferred)
phayes@ihmc.us       http://www.ihmc.us/users/phayes
Received on Monday, 27 October 2014 18:24:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:26 UTC