|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRDF_Resource
Resource is the base class of our internal model and represents any RDF node, like class,property,class instance or container. Every Resource is described by a URI which is a unique identifier. The URI has a local name and a namespace. With each resource,four default properties are attached namely seeAlso,label,comment,isDefinedBy
| Method Summary | |
|---|---|
java.util.Collection<IRDF_Resource> |
getAllTypes(IRDF_Model model)
Retrieves all types of this resource recursively |
int |
getColumn()
Retrieves the column that the resource occured in the input file |
java.util.Collection<IRDF_Literal> |
getComments()
Retrieves all the Comments defined for this RDF_Resource |
java.util.Collection<IRDF_Comment> |
getCommentsTriples()
Retrieves all the RDF_Comment triples defined for this RDF_Resource |
java.util.Collection<IRDF_Resource> |
getIsDefinedBys()
Retrieves all the isDefinedBys defined for this RDF_Resource |
java.util.Collection<IRDF_IsDefinedBy> |
getIsDefinedBysTriples()
Retrieves all the RDF_IsDefinedBy triples defined for this RDF_Resource |
java.util.Collection<IRDF_Literal> |
getLabels()
Retrieves all the labels defined for this RDF_Resource |
java.util.Collection<IRDF_Label> |
getLabelsTriples()
Retrieves all the RDF_Label triples defined for this RDF_Resource |
int |
getLine()
Retrieves the line that the resource occured in the input file |
java.lang.String |
getLocalName()
Retrieves the local name of the specified Resource,that is - if exists - the part that is after #.In any other case it returns an empty string |
IRDF_Namespace |
getNamespace()
Retrieves the namespace this resource belongs to |
java.lang.String |
getNamespacePart()
Retrieves the namespace part of the URI of the specified Resource. |
java.util.Collection<IRDF_Resource> |
getSeeAlsos()
Adds an label for this IRDF_Resource |
java.util.Collection<IRDF_SeeAlso> |
getSeeAlsosTriples()
Retrieves all the RDF_SeeAlso triples defined for this RDF_Resource |
java.util.Collection<IRDF_Resource> |
getTypes()
Retrieves the types defined for this resource from the model (Depending to the resource its type may be a metaclass, a class or a property) |
java.util.Collection<IRDF_Type> |
getTypesTriples()
Retrieves the type triples defined for this resource from the model |
java.lang.String |
getURI()
Composes the namespace of the Resource from the namespace uri and the local name |
boolean |
hasTypeOf(IRDF_Model model,
IRDF_Class rdf_class)
Tells whether a class is a type class of this resource |
void |
setColumn(int column)
Sets the column that the resource occured in the input file |
void |
setLine(int line)
Sets the line that the resource occured in the input file |
void |
setLocalName(java.lang.String localName)
Sets the local name for the specified resource in case the full URI is not known |
void |
setNamespace(IRDF_Namespace namespace)
Sets the namespace this resource belongs to |
void |
setURI(java.lang.String uri)
Sets the URI of the specified Resource. |
java.lang.String |
toString()
|
| Method Detail |
|---|
IRDF_Namespace getNamespace()
void setNamespace(IRDF_Namespace namespace)
namespace - An IRDF_Namespace objectjava.lang.String getURI()
getURI in interface Identifiablevoid setURI(java.lang.String uri)
setURI in interface Identifiableuri - The URI to be set to the Resourcejava.lang.String getLocalName()
void setLocalName(java.lang.String localName)
java.lang.String getNamespacePart()
java.util.Collection<IRDF_Comment> getCommentsTriples()
java.util.Collection<IRDF_Label> getLabelsTriples()
java.util.Collection<IRDF_SeeAlso> getSeeAlsosTriples()
java.util.Collection<IRDF_IsDefinedBy> getIsDefinedBysTriples()
java.util.Collection<IRDF_Type> getTypesTriples()
IRDF_Model - the model in which the resource is defined
java.util.Collection<IRDF_Literal> getComments()
java.util.Collection<IRDF_Literal> getLabels()
java.util.Collection<IRDF_Resource> getSeeAlsos()
label - An IRDF_Literal object
public void addLabel(IRDF_Literal label);
/**
Retrieves all the see alsos defined for this RDF_Resource
java.util.Collection<IRDF_Resource> getIsDefinedBys()
java.util.Collection<IRDF_Resource> getTypes()
model - IRDF_Model
void setLine(int line)
line - An intint getLine()
void setColumn(int column)
column - An intint getColumn()
boolean hasTypeOf(IRDF_Model model,
IRDF_Class rdf_class)
rdf_class - The candidate type class
java.util.Collection<IRDF_Resource> getAllTypes(IRDF_Model model)
model -
java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||