|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RDFObj
An RDF Object.
Each RDFObj represent an Internet resource (an HTML page, an object on a Nesstar Publisher, etc.).
Each RDFObj has:
Hard properties are defined by couple of methods of the form: set_propertyName() and get_propertyName().
Soft properties are not declared explicitly and can be set and accessed
using set(RDFProperty,Object), get(RDFProperty) and getBindings().
Each RDFObj is stored in a local db (an instance of RDFDB).
| Method Summary | |
|---|---|
Object |
get(RDFProperty property)
|
Collection |
getBindings()
|
RDFDB |
getDB()
|
URL |
getID()
|
RDFClass |
getType()
Returns the class/type for this object BUG: an RDF obj can have multiple classes |
void |
set(RDFProperty property,
Object value)
|
void |
setDB(RDFDB db)
Set the DB into which the object is stored. |
void |
setID(URL id)
Set the object ID. |
void |
setType(RDFClass s)
|
| Method Detail |
|---|
URL getID()
void setID(URL id)
throws Exception
id - the id
Exception - should throw an exception if the ID has already been
setRDFDB getDB()
void setDB(RDFDB db)
db - The new dB value
RDFClass getType()
throws Exception
Exceptionvoid setType(RDFClass s)
Collection getBindings()
void set(RDFProperty property,
Object value)
Object get(RDFProperty property)
throws Exception
Exception
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||