RE: Nesting of intersectionOf and unionOf

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?

True, and how Ivan wrote it is actually more compact

<rdf:RDF
 xmlns:owl="http://www.w3.org/2002/07/owl#"
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xml:base="http://www.tc184-sc4.org/iso15926/part2/2003-12#">

<rdf:Description>
 <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>
</rdf:Description>

</rdf:RDF>

> 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.

Safe was the wrong word; "another" would be better :)
RDF is graph triples and a list of :a and :b are 6 triples

_:L1 rdf:type rdf:List.
_:L1 rdf:first :a.
_:L1 rdf:rest _:L2.
_:L2 rdf:type rdf:List.
_:L2 rdf:first :b.
_:L2 rdf:rest rdf:nil.

There are indeed different syntactic notations: drawing a graph,
RDF/XML recommended exchange syntax, Turtle, N3, ...
The above list can be written down more compactly in Turtle and N3 as

(:a :b)

and is what I also used for your second example :-)

-- 
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/

Received on Wednesday, 24 August 2005 11:57:13 UTC