Lisez-moi S.V.P. 
précédent  suivant  introduction  table des matières  index

Les jeux d'essais du langage d'ontologie Web OWL

7.4.3. À propos de rdf:XMLLiteral


Sommaire


7.4.3. À propos de rdf:XMLLiteral

Ces tests illustrent l'utilisation de la structure rdf:XMLLiteral.

Lite Full Document cohérent. 201
Description : (informatif) <miscellaneous/Manifest201#test>
Ce test montre comment utiliser des étiquettes d'utilisateur en diverses langues. Remarquez l'utilisation d'une annotation ruby.
Les types de données à gérer ou non : rdf:XMLLiteral
Le format N3 est informatif.
Espaces de nommage :
@prefix : <http://www.w3.org/1999/xhtml> .
Lite Cohérent : <miscellaneous/consistent201>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:first="http://www.w3.org/2002/03owlt/miscellaneous/consistent201#"
    xml:base="http://www.w3.org/2002/03owlt/miscellaneous/consistent201" >

    <owl:Class rdf:ID="ShakespearePlay">
      <rdfs:label xml:lang="en">Shakespeare's plays</rdfs:label>
      <rdfs:comment xml:lang="en">The class of Shakespeare's plays.</rdfs:comment>
      <rdfs:label xml:lang="it">Opere di Shakespeare</rdfs:label>
      <rdfs:comment xml:lang="it">La classe delle opere di Shakespeare.</rdfs:comment>
      <rdfs:label rdf:parseType="Literal"
          ><span xml:lang="ja">シェイクスピアの<ruby><rbc><rb>演</rb><rb>劇</rb></rbc>
          <rtc><rt>えん</rt><rt>げき</rt></rtc></ruby></span></rdfs:label>
      <rdfs:comment rdf:parseType="Literal"
          ><span xml:lang="ja">シェイクスピアの<ruby><rbc><rb>演</rb><rb>劇</rb></rbc>
          <rtc><rt>えん</rt><rt>げき</rt></rtc></ruby>のクラス。</span></rdfs:comment>
    </owl:Class>
    <first:ShakespearePlay rdf:ID="Romeo-and-Juliet">
      <rdfs:label xml:lang="en">Romeo and Juliet</rdfs:label>
      <rdfs:comment xml:lang="en">The Most Excellent and Lamentable Tragedy 
          of Romeo and Juliet.</rdfs:comment>
      <rdfs:label xml:lang="it">Romeo e Giulietta</rdfs:label>
      <rdfs:comment xml:lang="it">La tragedia di Romeo e Giulietta</rdfs:comment>
      <rdfs:label rdf:parseType="Literal"
          ><span xml:lang="ja">ロミオとジュリエット</span></rdfs:label>
      <rdfs:comment rdf:parseType="Literal"
          ><span xml:lang="ja">ロミオとジュリエットの<ruby><rbc><rb>悲</rb><rb>劇</rb></rbc>
          <rtc><rt>ひ</rt><rt>げき</rt></rtc></ruby></span></rdfs:comment>
    </first:ShakespearePlay>
</rdf:RDF>
first:ShakespearePlay rdf:type owl:Class .
first:ShakespearePlay rdfs:label "Shakespeare's plays"@en .
first:ShakespearePlay rdfs:comment "The class of Shakespeare's plays."@en .
first:ShakespearePlay rdfs:label "Opere di Shakespeare"@it .
first:ShakespearePlay rdfs:comment "La classe delle opere di Shakespeare."@it .
first:ShakespearePlay rdfs:label """<span xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">シェイクスピアの<ruby><rbc><rb>演</rb><rb>劇</rb></rbc>
          <rtc><rt>えん</rt><rt>げき</rt></rtc></ruby></span>"""^^rdf:XMLLiteral  .
first:ShakespearePlay rdfs:comment """<span xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">シェイクスピアの<ruby><rbc><rb>演</rb><rb>劇</rb></rbc>
          <rtc><rt>えん</rt><rt>げき</rt></rtc></ruby>のクラス。</span>"""^^rdf:XMLLiteral  .
