ch.hearc.I04_05s08.Ontology.RDF
Class InstanceOfProperty

java.lang.Object
  extended bych.hearc.I04_05s08.Ontology.RDF.Instance
      extended bych.hearc.I04_05s08.Ontology.RDF.InstanceOfProperty

public class InstanceOfProperty
extends Instance

A RDF Resource that represent a property of a Class

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

Field Summary
private  InstanceOfClass propertyOf
          The element that this property is applied
static String type
          URI of the RDF#type
private  InstanceOfClass value
          Value of the property
 
Fields inherited from class ch.hearc.I04_05s08.Ontology.RDF.Instance
 
Constructor Summary
InstanceOfProperty(InstanceOfProperty iop)
          Make this instance of copy of another
InstanceOfProperty(RdfsProperty prop)
          Construct an instance of the prop that belong to propOf
InstanceOfProperty(String prop)
          Construct an instance of the prop that belong to an unknowned Property
 
Method Summary
private  boolean checkDomain(InstanceOfClass c)
          Check the conjunction of domains and the class
private  boolean checkRange(InstanceOfClass c)
          Check the conjunction of ranges and the class
 Object clone()
          Build a clone
 InstanceOfClass getProperty()
          Get the value of the property
 InstanceOfClass getPropertyOf()
          Get the instance of the class is this property applied
 boolean setProperty(InstanceOfClass value)
          Set the value of the property
 boolean setPropertyOf(InstanceOfClass propertyOf)
          Set the value of the property
 String toString()
          String representation
 
Methods inherited from class ch.hearc.I04_05s08.Ontology.RDF.Instance
getName, getResource, getShortName, getShortValue, getValue, isInstance, setName, setResource, setValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyOf

private InstanceOfClass propertyOf
The element that this property is applied


value

private InstanceOfClass value
Value of the property


type

public static final String type
URI of the RDF#type

See Also:
Constant Field Values
Constructor Detail

InstanceOfProperty

public InstanceOfProperty(RdfsProperty prop)
Construct an instance of the prop that belong to propOf

Parameters:
prop - Property instancied

InstanceOfProperty

public InstanceOfProperty(String prop)
Construct an instance of the prop that belong to an unknowned Property

Parameters:
prop - Property instancied

InstanceOfProperty

public InstanceOfProperty(InstanceOfProperty iop)
Make this instance of copy of another

Parameters:
iop - the instance copied
Method Detail

clone

public Object clone()
Build a clone

Returns:
a clone

toString

public String toString()
String representation

Returns:
string representation

setProperty

public boolean setProperty(InstanceOfClass value)
Set the value of the property

Parameters:
value - the value that would be applied to Property
Returns:
if the value could be applied

getProperty

public InstanceOfClass getProperty()
Get the value of the property

Returns:
the property's value

setPropertyOf

public boolean setPropertyOf(InstanceOfClass propertyOf)
Set the value of the property

Parameters:
propertyOf - the value that would be applied to Property
Returns:
if the value could be applied

getPropertyOf

public InstanceOfClass getPropertyOf()
Get the instance of the class is this property applied

Returns:
the class's instance of this property

checkDomain

private boolean checkDomain(InstanceOfClass c)
Check the conjunction of domains and the class

Parameters:
c - the class to be checked
Returns:
if the class respect the conjuction of domains' property

checkRange

private boolean checkRange(InstanceOfClass c)
Check the conjunction of ranges and the class

Parameters:
c - the class to be checked
Returns:
if the class respect the conjuction of ranges' property


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