ubiware.rdf2bean.social
Class PersonalUserNetwork

java.lang.Object
  extended by ubiware.rdf2bean.core.RDFResource
      extended by ubiware.rdf2bean.social.PersonalUserNetwork

public class PersonalUserNetwork
extends RDFResource


Field Summary
static java.lang.String handledResource
           
 
Fields inherited from class ubiware.rdf2bean.core.RDFResource
properties
 
Constructor Summary
PersonalUserNetwork(java.lang.String resourceURI, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> props, Storage s)
           
 
Method Summary
 void addProfiles(java.util.List<SocialNetworkProfile> profiles)
           
 java.util.List<HumanConnection> getHasConnection()
           
 java.util.List<SocialNetworkProfile> getProfilesOfType(java.lang.String profileType)
          Start - Convenience methods for Mashupper webapp
static void main(java.lang.String[] args)
          End - Convenience methods for Mashupper webapp
 void print()
           
 void removeEmptyRows()
           
 void setHasConnection(java.util.List<HumanConnection> listHumanConnections)
           
 void setupHumanConnectionNames()
           
 boolean split(SocialNetworkProfile profile, int connectionIndex)
          Method for splitting a HumanConnection.
 void switchPlaces(int sourceIndex, int targetIndex, SocialNetworkProfile sourceProfile, SocialNetworkProfile targetProfile)
           
 java.lang.String toRdf()
           
 
Methods inherited from class ubiware.rdf2bean.core.RDFResource
equals, getResourceURI, getSingleResourceValue, getSingleStringValue, getStorage, getUri, giveMeResourceInstance, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

handledResource

public static java.lang.String handledResource
Constructor Detail

PersonalUserNetwork

public PersonalUserNetwork(java.lang.String resourceURI,
                           java.util.Map<java.lang.String,java.util.Set<java.lang.String>> props,
                           Storage s)
Method Detail

getHasConnection

public java.util.List<HumanConnection> getHasConnection()

setHasConnection

public void setHasConnection(java.util.List<HumanConnection> listHumanConnections)

getProfilesOfType

public java.util.List<SocialNetworkProfile> getProfilesOfType(java.lang.String profileType)
Start - Convenience methods for Mashupper webapp


addProfiles

public void addProfiles(java.util.List<SocialNetworkProfile> profiles)

print

public void print()

switchPlaces

public void switchPlaces(int sourceIndex,
                         int targetIndex,
                         SocialNetworkProfile sourceProfile,
                         SocialNetworkProfile targetProfile)
Parameters:
sourceIndex - the index of the HumanConnection where drag initiated
targetIndex - the index of the HumanConnection where item was dragged
sourceProfile - the profile being dragged
targetProfile - the profile on top of which the source is dropped

setupHumanConnectionNames

public void setupHumanConnectionNames()

removeEmptyRows

public void removeEmptyRows()

toRdf

public java.lang.String toRdf()
                       throws java.lang.Exception
Throws:
java.lang.Exception

split

public boolean split(SocialNetworkProfile profile,
                     int connectionIndex)
Method for splitting a HumanConnection. Creates a new HumanConnection object with the targeted SocialNetworkProfile alone in it.

Parameters:
profile - The SocialNetworkProfile targeted for splitting
connectionIndex - The index identifying the to-be-split HumanConnection
Returns:
true if split was done

main

public static void main(java.lang.String[] args)
                 throws org.openrdf.query.QueryEvaluationException,
                        org.openrdf.repository.RepositoryException,
                        org.openrdf.query.MalformedQueryException
End - Convenience methods for Mashupper webapp

Throws:
org.openrdf.query.QueryEvaluationException
org.openrdf.repository.RepositoryException
org.openrdf.query.MalformedQueryException