YADS Model Schema - RDFS


This is the RDFS schema for the YADS model.


  <?xml version="1.0" encoding="UTF-8"?>
  <!--
  
    YADS - RDF/XML
  
    This document describes YADS - A Description Service
    in an RDF Schema using an RDF/XML serialization.
  
    ==
  
    // From RDF Schema for YADS

    Resource:     yads-schema-2007-05-17
    Comment:      RDF Schema for YADS - A Description Service
    Author:       Tony Hammond <t.hammond@nature.com>
    Revision:     May 17, 2007 - Tony Hammond
  
  -->
  
  <r:RDF
    xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#"	
    xmlns:s="http://www.w3.org/TR/2000/CR-rdf-schema-20000327#"
  >
  
  <!--
  
    YADS - Classes
  
    YADS implements a simple and predictable recursive data
    model for describing resource collections. The aim is to assist
    in programming complex resource descriptions across multiple
    applications and to foster interoperability between them.
  
    (Resources are entities identified by URIs which can be divided
    into network dereferenceable data objects - including URLs and
    inline resources as provided for by the "data:" scheme - as
    well as non-dereferenceable data objects - including URNs.)
  
    An "Item" object is the basic building block which associates a
    resource with properties. (Note that the resource is actually
    presented as a property of the "Item" object.) "Item" objects are
    aggregated into "Collection" objects which are ultimately managed
    by a toplevel "Nest" parent object. A "Nest" object binds a 
    resource to a resource hierarchy and associates properties with
    the resource/hierarchy association.
  
  -->
  
  <!-- "Item" class -->
  <s:Class r:ID="Item">
    <s:label>Item</s:label>
    <s:comment>Item - Class for any "Item" object which types a blank node
    used to associate a resource or resource hierarchy with properties.</s:comment>
    <s:subClassOf r:resource="http://www.w3.org/TR/2000/CR-rdf-schema-20000327#Object"/>
  </s:Class>
  
  <!-- "Nest" class -->
  <s:Class r:ID="Nest">
    <s:label>Nest</s:label>
    <s:comment>Nest - Class for any "Nest" object which types a blank node
    used to associate a resource with a resource hierarchy and associates
    properties with the resource/hierarchy association.</s:comment>
    <s:subClassOf r:resource="http://www.w3.org/TR/2000/CR-rdf-schema-20000327#Object"/>
  </s:Class>
  
  <!--
  
    YADS - Properties
  
    YADS defines a basic "1+n" properties model for an "Item" and a
    "2+n" properties model for a "Nest".
  
    The one (mandatory) property on each "Item" is a "resource" or
    alternatively - as a resource proxy - a "collection" which attributes
    a "Collection" (a regular RDF Collection) of "Item" objects 
    through which a resource hierarchy can be propagated.

    The two (mandatory) properties on each "Nest" are a "resource" and a
    "collection" which are bound together..
  
    Each "Item" or "Nest" object may have additional qualifying properties
    associated with it.
  
    properties 1 = ("resource" | "collection")         # mandatory, one of
    properties 2 = ("resource" & "collection")         # mandatory, two of
    properties n = { rdf:Property }                    # optional, any of
  
  -->
  
  <!-- First the resource properties -->
  
  <!-- "collection" property -->
  <r:Property r:ID="collection">
    <s:label>collection</s:label>
    <s:comment>collection - Property attributing a "collection" element for
    grouping resources (a Collection).</s:comment>
    <s:range r:resource="http://www.w3.org/TR/2000/CR-rdf-schema-20000327#Collection"/>
    <s:domain r:resource="#Item"/>
    <s:domain r:resource="#Nest"/>
  </r:Property>
  
  <!-- "resource" property -->
  <r:Property r:ID="resource">
    <s:label>resource</s:label>
    <s:comment>resource - Property attributing a "resource" element
    (a Resource).</s:comment>
    <s:range r:resource="http://www.w3.org/TR/2000/CR-rdf-schema-20000327#Resource"/>
    <s:domain r:resource="#Item"/>
    <s:domain r:resource="#Nest"/>
  </r:Property>
  
  <!-- Then the literal properties -->
  
  </r:RDF>