gr.forth.ics.rdfsuite.swkm.model
Interface IRDF_PropertyInstance

All Superinterfaces:
IRDF_Triple
All Known Implementing Classes:
RDF_PropertyInstance

public interface IRDF_PropertyInstance
extends IRDF_Triple

A Class in the schema


Method Summary
 void addGraphspace(IRDF_Graphspace graphspace)
          Correlates this property instance to this graphspace
 java.util.Collection<IRDF_Property> getAllTypes()
          Returns a Collection of all properties whose this property instance can be considered an instance
 int getColumn()
          Retrieves the column that the resource occured in the input file
 IRDF_Graphspace getGraphspace(java.lang.String graphspace_uri)
          Retrieves a graphspace correlated to this property instance
 java.util.HashMap<java.lang.String,IRDF_Graphspace> getGraphspaces()
          Retrieves the graphspaces this property instance is correlated with
 int getLine()
          Retrieves the line that the resource occured in the input file
 java.lang.Object getObject()
          Retrieves the object of this property instance
 IRDF_Resource getSubject()
          Retrieves the subject of this property instance.
 boolean hasTypeOf(IRDF_Property property)
          Tells whether this property instance is instance of this property directly or indirectly
 void setColumn(int column)
          Sets the column that the resource occured in the input file
 void setGraphspaces(java.util.HashMap<java.lang.String,IRDF_Graphspace> graphspaces)
          Sets the graphspaces thi property instance is correlated with
 void setLine(int line)
          Sets the line that the resource occured in the input file
 void setNamespacePart(java.lang.String namespacePart)
          Sets the namespace part of the uri (perhaps implicitly obtained from the Namespace object part of which is the resource)
 void setObject(java.lang.Object object)
          Sets the object of this property instance
 void setSubject(IRDF_Resource subject)
          Sets the subject of this property instance It can be any RDF_Resource like an RDF_Class,an RDF_Property an RDF_ClassInstance and so forth
 
Methods inherited from interface gr.forth.ics.rdfsuite.swkm.model.IRDF_Triple
getNamespace, getPredicate, isInferredTriple, setInferredTriple, setNamespace, setPredicate
 

Method Detail

getSubject

IRDF_Resource getSubject()
Retrieves the subject of this property instance. It can be any RDF_Resource like an RDF_Class,an RDF_Property an RDF_ClassInstance and so forth

Specified by:
getSubject in interface IRDF_Triple
Returns:
An IRDF_Resource object

setSubject

void setSubject(IRDF_Resource subject)
Sets the subject of this property instance It can be any RDF_Resource like an RDF_Class,an RDF_Property an RDF_ClassInstance and so forth

Specified by:
setSubject in interface IRDF_Triple
Parameters:
subject - An IRDF_Resource

getObject

java.lang.Object getObject()
Retrieves the object of this property instance

Specified by:
getObject in interface IRDF_Triple
Returns:
Either an IRDF_Resource or an IRDF_Literal

setObject

void setObject(java.lang.Object object)
Sets the object of this property instance

Specified by:
setObject in interface IRDF_Triple
Parameters:
object - Either an IRDF_Resource or an IRDF_Literal

addGraphspace

void addGraphspace(IRDF_Graphspace graphspace)
Correlates this property instance to this graphspace

Specified by:
addGraphspace in interface IRDF_Triple
Parameters:
graphspace - An IRDF_Graphspace

setGraphspaces

void setGraphspaces(java.util.HashMap<java.lang.String,IRDF_Graphspace> graphspaces)
Sets the graphspaces thi property instance is correlated with

Specified by:
setGraphspaces in interface IRDF_Triple
Parameters:
graphspaces - A HashMap

getGraphspaces

java.util.HashMap<java.lang.String,IRDF_Graphspace> getGraphspaces()
Retrieves the graphspaces this property instance is correlated with

Specified by:
getGraphspaces in interface IRDF_Triple
Returns:
A HashMap

getGraphspace

IRDF_Graphspace getGraphspace(java.lang.String graphspace_uri)
Retrieves a graphspace correlated to this property instance

Specified by:
getGraphspace in interface IRDF_Triple
Parameters:
graphspace_uri - A String
Returns:
An IRDF_Graphspace

setNamespacePart

void setNamespacePart(java.lang.String namespacePart)
Sets the namespace part of the uri (perhaps implicitly obtained from the Namespace object part of which is the resource)

Parameters:
namespacePart -

setLine

void setLine(int line)
Sets the line that the resource occured in the input file

Parameters:
line - An int

getLine

int getLine()
Retrieves the line that the resource occured in the input file

Returns:
An int

setColumn

void setColumn(int column)
Sets the column that the resource occured in the input file

Parameters:
column - An int

getColumn

int getColumn()
Retrieves the column that the resource occured in the input file

Returns:
An int

hasTypeOf

boolean hasTypeOf(IRDF_Property property)
Tells whether this property instance is instance of this property directly or indirectly

Parameters:
property - An IRDF_Property
Returns:
true if this property instance is instance (directly or implicitly) of this instance

getAllTypes

java.util.Collection<IRDF_Property> getAllTypes()
Returns a Collection of all properties whose this property instance can be considered an instance

Returns:
A Collection of objects IRDF_Property