Interface WebappDaoFactory

    • 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()
      • getNonuserNamespaces

        Set<String> getNonuserNamespaces()
      • getPreferredLanguages

        List<String> getPreferredLanguages()
      • 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