nesstar.rdf
Interface RDFObj

All Known Implementing Classes:
Agreement, AgreementHome, AType, BasicObj, BooleanType, Catalog, Catalog, CatalogHome, CatalogHome, Category, CategoryStatistic, CategoryStatisticHome, CodeList, CodeListHome, CollectionType, Concept, ConceptHome, Cube, CubeHome, Datafile, DatafileHome, Dataset, DatasetEx, DatasetHome, DBSearchEx, DCResource, DCResourceHome, Dimension, DimensionHome, DoubleType, EGMSResource, EGMSResource2, EGMSResource2Ex, EGMSResource2Home, EGMSResourceHome, Event, EventHome, Explore, ExploreCube, ExploreCubeOp, ExploreEx, ExploreOp, Explorer, ExplorerHome, ExplorerOp, Factsheet, FactsheetHome, FileType, FloatType, FolderEx, GeoConcept, GeoConceptHome, GeographicalUnit, GeographicalUnitHome, IntegerType, IPISDataset, IPISDatasetHome, Learn, LearnOp, Measure, MeasureHome, Method, MethodInvocation, NSDStatEngine, NSDStatEngineHome, NSMethod, NSParameter, ObjectType, Operation, Organisation, OrganisationHome, PasswordType, Person, PersonHome, Project, ProjectHome, Purpose, PurposeHome, Range, RangeHome, RDFBag, RDFClass, RDFObject, RDFProperty, Resource, ResourceHome, Role, RoleHome, Row, RowHome, Search, SearchEx, SearchOp, Section, SectionHome, Series, SeriesHome, Server, Server, ServerEx, ServerHome, ServerHome, SimpleVariable, Statement, StatementHome, StatFormat, StatFormatHome, StringType, Study, Study2, Study2Home, Study3, Study3Home, StudyHome, Survey, SurveyHome, Table, TableHome, Term, TermHome, TestExploreCubeOp, TestTrendOp, Trend, TrendOp, Type, TypeHome, URLType, User, User, UserHome, Value, ValueDomain, ValueDomainHome, ValueHome, Variable, Variable, Variable2, Variable2Home, VariableGroup, VariableGroupHome, VariableHome, VariableHome, VoidType

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:

Objects that implement RDFObj can have both 'hard' and 'soft' properties.

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).

Created:
26 April 2002

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

getID

URL getID()
Returns:
the immutable ID of the object

setID

void setID(URL id)
           throws Exception
Set the object ID.

Parameters:
id - the id
Throws:
Exception - should throw an exception if the ID has already been set

getDB

RDFDB getDB()
Returns:
the DB that contains the object

setDB

void setDB(RDFDB db)
Set the DB into which the object is stored.

Parameters:
db - The new dB value

getType

RDFClass getType()
                 throws Exception
Returns the class/type for this object BUG: an RDF obj can have multiple classes

Returns:
The type value
Throws:
Exception

setType

void setType(RDFClass s)

getBindings

Collection getBindings()
Returns:
additional 'soft' properties

set

void set(RDFProperty property,
         Object value)

get

Object get(RDFProperty property)
           throws Exception
Throws:
Exception

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved