Copyright © 2004 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply.
Contents
These tests illustrate the use of rdf:XMLLiteral.
| Lite Full | Consistent document. | 201 | |
|---|---|---|---|
Description:
(informative)
<miscellaneous/Manifest201#test>
|
|||
| This test shows how user labels in a variety of languages can be used. Note the use of ruby annotation. | |||
| Datatypes that may or may not be supported: | rdf:XMLLiteral, | ||
| N3 format is informative. | |||
| Namespaces: | |||
@prefix : <http://www.w3.org/1999/xhtml> . | |||
| Lite | Consistent:
<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 | Consistent document. | 202 | |
|---|---|---|---|
Description:
(informative)
<miscellaneous/Manifest202#test>
|
|||
| This shows that insignificant whitespace in an rdf:XMLLiteral is not significant within OWL. | |||
| Datatypes that may or may not be supported: | rdf:XMLLiteral, | ||
| N3 format is informative. | |||
| Namespaces: | |||
@prefix : <http://www.w3.org/1999/xhtml> . | |||
| Lite | Consistent:
<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) | Inconsistent document. | 203 | |
|---|---|---|---|
Description:
(informative)
<miscellaneous/Manifest203#test>
|
|||
| This shows that initial whitespace in an rdf:XMLLiteral is significant within OWL. | |||
| Required datatype support: | rdf:XMLLiteral, | ||
| N3 format is informative. | |||
| Namespaces: | |||
@prefix : <http://www.w3.org/1999/xhtml> . | |||
| Lite | Inconsistent:
<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 | Inconsistent document. | 204 | |
|---|---|---|---|
Description:
(informative)
<miscellaneous/Manifest204#test>
|
|||
This shows a simple inconsistency depending on the datatype
rdf:XMLLiteral.
This file is inconsistent with a datatype map which supports rdf:XMLLiteral,
and consistent otherwise. | |||
| Required datatype support: | rdf:XMLLiteral, | ||
| N3 format is informative. | |||
| Namespaces: | |||
@prefix : <http://www.w3.org/1999/xhtml> . | |||
| Lite | Inconsistent:
<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 | Consistent document. | 205 | |
|---|---|---|---|
Description:
(informative)
<miscellaneous/Manifest205#test>
|
|||
This shows that an OWL consistency checker which does not
support the datatype
rdf:XMLLiteral
should
not detect inconsistencies depending on it.
This file is inconsistent with a datatype map which supports rdf:XMLLiteral,
but consistent in this test, which excludes such support. | |||
| Datatypes that must not be supported: | rdf:XMLLiteral, | ||
| N3 format is informative. | |||
| Namespaces: | |||
@prefix : <http://www.w3.org/1999/xhtml> . | |||
| Lite | Consistent:
<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 .
| |||