de.uplanet.lucy.server.auxiliaries
Class RDFCallable

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.RDFCallable

@VelocityCallable(value="singleton")
public class RDFCallable
extends java.lang.Object

Version:
$Revision: 76897 $

Constructor Summary
RDFCallable()
           
 
Method Summary
 RDFPredicateValue createPredicateValue(java.lang.String p_strPredicate, java.lang.String p_strValue)
          Create a new predicate value.
 void editTagForAllUsers(RDFPredicateValue p_strPredicate, java.lang.String p_strNewTagName, de.uplanet.jdbc.JdbcConnection p_conn)
          Edit a Tag, updates all fields of the lcrdf table where the tag occurs
 void editTagForAllUsersInApplication(RDFPredicateValue p_strPredicate, java.lang.String p_strNewTagName, java.lang.String p_strAppGuid, de.uplanet.jdbc.JdbcConnection p_conn)
          Edit a Tag, updates all fields of the lcrdf table where the tag occurs
 java.util.Map<java.lang.Integer,java.lang.Integer> getAllTaggers(de.uplanet.jdbc.JdbcConnection p_conn)
          Returns a map of all taggers containing the user id as a key and the count of tags of the tagger as value.
 TaggedURI[] getAppTaggedUris(java.lang.String p_strTag, java.lang.String p_strAppGuid, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns an array of tagged uris for the specified tag and application.
 TaggedURI[] getAppTaggedUserUris(java.lang.String p_strTag, java.lang.String p_strAppGuid, int p_iTaggerId, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns an array of tagged uris for the specified tag and application.
 java.util.Map<java.lang.Integer,java.lang.Integer> getAppTaggers(java.lang.String p_strAppGuid, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns the map of taggers of the specified application
 Tag[] getAppTags(java.lang.String p_strAppGuid, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns an array of all tags assigned to the specified application.
 WeightedTag[] getAppTagsWeighted(java.lang.String p_strAppGuid, int p_iUser, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns an weighted array of all tags assigned to the specified application by the specified user.
 WeightedTag[] getAppTagsWeighted(java.lang.String p_strAppGuid, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns an weighted array of all tags assigned to the specified application.
 Tag[] getAppUserPredicates(java.lang.String p_strAppGuid, int p_iUserId, de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strPredicate)
          Returns an array of all tags assigned to the specified application.
 int getCloudCalculation(int p_a, int p_b, int p_sum, int p_tagcount)
           
 java.util.List<java.lang.String> getFilteredTags(java.lang.String p_strTagNameFilter, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns an array of all tags with a value like the p_strTagNameFilter
 java.lang.String getFirstElement(java.util.List<java.lang.String> p_list, java.lang.String p_strDefault)
           
 java.lang.String getFirstPredicateValue(java.util.List<TaggedURI.TaggedURIPredicateValue> p_list, java.lang.String p_strDefault)
           
 java.util.List<java.lang.String> getPredicateValues(IServerBridgeRequest p_request, java.lang.String p_strAppGuid, java.lang.String p_strTargetGuid, int p_iRecId, java.lang.String p_strPredicateName, int p_iUserId, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns the values of the specified predicate for the ressource specified by the given parameters and defined by the specified user.
 java.util.Map<java.lang.String,java.lang.String> getPredicateValues(java.lang.String p_strPredicateName, int p_iUserId, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns the subjects and values of the specified predicate for the given user id
 java.util.List<java.lang.String> getPredicateValues(java.lang.String p_strURI, java.lang.String p_strPredicateName, int p_iUserId, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns the values of the specified predicate for the given URI and user.
 java.util.List<java.lang.String> getPredicateValues(java.lang.String p_strAppGuid, java.lang.String p_strTargetGuid, int p_iRecId, java.lang.String p_strPredicateName, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns the values of the specified predicate for the ressource specified by the given parameters.
 java.util.List<java.lang.String> getPredicateValues(java.lang.String p_strURI, java.lang.String p_strPredicateName, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns the values of the specified predicate for the given URI
 int getStarsAverage(java.util.List<TaggedURI.TaggedURIPredicateValue> p_stars)
           
 int getTaggedSubjectCount(de.uplanet.jdbc.JdbcConnection p_conn)
          Returns the count of tagged subjects.
 int getTaggedSubjectCount(java.lang.String p_strURILeftFragment, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns the count of tagged subject matching the specified URI fragment.
 TaggedURI[] getTaggedUris(java.lang.String p_strTag, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns an array of tagged uris for the specified tag.
 java.util.Map<java.lang.Integer,java.lang.Integer> getTaggers(java.lang.String p_strURI, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns the list of the taggers of the specified ressource
 java.lang.String getTagOutput(java.util.List<java.lang.String> p_list, java.lang.String p_strDelimiter, java.lang.String p_strDefault)
           
 java.lang.String getTagOutputFromPredicate(java.util.List<TaggedURI.TaggedURIPredicateValue> p_list, java.lang.String p_strDelimiter, java.lang.String p_strDefault)
           
 Tag[] getTags(de.uplanet.jdbc.JdbcConnection p_conn)
          Returns an array of all tags known by the system.
 WeightedTag[] getTagsWeighted(de.uplanet.jdbc.JdbcConnection p_conn)
          Returns an array of all weighted tags known by the system.
 java.util.List<WeightedTag> getTagsWeighted(java.util.List<java.lang.String> p_tags)
          Convert the given list of strings to a list of weighted tags using a standard comparator that performs a simple case-insensitive comparison to determine the identity of the tags, and to sort the resulting list.
 java.util.List<WeightedTag> getTagsWeighted(java.util.List<java.lang.String> p_tags, java.util.Comparator<java.lang.String> p_comparator)
          Convert the given list of strings to a list of weighted tags using the given comparator to determine the identity of the tags, and to sort the resulting list.
 java.lang.String getUrl(IServerBridgeRequest p_request, java.lang.String p_strSubject, java.lang.String p_strTemplateKey)
           
 TaggedURI[] getUserTaggedUris(int p_iUserId, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns an array of all uris tagged by the specified user.
 TaggedURI[] getUserTaggedUris(java.lang.String p_strTag, int p_iUser, de.uplanet.jdbc.JdbcConnection p_conn)
          Returns an array of uris tagged by the specified user.
 WeightedTag[] getUserTagsWeighted(de.uplanet.jdbc.JdbcConnection p_conn, int p_lUserId)
          Returns an array of all weighted tags known by the system from a single user.
 void removeAllPredicates(RDFPredicateValue p_predicate, de.uplanet.jdbc.JdbcConnection p_conn)
          Removes the user's references for the specified predicates and values from the rdf user table.
 void removeAllPredicatesInApplication(RDFPredicateValue p_predicate, java.lang.String p_strAppGuid, de.uplanet.jdbc.JdbcConnection p_conn)
           
 void removeUserPredicates(java.lang.String p_strSubject, de.uplanet.jdbc.JdbcConnection p_conn)
          Removes the user's references from the rdf user table.
 void removeUserPredicates(java.lang.String p_strSubject, java.util.List<RDFPredicateValue> p_predicates, de.uplanet.jdbc.JdbcConnection p_conn)
          Removes the user's references for the specified predicates and values from the rdf user table.
 void removeUserPredicates(java.lang.String p_strSubject, java.util.List<RDFPredicateValue> p_predicates, de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId)
          Removes a given user's references for the specified predicates and values from the rdf user table.
 RDFSearchResultSet search(java.lang.String p_strSearchQuery, de.uplanet.jdbc.JdbcConnection p_conn)
          Search for tags.
 RDFSearchResultSet search(java.lang.String p_strSearchQuery, java.lang.String p_strAppGuid, de.uplanet.jdbc.JdbcConnection p_conn)
          Search for tags in the specified application.
 void writePredicates(java.lang.String p_strSubject, java.util.List<RDFPredicateValue> p_predicates, de.uplanet.jdbc.JdbcConnection p_conn)
          Writes a set of RDF predicates to the database.
 void writePredicates(java.lang.String p_strSubject, java.util.List<RDFPredicateValue> p_predicates, de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId)
          Writes a set of RDF predicates to the database.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFCallable

public RDFCallable()
Method Detail

getTaggedSubjectCount

public int getTaggedSubjectCount(de.uplanet.jdbc.JdbcConnection p_conn)
                          throws java.sql.SQLException
Returns the count of tagged subjects.

Parameters:
p_conn - connection
Returns:
count of tagged subjects
Throws:
java.sql.SQLException

getTaggedSubjectCount

public int getTaggedSubjectCount(java.lang.String p_strURILeftFragment,
                                 de.uplanet.jdbc.JdbcConnection p_conn)
                          throws java.sql.SQLException
Returns the count of tagged subject matching the specified URI fragment.

Parameters:
p_strURILeftFragment - uri fragment
p_conn - connection
Returns:
count of tagged subjects
Throws:
java.sql.SQLException

getTags

public Tag[] getTags(de.uplanet.jdbc.JdbcConnection p_conn)
              throws java.sql.SQLException,
                     java.net.URISyntaxException
Returns an array of all tags known by the system.

Parameters:
p_conn - jdbc connection to work with.
Returns:
tag array or null, if an error occured.
Throws:
java.sql.SQLException
java.net.URISyntaxException

getTagsWeighted

public WeightedTag[] getTagsWeighted(de.uplanet.jdbc.JdbcConnection p_conn)
                              throws java.sql.SQLException,
                                     java.net.URISyntaxException
Returns an array of all weighted tags known by the system.

Parameters:
p_conn - jdbc connection to work with.
Returns:
weighted tag array or null, if an error occured.
Throws:
java.sql.SQLException
java.net.URISyntaxException

getTagsWeighted

public java.util.List<WeightedTag> getTagsWeighted(java.util.List<java.lang.String> p_tags)
Convert the given list of strings to a list of weighted tags using a standard comparator that performs a simple case-insensitive comparison to determine the identity of the tags, and to sort the resulting list.

Parameters:
p_tags - A list of tags.
Returns:
The list of weighted tags.

getTagsWeighted

public java.util.List<WeightedTag> getTagsWeighted(java.util.List<java.lang.String> p_tags,
                                                   java.util.Comparator<java.lang.String> p_comparator)
Convert the given list of strings to a list of weighted tags using the given comparator to determine the identity of the tags, and to sort the resulting list.

Parameters:
p_tags - A list of tags.
p_comparator - The comparator to be used.
Returns:
The list of weighted tags.

getUserTagsWeighted

public WeightedTag[] getUserTagsWeighted(de.uplanet.jdbc.JdbcConnection p_conn,
                                         int p_lUserId)
                                  throws java.sql.SQLException,
                                         java.net.URISyntaxException
Returns an array of all weighted tags known by the system from a single user.

Parameters:
p_conn - jdbc connection to work with.
p_lUserId - user id
Returns:
weighted tag array or null, if an error occured.
Throws:
java.sql.SQLException
java.net.URISyntaxException

getAppTags

public Tag[] getAppTags(java.lang.String p_strAppGuid,
                        de.uplanet.jdbc.JdbcConnection p_conn)
                 throws java.sql.SQLException,
                        java.net.URISyntaxException,
                        java.net.MalformedURLException
Returns an array of all tags assigned to the specified application.

Parameters:
p_strAppGuid - application guid
p_conn - jdbc connection to work with.
Returns:
tag array or null, of an error occured.
Throws:
java.sql.SQLException
java.net.URISyntaxException
java.net.MalformedURLException

getAppTagsWeighted

public WeightedTag[] getAppTagsWeighted(java.lang.String p_strAppGuid,
                                        de.uplanet.jdbc.JdbcConnection p_conn)
                                 throws java.sql.SQLException,
                                        java.net.URISyntaxException,
                                        java.net.MalformedURLException
Returns an weighted array of all tags assigned to the specified application.

Parameters:
p_strAppGuid - application guid
p_conn - jdbc connection to work with.
Returns:
tag array or null, of an error occured.
Throws:
java.sql.SQLException
java.net.URISyntaxException
java.net.MalformedURLException

getAppTagsWeighted

public WeightedTag[] getAppTagsWeighted(java.lang.String p_strAppGuid,
                                        int p_iUser,
                                        de.uplanet.jdbc.JdbcConnection p_conn)
                                 throws java.sql.SQLException,
                                        java.net.URISyntaxException,
                                        java.net.MalformedURLException
Returns an weighted array of all tags assigned to the specified application by the specified user.

Parameters:
p_strAppGuid - application guid
p_iUser - user id
p_conn - jdbc connection to work with.
Returns:
tag array or null, of an error occured.
Throws:
java.sql.SQLException
java.net.URISyntaxException
java.net.MalformedURLException

getCloudCalculation

public int getCloudCalculation(int p_a,
                               int p_b,
                               int p_sum,
                               int p_tagcount)

getStarsAverage

public int getStarsAverage(java.util.List<TaggedURI.TaggedURIPredicateValue> p_stars)

getFirstElement

public java.lang.String getFirstElement(java.util.List<java.lang.String> p_list,
                                        java.lang.String p_strDefault)

getFirstPredicateValue

public java.lang.String getFirstPredicateValue(java.util.List<TaggedURI.TaggedURIPredicateValue> p_list,
                                               java.lang.String p_strDefault)

getTagOutputFromPredicate

public java.lang.String getTagOutputFromPredicate(java.util.List<TaggedURI.TaggedURIPredicateValue> p_list,
                                                  java.lang.String p_strDelimiter,
                                                  java.lang.String p_strDefault)

getUrl

public java.lang.String getUrl(IServerBridgeRequest p_request,
                               java.lang.String p_strSubject,
                               java.lang.String p_strTemplateKey)
                        throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getTagOutput

public java.lang.String getTagOutput(java.util.List<java.lang.String> p_list,
                                     java.lang.String p_strDelimiter,
                                     java.lang.String p_strDefault)

getFilteredTags

public java.util.List<java.lang.String> getFilteredTags(java.lang.String p_strTagNameFilter,
                                                        de.uplanet.jdbc.JdbcConnection p_conn)
                                                 throws java.sql.SQLException,
                                                        java.net.URISyntaxException
Returns an array of all tags with a value like the p_strTagNameFilter

Parameters:
p_strTagNameFilter - tag name filter
p_conn - jdbc connection to work with.
Returns:
tag array or null, of an error occured.
Throws:
java.sql.SQLException
java.net.URISyntaxException

getAppUserPredicates

public Tag[] getAppUserPredicates(java.lang.String p_strAppGuid,
                                  int p_iUserId,
                                  de.uplanet.jdbc.JdbcConnection p_conn,
                                  java.lang.String p_strPredicate)
                           throws java.sql.SQLException,
                                  java.net.URISyntaxException,
                                  java.net.MalformedURLException
Returns an array of all tags assigned to the specified application.

Parameters:
p_strAppGuid - application guid
p_iUserId - user id
p_conn - jdbc connection to work with.
Returns:
tag array or null, of an error occured.
Throws:
java.sql.SQLException
java.net.URISyntaxException
java.net.MalformedURLException

getTaggedUris

public TaggedURI[] getTaggedUris(java.lang.String p_strTag,
                                 de.uplanet.jdbc.JdbcConnection p_conn)
                          throws java.sql.SQLException,
                                 java.net.MalformedURLException
Returns an array of tagged uris for the specified tag. The uris are filtered by the permsissions of the current user.

Parameters:
p_strTag - Tag. If null, no tag filter applies.
p_conn - jdbc connection to work with.
Returns:
tagged uris
Throws:
java.sql.SQLException
java.sql.SQLException
java.net.URISyntaxException
java.net.MalformedURLException

getUserTaggedUris

public TaggedURI[] getUserTaggedUris(java.lang.String p_strTag,
                                     int p_iUser,
                                     de.uplanet.jdbc.JdbcConnection p_conn)
                              throws java.sql.SQLException,
                                     java.net.MalformedURLException
Returns an array of uris tagged by the specified user. The uris are filtered by the permissions of the current user.

Parameters:
p_strTag - Tag. If null, no tag filter applies.
p_conn - jdbc connection to work with.
Returns:
tagged uris
Throws:
java.sql.SQLException
java.sql.SQLException
java.net.URISyntaxException
java.net.MalformedURLException

getAppTaggedUris

public TaggedURI[] getAppTaggedUris(java.lang.String p_strTag,
                                    java.lang.String p_strAppGuid,
                                    de.uplanet.jdbc.JdbcConnection p_conn)
                             throws java.sql.SQLException,
                                    java.net.MalformedURLException
Returns an array of tagged uris for the specified tag and application. The uris are filtered by the permsissions of the current user.

Parameters:
p_strTag - Tag. If null, no tag filter applies.
p_strAppGuid - application guid
p_conn - jdbc connection to work with.
Returns:
tagged uris
Throws:
java.sql.SQLException
java.net.MalformedURLException

getAppTaggedUserUris

public TaggedURI[] getAppTaggedUserUris(java.lang.String p_strTag,
                                        java.lang.String p_strAppGuid,
                                        int p_iTaggerId,
                                        de.uplanet.jdbc.JdbcConnection p_conn)
                                 throws java.sql.SQLException,
                                        java.net.MalformedURLException
Returns an array of tagged uris for the specified tag and application. The uris are filtered by the tagger and the permissions of a current user.

Parameters:
p_strTag - tag filter, may be null
p_strAppGuid - application guid
p_iTaggerId - tagger
p_conn - jdbc connection to work with.
Returns:
tagged uris
Throws:
java.sql.SQLException
java.net.URISyntaxException
java.net.MalformedURLException

getUserTaggedUris

public TaggedURI[] getUserTaggedUris(int p_iUserId,
                                     de.uplanet.jdbc.JdbcConnection p_conn)
                              throws java.sql.SQLException
Returns an array of all uris tagged by the specified user. Permissions are not checked !!!

Parameters:
p_iUserId - user id
p_conn - jdbc connection to work with.
Returns:
tag array or null, if an error occured.
Throws:
java.sql.SQLException
java.net.URISyntaxException

getTaggers

public java.util.Map<java.lang.Integer,java.lang.Integer> getTaggers(java.lang.String p_strURI,
                                                                     de.uplanet.jdbc.JdbcConnection p_conn)
                                                              throws java.sql.SQLException,
                                                                     java.net.URISyntaxException
Returns the list of the taggers of the specified ressource

Parameters:
p_strURI - tagged uri
p_conn - jdbc connection to work with.
Returns:
tagger map, containing the id of the tagger as a key and the count of tags as value
Throws:
java.sql.SQLException
java.net.URISyntaxException

getAppTaggers

public java.util.Map<java.lang.Integer,java.lang.Integer> getAppTaggers(java.lang.String p_strAppGuid,
                                                                        de.uplanet.jdbc.JdbcConnection p_conn)
                                                                 throws java.sql.SQLException,
                                                                        java.net.URISyntaxException,
                                                                        java.net.MalformedURLException
Returns the map of taggers of the specified application

Parameters:
p_strAppGuid - application guid
p_conn - jdbc connection to work with.
Returns:
tagger map, containing the id of the tagger as a key and the count of tags as value
Throws:
java.sql.SQLException
java.net.URISyntaxException
java.net.MalformedURLException

getAllTaggers

public java.util.Map<java.lang.Integer,java.lang.Integer> getAllTaggers(de.uplanet.jdbc.JdbcConnection p_conn)
                                                                 throws java.sql.SQLException,
                                                                        java.net.URISyntaxException,
                                                                        java.net.MalformedURLException
Returns a map of all taggers containing the user id as a key and the count of tags of the tagger as value.

Parameters:
p_conn - jdbc connection to work with.
Returns:
tagger map
Throws:
java.sql.SQLException
java.net.URISyntaxException
java.net.MalformedURLException

getPredicateValues

public java.util.List<java.lang.String> getPredicateValues(java.lang.String p_strAppGuid,
                                                           java.lang.String p_strTargetGuid,
                                                           int p_iRecId,
                                                           java.lang.String p_strPredicateName,
                                                           de.uplanet.jdbc.JdbcConnection p_conn)
                                                    throws java.net.MalformedURLException,
                                                           java.sql.SQLException,
                                                           java.net.URISyntaxException
Returns the values of the specified predicate for the ressource specified by the given parameters.

Parameters:
p_strAppGuid - app guid
p_strTargetGuid - target guid
p_iRecId - recid
p_strPredicateName - predicate name
p_conn - jdbc connection to work with.
Returns:
array of predicate values
Throws:
java.sql.SQLException
java.net.URISyntaxException
java.net.MalformedURLException

getPredicateValues

public java.util.List<java.lang.String> getPredicateValues(java.lang.String p_strURI,
                                                           java.lang.String p_strPredicateName,
                                                           de.uplanet.jdbc.JdbcConnection p_conn)
                                                    throws java.sql.SQLException,
                                                           java.net.URISyntaxException
Returns the values of the specified predicate for the given URI

Parameters:
p_strURI - uri
p_strPredicateName - predicate name
p_conn - jdbc connection to work with.
Returns:
predicate value list
Throws:
java.sql.SQLException
java.net.URISyntaxException

getPredicateValues

public java.util.List<java.lang.String> getPredicateValues(IServerBridgeRequest p_request,
                                                           java.lang.String p_strAppGuid,
                                                           java.lang.String p_strTargetGuid,
                                                           int p_iRecId,
                                                           java.lang.String p_strPredicateName,
                                                           int p_iUserId,
                                                           de.uplanet.jdbc.JdbcConnection p_conn)
                                                    throws java.sql.SQLException,
                                                           java.net.MalformedURLException,
                                                           java.net.URISyntaxException
Returns the values of the specified predicate for the ressource specified by the given parameters and defined by the specified user.

Parameters:
p_request - current request
p_strAppGuid - app guid
p_strTargetGuid - target guid
p_iRecId - recid
p_strPredicateName - predicate name
p_iUserId - user id
p_conn - jdbc connection to work with.
Returns:
list of predicate values
Throws:
java.sql.SQLException
java.net.URISyntaxException
java.net.MalformedURLException

getPredicateValues

public java.util.List<java.lang.String> getPredicateValues(java.lang.String p_strURI,
                                                           java.lang.String p_strPredicateName,
                                                           int p_iUserId,
                                                           de.uplanet.jdbc.JdbcConnection p_conn)
                                                    throws java.sql.SQLException,
                                                           java.net.URISyntaxException
Returns the values of the specified predicate for the given URI and user.

Parameters:
p_strURI - uri
p_strPredicateName - predicate name
p_iUserId - user id
p_conn - jdbc connection to work with.
Returns:
predicate value array
Throws:
java.sql.SQLException
java.net.URISyntaxException

getPredicateValues

public java.util.Map<java.lang.String,java.lang.String> getPredicateValues(java.lang.String p_strPredicateName,
                                                                           int p_iUserId,
                                                                           de.uplanet.jdbc.JdbcConnection p_conn)
                                                                    throws java.sql.SQLException
Returns the subjects and values of the specified predicate for the given user id

Parameters:
p_strPredicateName - predicate name
p_iUserId - user id
p_conn - jdbc connection to work with.
Returns:
predicate subject to value map
Throws:
java.sql.SQLException

createPredicateValue

public RDFPredicateValue createPredicateValue(java.lang.String p_strPredicate,
                                              java.lang.String p_strValue)
Create a new predicate value.

Parameters:
p_strPredicate - predicate
p_strValue - predicate value
Returns:
new predicate value

writePredicates

public void writePredicates(java.lang.String p_strSubject,
                            java.util.List<RDFPredicateValue> p_predicates,
                            de.uplanet.jdbc.JdbcConnection p_conn)
                     throws java.sql.SQLException
Writes a set of RDF predicates to the database. The current user is set as the owner of the written predicates.

Parameters:
p_strSubject - Subject
p_predicates - Predicate map
p_conn - jdbc connection to work with.
Throws:
java.sql.SQLException

writePredicates

public void writePredicates(java.lang.String p_strSubject,
                            java.util.List<RDFPredicateValue> p_predicates,
                            de.uplanet.jdbc.JdbcConnection p_conn,
                            int p_iUserId)
                     throws java.sql.SQLException
Writes a set of RDF predicates to the database. The given user is set as the owner of the written predicates.

Parameters:
p_strSubject - Subject
p_predicates - Predicate map
p_conn - jdbc connection to work with.
p_iUserId - A user id.
Throws:
java.sql.SQLException

editTagForAllUsers

public void editTagForAllUsers(RDFPredicateValue p_strPredicate,
                               java.lang.String p_strNewTagName,
                               de.uplanet.jdbc.JdbcConnection p_conn)
                        throws java.sql.SQLException
Edit a Tag, updates all fields of the lcrdf table where the tag occurs

Parameters:
p_strPredicate -
p_strNewTagName -
Throws:
java.sql.SQLException

editTagForAllUsersInApplication

public void editTagForAllUsersInApplication(RDFPredicateValue p_strPredicate,
                                            java.lang.String p_strNewTagName,
                                            java.lang.String p_strAppGuid,
                                            de.uplanet.jdbc.JdbcConnection p_conn)
                                     throws java.sql.SQLException
Edit a Tag, updates all fields of the lcrdf table where the tag occurs

Parameters:
p_strPredicate -
p_strNewTagName -
Throws:
java.sql.SQLException

removeUserPredicates

public void removeUserPredicates(java.lang.String p_strSubject,
                                 java.util.List<RDFPredicateValue> p_predicates,
                                 de.uplanet.jdbc.JdbcConnection p_conn)
                          throws java.sql.SQLException
Removes the user's references for the specified predicates and values from the rdf user table. If no reference is left for a rdf table entry, this entry also will be deleted.

Parameters:
p_strSubject - Subject
p_predicates - predicate list
p_conn - jdbc connection
Throws:
java.sql.SQLException

removeUserPredicates

public void removeUserPredicates(java.lang.String p_strSubject,
                                 java.util.List<RDFPredicateValue> p_predicates,
                                 de.uplanet.jdbc.JdbcConnection p_conn,
                                 int p_iUserId)
                          throws java.sql.SQLException
Removes a given user's references for the specified predicates and values from the rdf user table. If no reference is left for a rdf table entry, this entry also will be deleted.

Parameters:
p_strSubject - Subject
p_predicates - predicate list
p_conn - jdbc connection
p_iUserId - A User Id
Throws:
java.sql.SQLException

removeAllPredicates

public void removeAllPredicates(RDFPredicateValue p_predicate,
                                de.uplanet.jdbc.JdbcConnection p_conn)
                         throws java.sql.SQLException
Removes the user's references for the specified predicates and values from the rdf user table. If no reference is left for a rdf table entry, this entry also will be deleted.

Parameters:
p_predicate - The predicate to be deleted
p_conn - jdbc connection
Throws:
java.sql.SQLException

removeAllPredicatesInApplication

public void removeAllPredicatesInApplication(RDFPredicateValue p_predicate,
                                             java.lang.String p_strAppGuid,
                                             de.uplanet.jdbc.JdbcConnection p_conn)
                                      throws java.sql.SQLException
Throws:
java.sql.SQLException

removeUserPredicates

public void removeUserPredicates(java.lang.String p_strSubject,
                                 de.uplanet.jdbc.JdbcConnection p_conn)
                          throws java.sql.SQLException,
                                 java.net.URISyntaxException
Removes the user's references from the rdf user table. If no reference is left for a rdf table entry, this entry also will be deleted.

Parameters:
p_strSubject - Subject
p_conn - jdbc connection
Throws:
java.sql.SQLException
java.net.URISyntaxException

search

public RDFSearchResultSet search(java.lang.String p_strSearchQuery,
                                 de.uplanet.jdbc.JdbcConnection p_conn)
Search for tags.

Parameters:
p_strSearchQuery - search query
p_conn - jdbc connection
Returns:
search result

search

public RDFSearchResultSet search(java.lang.String p_strSearchQuery,
                                 java.lang.String p_strAppGuid,
                                 de.uplanet.jdbc.JdbcConnection p_conn)
Search for tags in the specified application.

Parameters:
p_strSearchQuery - search query
p_strAppGuid - application guid
p_conn - jdbc connection
Returns:
search result


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.