RE: Nesting of intersectionOf and unionOf

Thanks, Ivan!

-----Original Message-----
From: Ivan Herman [mailto:ivan@w3.org] 
Sent: Wednesday, August 24, 2005 9:20 AM
To: Hans Teijgeler
Cc: jos.deroo@agfa.com; semantic-web@w3.org; semantic-web-request@w3.org;
'Christiansen Thore'
Subject: Re: Nesting of intersectionOf and unionOf

Hans,

yes it is possible, but I think that your first example was, syntactically,
wrong. As far as I can see, it should be:

<owl:intersectionOf rdf:parseType="Collection">
 <owl:Class rdf:about="#ParticipatingRoleAndDomain"/>
 <owl:Class>
  <owl:unionOf rdf:parseType="Collection">
   <owl:Class rdf:about="#ClassOfArrangedIndividual"/>
   <owl:Class rdf:about="#ClassOfEvent"/>
   <owl:Class rdf:about="#ClassOfPeriodInTime"/>
   <owl:Class rdf:about="#IndividualDimension"/>
   <owl:Class rdf:about="#Property"/>
   <owl:Class rdf:about="#Status"/>
  </owl:unionOf>
 </owl:Class>
</owl:intersectionOf>

The collection should refer to a sequence of classes, whereas owl:unionOf is
not
a class but owl:property. So you have to define a class that is defined to
be
the union, and that class can be part of the outermost collection.

Cheers

Ivan


Hans Teijgeler wrote:
> Hi Jos,
>
> Thank you for your help!
>
> I take it that your answer is: yes, you may nest unionOf in
intersectionOf.
>
> Not quite a compact language, that RDF/XML, huh?
>
> I wonder why (and that may reveal my ignorance) the notation that I used,
> and that I took from the OWL Web Ontologt Language Guide, is less good, or
> even not good at all for an RDF/XML notation. If not at all, then what is
> the notation that is used in the OWL Guide?
>
> And why is it a "safe way" (safe for what and against what?) to use the
> rdf:List construct? Could you shed some light on that?
>
> And what is the notation you used? Why are there so many notations? Not to
> impress the uninitiated, I hope. Puzzling stuff.
>
> Kind regards,
> Hans
>
> -----Original Message-----
> From: semantic-web-request@w3.org [mailto:semantic-web-request@w3.org] On
> Behalf Of jos.deroo@agfa.com
> Sent: Tuesday, August 23, 2005 10:57 PM
> To: hans.teijgeler@quicknet.nl
> Cc: semantic-web@w3.org; semantic-web-request@w3.org; Christiansen Thore
> Subject: Re: Nesting of intersectionOf and unionOf
>
>
> for your second example, I guess you mean
>
>      @prefix owl: <http://www.w3.org/2002/07/owl#> .
>      @prefix : <http://www.tc184-sc4.org/iso15926/part2/2003-12#> .
>
>      :Phase owl:intersectionOf (
>         :ClassOfActivity
>         :ClassOfFeature
>         :ClassOfInformationObject
>         :ClassOfOrganization
>         [ owl:unionOf (
>                 :ClassOfInanimatePhysicalObject
>                 :ClassOfOrganism ) ]
>         [ owl:unionOf (
>                 :ClassOfAtom
>                 :ClassOfBiologicalMatter
>                 :ClassOfCompound
>                 :ClassOfCompositeMaterial
>                 :ClassOfFunctionalObject
>                 :ClassOfInformationPresentation
>                 :ClassOfInformationRepresentation
>                 :ClassOfMolecule
>                 :ClassOfParticulateMaterial
>                 :ClassOfSubAtomicParticle
>                 :CrystallineStructure ) ] ).
>
> which I believe is OWL Full
> For the RDF/XML encoding, one safe way is to use rdf:first and rdf:rest
> properties
>
> <rdf:RDF xmlns="http://www.w3.org/2002/07/owl#"
>     xmlns:owl="http://www.w3.org/2002/07/owl#"
>     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
>
>     <rdf:Description
> rdf:about="http://www.tc184-sc4.org/iso15926/part2/2003-12#Phase">
>         <intersectionOf rdf:parseType="Resource">
>             <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfActivit
> y"/>
>             <rdf:rest rdf:parseType="Resource">
>                 <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfFeature
> "/>
>                 <rdf:rest rdf:parseType="Resource">
>                     <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfInforma
> tionObject"/>
>                     <rdf:rest rdf:parseType="Resource">
>                         <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfOrganiz
> ation"/>
>                         <rdf:rest rdf:parseType="Resource">
>                             <rdf:first rdf:parseType="Resource">
>                                 <unionOf rdf:parseType="Resource">
>                                     <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfInanima
> tePhysicalObject"/>
>                                     <rdf:rest rdf:parseType="Resource">
>                                         <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfOrganis
> m"/>
>                                         <rdf:rest
> rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
>                                     </rdf:rest>
>                                 </unionOf>
>                             </rdf:first>
>                             <rdf:rest rdf:parseType="Resource">
>                                 <rdf:first rdf:parseType="Resource">
>                                     <unionOf rdf:parseType="Resource">
>                                         <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfAtom"/>
>                                         <rdf:rest
> rdf:parseType="Resource">
>                                             <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfBiologi
> calMatter"/>
>                                             <rdf:rest
> rdf:parseType="Resource">
>                                                 <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfCompoun
> d"/>
>                                                 <rdf:rest
> rdf:parseType="Resource">
>                                                     <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfComposi
> teMaterial"/>
>                                                     <rdf:rest
> rdf:parseType="Resource">
>                                                         <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfFunctio
> nalObject"/>
>                                                         <rdf:rest
> rdf:parseType="Resource">
>                                                             <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfInforma
> tionPresentation"/>
>                                                             <rdf:rest
> rdf:parseType="Resource">
>                                                                 <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfInforma
> tionRepresentation"/>
>                                                                 <rdf:rest
> rdf:parseType="Resource">
>  <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfMolecul
> e"/>
>  <rdf:rest rdf:parseType="Resource">
>  <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfParticu
> lateMaterial"/>
>  <rdf:rest rdf:parseType="Resource">
>   <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#ClassOfSubAtom
> icParticle"/>
>   <rdf:rest rdf:parseType="Resource">
>       <rdf:first
>
rdf:resource="http://www.tc184-sc4.org/iso15926/part2/2003-12#CrystallineStr
> ucture"/>
>       <rdf:rest
> rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
>   </rdf:rest>
>  </rdf:rest>
>  </rdf:rest>
>  </rdf:rest>
>                                                             </rdf:rest>
>                                                         </rdf:rest>
>                                                     </rdf:rest>
>                                                 </rdf:rest>
>                                             </rdf:rest>
>                                         </rdf:rest>
>                                     </unionOf>
>                                 </rdf:first>
>                                 <rdf:rest
> rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
>                             </rdf:rest>
>                         </rdf:rest>
>                     </rdf:rest>
>                 </rdf:rest>
>             </rdf:rest>
>         </intersectionOf>
>     </rdf:Description>
> </rdf:RDF>
>

--

Ivan Herman
W3C Communications Team, Head of Offices
C/o W3C Benelux Office at CWI, Kruislaan 413
1098SJ Amsterdam, The Netherlands
tel: +31-20-5924163; mobile: +31-641044153;
URL: http://www.w3.org/People/Ivan/

Received on Wednesday, 24 August 2005 07:57:31 UTC