Interface WebappDaoFactory
-
- All Known Implementing Classes:
WebappDaoFactoryFiltering,WebappDaoFactoryJena,WebappDaoFactorySDB
public interface WebappDaoFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcheckURI(String uriStr)Checks a URI String for two things: well-formedness and uniqueness in the model.StringcheckURIForEditableEntity(String uriStr)Checks a URI String to see whether it is suitable for use on a new editable entity.voidclose()Free any resources associated with this WebappDaoFactoryApplicationDaogetApplicationDao()List<String>getCommentsForResource(String resourceURI)BJL23 2008-05-20: Putting this here for lack of a more logical place.DataPropertyDaogetDataPropertyDao()returns a Data Access Object for working with DataPropertiesDataPropertyStatementDaogetDataPropertyStatementDao()returns a Data Access Object for working with DatatypePropertyStatementsDatatypeDaogetDatatypeDao()returns a Data Access Object for working with DatatypesStringgetDefaultNamespace()DisplayModelDaogetDisplayModelDao()FauxPropertyDaogetFauxPropertyDao()returns a Data Access Object for working with "faux" ObjectProperties.I18nBundlegetI18nBundle()IndividualDaogetIndividualDao()returns a Data Access Object for working with IndividualsMenuDaogetMenuDao()Set<String>getNonuserNamespaces()ObjectPropertyDaogetObjectPropertyDao()returns a Data Access Object for working with ObjectPropertiesObjectPropertyStatementDaogetObjectPropertyStatementDao()returns a Data Access Object for working with ObjectPropertyStatementsOntologyDaogetOntologyDao()returns a Data Access Object for working with OntologiesPageDaogetPageDao()List<String>getPreferredLanguages()PropertyGroupDaogetPropertyGroupDao()PropertyInstanceDaogetPropertyInstanceDao()UserAccountsDaogetUserAccountsDao()WebappDaoFactorygetUserAwareDaoFactory(String userURI)Copy this DAO factory to a new object associated with the specified user URI, or return the same factory if a user-aware version cannot be used.StringgetUserURI()Return URI of user associated with this WebappDaoFactory, or null if not applicable.VClassDaogetVClassDao()returns a Data Access Object for working with ontology class objectsVClassGroupDaogetVClassGroupDao()booleanhasExistingURI(String uriStr)Check if a given URI string exists in the system: checks for the following conditions: URI found as subject in a statement or an object or as a property
-
-
-
Method Detail
-
close
void close()
Free any resources associated with this WebappDaoFactory
-
checkURI
String checkURI(String uriStr)
Checks a URI String for two things: well-formedness and uniqueness in the model. Ill-formed strings or those matching URIs already in use will cause an error message to be returned.- Returns:
- error message String if invalid; otherwise null
-
checkURIForEditableEntity
String checkURIForEditableEntity(String uriStr)
Checks a URI String to see whether it is suitable for use on a new editable entity. It must be well-formed, and it must not be declared in the model as a Thing, Class, ObjectProperty or DataProperty. Ill-formed strings or those so declared will cause an error message to be returned.- Returns:
- error message String if invalid; otherwise null
-
hasExistingURI
boolean hasExistingURI(String uriStr)
Check if a given URI string exists in the system: checks for the following conditions: URI found as subject in a statement or an object or as a property- Parameters:
uriStr- URI String
-
getDefaultNamespace
String getDefaultNamespace()
-
getCommentsForResource
List<String> getCommentsForResource(String resourceURI)
BJL23 2008-05-20: Putting this here for lack of a more logical place. We need to build better support for the RDFS vocabulary into our API. Returns a list of the simple lexical form strings of the rdfs:comment values for a resource; empty list if none found.
-
getUserAwareDaoFactory
WebappDaoFactory getUserAwareDaoFactory(String userURI)
Copy this DAO factory to a new object associated with the specified user URI, or return the same factory if a user-aware version cannot be used.- Parameters:
userURI- User URI
-
getUserURI
String getUserURI()
Return URI of user associated with this WebappDaoFactory, or null if not applicable.
-
getDataPropertyDao
DataPropertyDao getDataPropertyDao()
returns a Data Access Object for working with DataProperties
-
getDatatypeDao
DatatypeDao getDatatypeDao()
returns a Data Access Object for working with Datatypes
-
getObjectPropertyDao
ObjectPropertyDao getObjectPropertyDao()
returns a Data Access Object for working with ObjectProperties
-
getOntologyDao
OntologyDao getOntologyDao()
returns a Data Access Object for working with Ontologies
-
getVClassDao
VClassDao getVClassDao()
returns a Data Access Object for working with ontology class objects
-
getFauxPropertyDao
FauxPropertyDao getFauxPropertyDao()
returns a Data Access Object for working with "faux" ObjectProperties.
-
getDataPropertyStatementDao
DataPropertyStatementDao getDataPropertyStatementDao()
returns a Data Access Object for working with DatatypePropertyStatements
-
getIndividualDao
IndividualDao getIndividualDao()
returns a Data Access Object for working with Individuals
-
getObjectPropertyStatementDao
ObjectPropertyStatementDao getObjectPropertyStatementDao()
returns a Data Access Object for working with ObjectPropertyStatements
-
getDisplayModelDao
DisplayModelDao getDisplayModelDao()
-
getApplicationDao
ApplicationDao getApplicationDao()
-
getUserAccountsDao
UserAccountsDao getUserAccountsDao()
-
getVClassGroupDao
VClassGroupDao getVClassGroupDao()
-
getPropertyGroupDao
PropertyGroupDao getPropertyGroupDao()
-
getPropertyInstanceDao
PropertyInstanceDao getPropertyInstanceDao()
-
getPageDao
PageDao getPageDao()
-
getMenuDao
MenuDao getMenuDao()
-
getI18nBundle
I18nBundle getI18nBundle()
-
-