ch.hearc.I04_05s08.Ontology.RDFS
Class RdfsProperty

java.lang.Object
  extended bych.hearc.I04_05s08.Ontology.RDFS.RdfsResource
      extended bych.hearc.I04_05s08.Ontology.RDFS.RdfsProperty

public class RdfsProperty
extends RdfsResource

A Property for a rdfs:class

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

Field Summary
private  LinkedList domain
          Classes that the property is applied
private  LinkedList range
          Classes that the property can contain
private  LinkedList subPropertyOf
          Properties from this is extended
 
Fields inherited from class ch.hearc.I04_05s08.Ontology.RDFS.RdfsResource
 
Constructor Summary
RdfsProperty(RdfsProperty p)
          A new property from another one
RdfsProperty(String name)
          Minimal constructor
RdfsProperty(String name, String label)
          Minimal recommended constructor
RdfsProperty(String name, String label, String comment)
          Full constructor
 
Method Summary
 boolean addDomain(RdfsClass d)
          Add a domain
 boolean addRange(RdfsClass r)
          Add a range
 boolean addSupProperty(RdfsProperty p)
          Add a superProperty
 Object clone()
          Clone this property
 boolean delDomain(RdfsClass d)
          Remove a specified domain from the property
 boolean delRange(RdfsClass r)
          Remove a specified range from the property
 boolean delSupProperty(RdfsProperty p)
          Dereference a superProperty
 RdfsClass[] getDomain()
          Return the domain of the Property
 RdfsClass[] getRange()
          Return the range of the Property
 RdfsProperty[] getSupProperties()
          Return the subProperty of the Property is
private  void init()
          Build the object of Property
 String toString()
          String representation of the property
 
Methods inherited from class ch.hearc.I04_05s08.Ontology.RDFS.RdfsResource
copyList, equals, getComment, getLabel, getName, getShortName, setComment, setLabel, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

domain

private LinkedList domain
Classes that the property is applied

See Also:
w3c

range

private LinkedList range
Classes that the property can contain

See Also:
w3c

subPropertyOf

private LinkedList subPropertyOf
Properties from this is extended

See Also:
w3c
Constructor Detail

RdfsProperty

public RdfsProperty(String name)
Minimal constructor


RdfsProperty

public RdfsProperty(String name,
                    String label)
Minimal recommended constructor


RdfsProperty

public RdfsProperty(String name,
                    String label,
                    String comment)
Full constructor


RdfsProperty

public RdfsProperty(RdfsProperty p)
A new property from another one

Parameters:
p - Property source
Method Detail

clone

public Object clone()
Clone this property

Specified by:
clone in class RdfsResource
Returns:
a clone of this

init

private void init()
Build the object of Property


toString

public String toString()
String representation of the property

Overrides:
toString in class RdfsResource
Returns:
property, subproperties, domains and ranges

getDomain

public RdfsClass[] getDomain()
Return the domain of the Property

Returns:
the domain of the Property

addDomain

public boolean addDomain(RdfsClass d)
Add a domain

Parameters:
d - new domain

delDomain

public boolean delDomain(RdfsClass d)
Remove a specified domain from the property

Parameters:
d - domain that will be removed

getRange

public RdfsClass[] getRange()
Return the range of the Property

Returns:
the range of the Property

addRange

public boolean addRange(RdfsClass r)
Add a range

Parameters:
r - new range

delRange

public boolean delRange(RdfsClass r)
Remove a specified range from the property

Parameters:
r - range that will be removed

getSupProperties

public RdfsProperty[] getSupProperties()
Return the subProperty of the Property is

Returns:
the subProperty

addSupProperty

public boolean addSupProperty(RdfsProperty p)
Add a superProperty

Parameters:
p - new subProperty

delSupProperty

public boolean delSupProperty(RdfsProperty p)
Dereference a superProperty

Parameters:
p - subProperty that will be dereferenced


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