first:Romeo-and-Juliet rdf:type first:ShakespearePlay .
first:Romeo-and-Juliet rdfs:label "Romeo and Juliet"@en .
first:Romeo-and-Juliet rdfs:comment """The Most Excellent and Lamentable Tragedy 
          of Romeo and Juliet."""@en .
first:Romeo-and-Juliet rdfs:label "Romeo e Giulietta"@it .
first:Romeo-and-Juliet rdfs:comment "La tragedia di Romeo e Giulietta"@it .
first:Romeo-and-Juliet rdfs:label """<span xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">ロミオとジュリエット</span>"""^^rdf:XMLLiteral  .
first:Romeo-and-Juliet rdfs:comment """<span xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">ロミオとジュリエットの<ruby><rbc><rb>悲</rb><rb>劇</rb></rbc>
          <rtc><rt>ひ</rt><rt>げき</rt></rtc></ruby></span>"""^^rdf:XMLLiteral  .

Lite Full Document cohérent. 202
Description : (informatif) <miscellaneous/Manifest202#test>
On montre que les blancs non significatifs dans une structure rdf:XMLLiteral ne le sont pas non plus dans OWL.
Les types de données à gérer ou non : rdf:XMLLiteral
Le format N3 est informatif.
Espaces de nommage :
@prefix : <http://www.w3.org/1999/xhtml> .
Lite Cohérent : <miscellaneous/consistent202>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:first="http://www.w3.org/2002/03owlt/miscellaneous/consistent202#"
    xml:base="http://www.w3.org/2002/03owlt/miscellaneous/consistent202" >

  <owl:DatatypeProperty rdf:ID="fp" />
  <owl:FunctionalProperty
           rdf:about="#fp" />
  <owl:Thing>
     <first:fp rdf:parseType="Literal"><br />
<img src="vn.png" alt="Venn diagram" longdesc="vn.html" title="Venn"></img></first:fp>
     <first:fp rdf:parseType="Literal"><br 
></br>
<img 
src="vn.png" title=
"Venn" alt
="Venn diagram" longdesc=
"vn.html" /></first:fp>
   </owl:Thing>
</rdf:RDF>
first:fp rdf:type owl:DatatypeProperty .
first:fp rdf:type owl:FunctionalProperty .
_:a rdf:type owl:Thing .
_:a first:fp """<br xmlns="http://www.w3.org/1999/xhtml"></br>
<img xmlns="http://www.w3.org/1999/xhtml" alt="Venn diagram" longdesc="vn.html" src="vn.png" title="Venn"></img>"""^^rdf:XMLLiteral  .
_:a first:fp """<br xmlns="http://www.w3.org/1999/xhtml"></br>
<img xmlns="http://www.w3.org/1999/xhtml" alt="Venn diagram" longdesc="vn.html" src="vn.png" title="Venn"></img>"""^^rdf:XMLLiteral  .

Lite Full(EC) Document incohérent. 203
Description : (informatif) <miscellaneous/Manifest203#test>
On montre qu'un blanc initial dans une structure rdf:XMLLiteral est significatif dans OWL.
Prise en compte de type de donnée obligatoire : rdf:XMLLiteral
Le format N3 est informatif.
Espaces de nommage :
@prefix : <http://www.w3.org/1999/xhtml> .
Lite Incohérent : <miscellaneous/inconsistent203>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:first="http://www.w3.org/2002/03owlt/miscellaneous/inconsistent203#"
    xml:base="http://www.w3.org/2002/03owlt/miscellaneous/inconsistent203" >

  
  <owl:DatatypeProperty
           rdf:ID="fp" />
  <owl:FunctionalProperty
           rdf:about="#fp" />
  <owl:Thing>
     <first:fp rdf:parseType="Literal">
<br />
<img src="vn.png" alt="Venn diagram" longdesc="vn.html" title="Venn"></img>
</first:fp>
     <first:fp rdf:parseType="Literal"><br 
></br>
<img 
src="vn.png" title=
"Venn" alt
="Venn diagram" longdesc=
"vn.html" />
</first:fp>
   </owl:Thing>
