<?xml version="1.0"?>

<!-- **********************************************************  -->
<!-- ***   Ontology for Virtual Computing Lab(VCL) image    ***  --> 
<!-- ***    created by Karuna P Joshi May 17 2012           ***  --> 
<!-- ***    copyright Karuna P Joshi, UMBC 2012             ***  --> 
<!-- **********************************************************  -->

<rdf:RDF
    xmlns="http://www.cs.umbc.edu/~kjoshi1/VCLImage.owl#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:protege="http://protege.stanford.edu/plugins/owl/protege#"
    xmlns:xsp="http://www.owl-ontologies.com/2005/08/07/xsp.owl#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:swrl="http://www.w3.org/2003/11/swrl#"
    xmlns:swrlb="http://www.w3.org/2003/11/swrlb#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xml:base="http://www.cs.umbc.edu/~kjoshi1/VCLImage.owl">
  <owl:Ontology rdf:about=""/>
  <owl:Class rdf:ID="VCLImage">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    ></rdfs:comment>
  </owl:Class>
  <owl:DatatypeProperty rdf:ID="description">
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:comment xml:lang="en">description of image displayed on new reservations page</rdfs:comment>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="maxconcurrent">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
    <rdfs:comment xml:lang="en">maximum concurrent reservations that can be made for image</rdfs:comment>
    <rdfs:domain rdf:resource="#VCLImage"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="OwnerID">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >reference to user.id - owner of image</rdfs:comment>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="project">
    <rdfs:range>
      <owl:DataRange>
        <owl:oneOf rdf:parseType="Resource">
          <rdf:rest rdf:parseType="Resource">
            <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
            >hpc</rdf:first>
            <rdf:rest rdf:parseType="Resource">
              <rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
              <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
              >vclhpc</rdf:first>
            </rdf:rest>
          </rdf:rest>
          <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
          >vcl</rdf:first>
        </owl:oneOf>
      </owl:DataRange>
    </rdfs:range>
    <rdfs:domain rdf:resource="#VCLImage"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="maxinitialtime">
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#time"/>
    <rdfs:comment xml:lang="en">maximum initial time the image can be reserved</rdfs:comment>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="reloadtime">
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
    <rdfs:comment xml:lang="en">reload time of image</rdfs:comment>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="imagemetaid">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >reference to imagemeta.id - NULL or id from imagemeta table where  additional image information is stored</rdfs:comment>
    <rdfs:domain rdf:resource="#VCLImage"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="PlatformID">
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >reference to platform.id - platform of image</rdfs:comment>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="minprocspeed">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:comment xml:lang="en">minimum processor speed required by image in MHz</rdfs:comment>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="size">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >size of the image in MB</rdfs:comment>
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="basedoffrevisionid">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:comment xml:lang="en">reference to imagerevision.id - image revision this image was based off of</rdfs:comment>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="prettyname">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >name of image that is displayed to users</rdfs:comment>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="minprocnumber">
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:comment xml:lang="en">minimum number of cores required by image</rdfs:comment>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="usage">
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:comment xml:lang="en">notes on how to use image displayed on Connect page</rdfs:comment>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="architecture">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >architecture of image</rdfs:comment>
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:range>
      <owl:DataRange>
        <owl:oneOf rdf:parseType="Resource">
          <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
          >x86</rdf:first>
          <rdf:rest rdf:parseType="Resource">
            <rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
            <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
            >x86_64</rdf:first>
          </rdf:rest>
        </owl:oneOf>
      </owl:DataRange>
    </rdfs:range>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="forcheckout">
    <rdfs:comment xml:lang="en">flag to tell if the image should show up in the list of images on the new reservations page - this is designed to be used for subimages in  clusters where the subimages should not be directly reserved.</rdfs:comment>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#boolean"/>
    <rdfs:domain rdf:resource="#VCLImage"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="minnetwork">
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
    <rdfs:comment xml:lang="en">minimum (public?) network speed required by image in Mbps</rdfs:comment>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="deleted">
    <rdfs:range>
      <owl:DataRange>
        <owl:oneOf rdf:parseType="Resource">
          <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#int"
          >1</rdf:first>
          <rdf:rest rdf:parseType="Resource">
            <rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
            <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#int"
            >0</rdf:first>
          </rdf:rest>
        </owl:oneOf>
      </owl:DataRange>
    </rdfs:range>
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:comment xml:lang="en">flag to show if image has been deleted - 1 if deleted, 0 if not</rdfs:comment>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="OSid">
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >reference to OS.id - OS of image</rdfs:comment>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="minram">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:comment xml:lang="en">minimum RAM required for this image in MB</rdfs:comment>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="lastupdate">
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#dateTime"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >date/time image was last updated</rdfs:comment>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="Name">
    <rdfs:comment xml:lang="en">system name of image</rdfs:comment>
    <rdfs:domain rdf:resource="#VCLImage"/>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="ID">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >ID of entry</rdfs:comment>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:domain rdf:resource="#VCLImage"/>
  </owl:DatatypeProperty>
</rdf:RDF>

<!-- Created with Protege (with OWL Plugin 3.4.7, Build 620)  http://protege.stanford.edu -->
