ch.hearc.I04_05s08.Ontology.RDFS
Class RdfsResource

java.lang.Object
  extended bych.hearc.I04_05s08.Ontology.RDFS.RdfsResource
Direct Known Subclasses:
RdfsClass, RdfsProperty

public abstract class RdfsResource
extends Object

Class that represent a Resource. Every Classes of any RDFS is a sub classe of it.

Author:
Blanc, Yoan
See Also:
w3c
Licence:
MIT
Copyright:
2005 Yoan Blanc, HE-ARC Ing�nierie

Field Summary
private  String comment
          Description of resource's name
private  String label
          A human-readable version of resource's name
private  String name
          Name of the resource (rdf:about)
 
Constructor Summary
RdfsResource(RdfsResource r)
          Build a new resource from a another
RdfsResource(String name)
          Minimal constructor with the name only
RdfsResource(String name, String label)
          Minimal constructor recommanded
RdfsResource(String name, String label, String comment)
          Full constructor recommanded
 
Method Summary
abstract  Object clone()
          Clone the Resource
static LinkedList copyList(LinkedList source)
          Copy a LinkedList into a new List
 boolean equals(RdfsResource resource)
          If the resource is the same as this one
 String getComment()
          Get the comment of the resource
 String getLabel()
          Get the label of the resource
 String getName()
          Get the name of the resource
 String getShortName()
          Get the short name
private  void init(String name, String label, String comment)
          Init the Resource
 void setComment(String comment)
          Set the comment of the resource
 void setLabel(String label)
          Set the label of the resource
 void setName(String name)
          Set the name of the resource
 String toString()
          String representation of the Resource
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private String name
Name of the resource (rdf:about)


label

private String label
A human-readable version of resource's name

See Also:
w3c

comment

private String comment
Description of resource's name

See Also:
w3c
Constructor Detail

RdfsResource

public RdfsResource(String name)
Minimal constructor with the name only

Parameters:
name - the resource's name

RdfsResource

public RdfsResource(String name,
                    String label)
Minimal constructor recommanded

Parameters:
name - the resource's name
label - human readable name

RdfsResource

public RdfsResource(String name,
                    String label,
                    String comment)
Full constructor recommanded

Parameters:
name - the resource's name
label - human readable name
comment - description

RdfsResource

public RdfsResource(RdfsResource r)
Build a new resource from a another

Parameters:
r - resource source
Method Detail

toString

public String toString()
String representation of the Resource

Returns:
name, label and comment

clone

public abstract Object clone()
Clone the Resource

Returns:
a copy

getName

public String getName()
Get the name of the resource

Returns:
name of the resource

setName

public void setName(String name)
Set the name of the resource

Parameters:
name - name of the resource

getShortName

public String getShortName()
Get the short name

Returns:
the short name of the Resource

setLabel

public void setLabel(String label)
Set the label of the resource

Parameters:
label - human readable name

getLabel

public String getLabel()
Get the label of the resource

Returns:
human readable name

setComment

public void setComment(String comment)
Set the comment of the resource

Parameters:
comment - description

getComment

public String getComment()
Get the comment of the resource

Returns:
description

init

private void init(String name,
                  String label,
                  String comment)
Init the Resource

Parameters:
label -
comment -

copyList

public static LinkedList copyList(LinkedList source)
Copy a LinkedList into a new List

Parameters:
source - LinkedList of source
Returns:
copy of the LinkedList source

equals

public boolean equals(RdfsResource resource)
If the resource is the same as this one

Parameters:
resource - a resource
Returns:
if it's the same resource


A project by Blanc, Yoan – supervised by Dr. Ghorbel, Hatem.
2004 © Blanc, Yoan - HE-ARC