001package orgrdfs.sioc.ns;
002
003import org.openimaj.rdf.owl2java.Something;
004import org.openimaj.rdf.serialize.Predicate;
005
006import org.openimaj.rdf.serialize.RDFType;
007
008import java.util.ArrayList;
009import java.util.List;
010
011/**
012 * A Site can be the location of an online community or set of communities, with
013 * UserAccounts and Usergroups creating Items in a set of Containers. It can be
014 * thought of as a web-accessible data Space.
015 */
016@RDFType("http://rdfs.org/sioc/ns#Site")
017public class SiteImpl extends Something implements Site
018{
019
020        /** A Forum that is hosted on this Site. */
021        @Predicate("http://rdfs.org/sioc/ns#host_of")
022        public List<orgrdfs.sioc.ns.Forum> host_of = new ArrayList<orgrdfs.sioc.ns.Forum>();
023
024
025        /** A UserAccount that is an administrator of this Site. */
026        @Predicate("http://rdfs.org/sioc/ns#has_administrator")
027        public List<orgrdfs.sioc.ns.UserAccount> has_administrator = new ArrayList<orgrdfs.sioc.ns.UserAccount>();
028
029
030        /** orgrdfs.sioc.ns.Space superclass instance */
031        private orgrdfs.sioc.ns.Space space;
032
033
034        // From class space
035
036
037        @Override
038        public List<String> getSpace_of()
039        {
040                return space.getSpace_of();
041        }
042        
043        @Override
044        public void setSpace_of( final List<String> space_of )
045        {
046                space.setSpace_of( space_of );
047        }
048
049
050        // From class this
051
052
053        @Override
054        public List<orgrdfs.sioc.ns.Forum> getHost_of()
055        {
056                return this.host_of;
057        }
058        
059        @Override
060        public void setHost_of( final List<orgrdfs.sioc.ns.Forum> host_of )
061        {
062                this.host_of = host_of;
063        }
064
065
066        // From class space
067
068
069        @Override
070        public List<orgrdfs.sioc.ns.Usergroup> getHas_usergroup()
071        {
072                return space.getHas_usergroup();
073        }
074        
075        @Override
076        public void setHas_usergroup( final List<orgrdfs.sioc.ns.Usergroup> has_usergroup )
077        {
078                space.setHas_usergroup( has_usergroup );
079        }
080
081
082        // From class this
083
084
085        @Override
086        public List<orgrdfs.sioc.ns.UserAccount> getHas_administrator()
087        {
088                return this.has_administrator;
089        }
090        
091        @Override
092        public void setHas_administrator( final List<orgrdfs.sioc.ns.UserAccount> has_administrator )
093        {
094                this.has_administrator = has_administrator;
095        }
096
097}
098