information Society Technology

Appendix C: RDF Schemas for Resources Lists

URI in RDF: simple resources

The following scheme can be used to express a simple online resource (see section 4). The work has been submitted to Evaluation and Repair Working Group of WAI, and might become a W3C Working Group Note.

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
  3. <rdf:Description rdf:about="http://wabcluster.org/ns/2006/uri#">
  4. <rdfs:comment>
  5. A namespace for describing Uniform Resource Identifiers
  6. </rdfs:comment>
  7. </rdf:Description>
  8. <rdfs:Class rdf:about="http://wabcluster.org/ns/2006/uri#URI">
  9. <rdfs:label xml:lang="en">URI</rdfs:label>
  10. <rdfs:comment>A Uniform Resource Identifier</rdfs:comment>
  11. </rdfs:Class>
  12. <rdf:Property rdf:about="http://wabcluster.org/ns/2006/uri#scheme">
  13. <rdfs:label xml:lang="en">Scheme</rdfs:label>
  14. <rdfs:comment>The scheme</rdfs:comment>
  15. <rdfs:domain rdf:resource="http://wabcluster.org/ns/2006/uri#URI" />
  16. </rdf:Property>
  17. <rdf:Property rdf:about="http://wabcluster.org/ns/2006/uri#user-info">
  18. <rdfs:label xml:lang="en">User-Info</rdfs:label>
  19. <rdfs:comment>The user-info</rdfs:comment>
  20. <rdfs:domain rdf:resource="http://wabcluster.org/ns/2006/uri#URI" />
  21. </rdf:Property>
  22. <rdf:Property rdf:about="http://wabcluster.org/ns/2006/uri#host">
  23. <rdfs:label xml:lang="en">Host</rdfs:label>
  24. <rdfs:comment>The host</rdfs:comment>
  25. <rdfs:domain rdf:resource="http://wabcluster.org/ns/2006/uri#URI" />
  26. </rdf:Property>
  27. <rdf:Property rdf:about="http://wabcluster.org/ns/2006/uri#port">
  28. <rdfs:label xml:lang="en">Port</rdfs:label>
  29. <rdfs:comment>The port</rdfs:comment>
  30. <rdfs:domain rdf:resource="http://wabcluster.org/ns/2006/uri#URI" />
  31. </rdf:Property>
  32. <rdf:Property rdf:about="http://wabcluster.org/ns/2006/uri#path">
  33. <rdfs:label xml:lang="en">Path</rdfs:label>
  34. <rdfs:comment>The path</rdfs:comment>
  35. <rdfs:domain rdf:resource="http://wabcluster.org/ns/2006/uri#URI" />
  36. </rdf:Property>
  37. <rdf:Property rdf:about="http://wabcluster.org/ns/2006/uri#query">
  38. <rdfs:label xml:lang="en">Query</rdfs:label>
  39. <rdfs:comment>The query string</rdfs:comment>
  40. <rdfs:domain rdf:resource="http://wabcluster.org/ns/2006/uri#URI" />
  41. </rdf:Property>
  42. <rdf:Property rdf:about="http://wabcluster.org/ns/2006/uri#fragment">
  43. <rdfs:label xml:lang="en">Fragment</rdfs:label>
  44. <rdfs:comment>The fragment</rdfs:comment>
  45. <rdfs:domain rdf:resource="http://wabcluster.org/ns/2006/uri#URI" />
  46. </rdf:Property>
  47. </rdf:RDF>

HTTP in RDF: HTTP resources

HTTP resources can be expressed as per the W3C Working Group Note: HTTP in RDF [HTTP-RDF]. Note that this note might be modified to include the aforementioned schema and replace some of the Classes of [HTTP-RDF]. Note that for HTTP Resources that do not offer any content negotiation, HTTP resources can be represented as simple resources.

Resources Lists

Resources lists can be expressed as a simple RDF Sequence containing a list of simple or HTTP resources (see below for an example).

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <rdf:RDF
  3. xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  4. xmlns:http="http://www.w3.org/1999/xx/http#"
  5. xmlns:uwemURI="http://wabcluster.org/ns/2006/uri#">
  6. <rdf:Seq rdf:about="http://example.org/20060331/test1">
  7. <rdf:li rdf:resource="http://example.org/20060331/test1/res1"/>
  8. <rdf:li rdf:resource="http://example.org/20060331/test1/res2"/>
  9. <rdf:li rdf:resource="http://example.org/20060331/test1/res3"/>
  10. </rdf:Seq>
  11. <uwemURI:URI rdf:about="http://example.org/20060331/test1/res1">
  12. <uwemURI:scheme>http</uwemURI:scheme>
  13. <uwemURI:host>www.europa.eu.int</uwemURI:host>
  14. <uwemURI:path>/abc/history/index_en.htm</uwemURI:path>
  15. </uwemURI:URI>
  16. <uwemURI:URI rdf:about="http://example.org/20060331/test1/res2">
  17. <uwemURI:scheme>http</uwemURI:scheme>
  18. <uwemURI:host>www.europa.eu.int</uwemURI:host>
  19. <uwemURI:path>/abc/history/1962/index_en.htm</uwemURI:path>
  20. </uwemURI:URI>
  21. <http:GetRequest rdf:about="http://example.org/20060331/test1/res3">
  22. <uwemURI:scheme>http</uwemURI:scheme>
  23. <uwemURI:host>www.europa.eu.int</uwemURI:host>
  24. <uwemURI:path>/abc/history/1962/index_en.htm</uwemURI:path>
  25. <http:version>1.1</http:version>
  26. <http:accept>text/html;q=1.0, */*;q=0.01</http:accept>
  27. <http:acceptLanguage>de-DE;q=1.0, de;q=0.75, en-GB;q=0.5,
  28. en;q=0.25, *;q=0.01</http:acceptLanguage>
  29. </http:GetRequest>
  30. </rdf:RDF>
www.wabcluster.org