|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.forth.ics.rdfsuite.swkm.model.impl.RDF_Triple
gr.forth.ics.rdfsuite.swkm.model.impl.RDF_PropertyInstance
public class RDF_PropertyInstance
| Field Summary | |
|---|---|
protected int |
column
|
protected int |
line
|
protected static org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
RDF_PropertyInstance(IRDF_Model model,
java.lang.String uri)
|
|
| Method Summary | |
|---|---|
void |
addGraphspace(IRDF_Graphspace graphspace)
Correlates a graphspace to the triple |
boolean |
domain_range_check(IRDF_Model model)
|
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 one of the graphspaces this triple is correlated with |
java.util.HashMap<java.lang.String,IRDF_Graphspace> |
getGraphspaces()
Retrieved the graphspaces this triple is correlated with |
int |
getLine()
Retrieves the line that the resource occured in the input file |
IRDF_Namespace |
getNamespace()
Retrieves the namespace this triples is defined in |
java.lang.Object |
getObject()
The object of the triple |
IRDF_Resource |
getSubject()
The subject of the triple |
java.lang.String |
getURI()
|
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 this triple is correlated with |
void |
setLine(int line)
Sets the line that the resource occured in the input file |
void |
setNamespace(IRDF_Namespace namespace)
Sets the namespace this triple is defined in |
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)
The object of the triple |
void |
setSubject(IRDF_Resource subject)
The subject of the triple |
java.lang.String |
toString()
|
| Methods inherited from class gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Triple |
|---|
getLog, getPredicate, isInferredTriple, setInferredTriple, setPredicate, stringTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gr.forth.ics.rdfsuite.swkm.model.IRDF_Triple |
|---|
getPredicate, isInferredTriple, setInferredTriple, setPredicate |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
protected int line
protected int column
| Constructor Detail |
|---|
public RDF_PropertyInstance(IRDF_Model model,
java.lang.String uri)
throws java.util.NoSuchElementException
model - uri -
java.util.NoSuchElementException - if the property corresponding to the property instance does not exist in the namespace| Method Detail |
|---|
public void addGraphspace(IRDF_Graphspace graphspace)
IRDF_Triple
addGraphspace in interface IRDF_PropertyInstanceaddGraphspace in interface IRDF_TripleaddGraphspace in class RDF_Triplegraphspace - An IRDF_Graphspace objectpublic IRDF_Graphspace getGraphspace(java.lang.String graphspace_uri)
IRDF_Triple
getGraphspace in interface IRDF_PropertyInstancegetGraphspace in interface IRDF_TriplegetGraphspace in class RDF_Triplegraphspace_uri - A String
public java.util.HashMap<java.lang.String,IRDF_Graphspace> getGraphspaces()
IRDF_Triple
getGraphspaces in interface IRDF_PropertyInstancegetGraphspaces in interface IRDF_TriplegetGraphspaces in class RDF_Triplepublic java.lang.Object getObject()
IRDF_Triple
getObject in interface IRDF_PropertyInstancegetObject in interface IRDF_TriplegetObject in class RDF_Triplepublic IRDF_Resource getSubject()
IRDF_Triple
getSubject in interface IRDF_PropertyInstancegetSubject in interface IRDF_TriplegetSubject in class RDF_Triplepublic void setGraphspaces(java.util.HashMap<java.lang.String,IRDF_Graphspace> graphspaces)
IRDF_Triple
setGraphspaces in interface IRDF_PropertyInstancesetGraphspaces in interface IRDF_TriplesetGraphspaces in class RDF_Triplegraphspaces - A HashMappublic void setObject(java.lang.Object object)
IRDF_Triple
setObject in interface IRDF_PropertyInstancesetObject in interface IRDF_TriplesetObject in class RDF_Tripleobject - An IRDF_Resource or IRDF_Literal objectpublic void setSubject(IRDF_Resource subject)
IRDF_Triple
setSubject in interface IRDF_PropertyInstancesetSubject in interface IRDF_TriplesetSubject in class RDF_Triplesubject - An IRDF_Resource objectpublic boolean domain_range_check(IRDF_Model model)
public java.lang.String getURI()
public int getColumn()
IRDF_PropertyInstance
getColumn in interface IRDF_PropertyInstancepublic int getLine()
IRDF_PropertyInstance
getLine in interface IRDF_PropertyInstancepublic void setColumn(int column)
IRDF_PropertyInstance
setColumn in interface IRDF_PropertyInstancecolumn - An intpublic void setLine(int line)
IRDF_PropertyInstance
setLine in interface IRDF_PropertyInstanceline - An intpublic void setNamespace(IRDF_Namespace namespace)
IRDF_Triple
setNamespace in interface IRDF_TriplesetNamespace in class RDF_Triplepublic IRDF_Namespace getNamespace()
IRDF_Triple
getNamespace in interface IRDF_TriplegetNamespace in class RDF_Triplepublic void setNamespacePart(java.lang.String namespacePart)
IRDF_PropertyInstance
setNamespacePart in interface IRDF_PropertyInstancepublic java.lang.String toString()
toString in class RDF_Triplepublic java.util.Collection<IRDF_Property> getAllTypes()
getAllTypes in interface IRDF_PropertyInstancepublic boolean hasTypeOf(IRDF_Property property)
hasTypeOf in interface IRDF_PropertyInstanceproperty - An IRDF_Property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||