</rdf:RDF>
first:fp rdf:type owl:DatatypeProperty .
first:fp rdf:type owl:FunctionalProperty .
_:a rdf:type owl:Thing .
_:a first:fp """
<br xmlns="http://www.w3.org/1999/xhtml"></br>
<img xmlns="http://www.w3.org/1999/xhtml" alt="Venn diagram" longdesc="vn.html" src="vn.png" title="Venn"></img>
"""^^rdf:XMLLiteral  .
_:a first:fp """<br xmlns="http://www.w3.org/1999/xhtml"></br>
<img xmlns="http://www.w3.org/1999/xhtml" alt="Venn diagram" longdesc="vn.html" src="vn.png" title="Venn"></img>
"""^^rdf:XMLLiteral  .

Lite Full Document incohérent. 204
Description : (informatif) <miscellaneous/Manifest204#test>
On montre une incohérence simple dépendant du type de donnée rdf:XMLLiteral. Ce fichier est incohérent pour une application de type de donnée qui reconnaît le type rdf:XMLLiteral, et cohérent sinon.
Prise en compte de type de donnée obligatoire : rdf:XMLLiteral
Le format N3 est informatif.
Espaces de nommage :
@prefix : <http://www.w3.org/1999/xhtml> .
Lite Incohérent : <miscellaneous/inconsistent204>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:first="http://www.w3.org/2002/03owlt/miscellaneous/inconsistent204#"
    xml:base="http://www.w3.org/2002/03owlt/miscellaneous/inconsistent204" >
   <owl:FunctionalProperty rdf:ID="fp"/>
   <owl:DatatypeProperty rdf:about="#fp"/>
   <owl:Thing>
     <first:fp rdf:parseType="Literal"
     ><span xml:lang='en'>
        <b>Good!</b></span
     ></first:fp>
     <first:fp rdf:parseType="Literal"
     ><span xml:lang='en'>
        <b>Bad!</b></span
     ></first:fp>
   </owl:Thing>
</rdf:RDF>
first:fp rdf:type owl:FunctionalProperty .
first:fp rdf:type owl:DatatypeProperty .
_:a rdf:type owl:Thing .
_:a first:fp """<span xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
        <b>Good!</b></span>"""^^rdf:XMLLiteral  .
_:a first:fp """<span xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
        <b>Bad!</b></span>"""^^rdf:XMLLiteral  .

Lite Document cohérent. 205
Description : (informatif) <miscellaneous/Manifest205#test>
On montre qu'un vérificateur de cohérence OWL ne gérant pas le type de donnée rdf:XMLLiteral ne devrait pas détecter les incohérences qui en dépendent. Ce fichier est incohérent pour une application de type de donnée gérant le type rdf:XMLLiteral, mais cohérent dans ce test lequel en exclut la gestion.
Types de données ne devant pas être pris en compte : rdf:XMLLiteral
Le format N3 est informatif.
Espaces de nommage :
@prefix : <http://www.w3.org/1999/xhtml> .
Lite Cohérent : <miscellaneous/consistent205>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:first="http://www.w3.org/2002/03owlt/miscellaneous/consistent205#"
    xml:base="http://www.w3.org/2002/03owlt/miscellaneous/consistent205" >

   <owl:FunctionalProperty rdf:ID="fp"/>
   <owl:DatatypeProperty rdf:about="#fp"/>
   <owl:Thing>
     <first:fp rdf:parseType="Literal"
     ><span xml:lang='en'>
        <b>Good!</b></span
     ></first:fp>
     <first:fp rdf:parseType="Literal"
     ><span xml:lang='en'>
        <b>Bad!</b></span
     ></first:fp>
   </owl:Thing>


</rdf:RDF>
first:fp rdf:type owl:FunctionalProperty .
first:fp rdf:type owl:DatatypeProperty .
_:a rdf:type owl:Thing .
_:a first:fp """<span xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
        <b>Good!</b></span>"""^^rdf:XMLLiteral  .
_:a first:fp """<span xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
        <b>Bad!</b></span>"""^^rdf:XMLLiteral  .


précédent suivant introduction table des matières index