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 Role is a function of a UserAccount within a scope of a particular Forum,
013 * Site, etc.
014 */
015@RDFType("http://rdfs.org/sioc/ns#Role")
016public class RoleImpl extends Something implements Role
017{
018
019        /** A UserAccount that has this Role. */
020        @Predicate("http://rdfs.org/sioc/ns#function_of")
021        public List<String> function_of = new ArrayList<String>();
022
023
024        /** A resource that this Role applies to. */
025        @Predicate("http://rdfs.org/sioc/ns#has_scope")
026        public List<String> has_scope = new ArrayList<String>();
027
028
029
030        // From class this
031
032
033        @Override
034        public List<String> getFunction_of()
035        {
036                return this.function_of;
037        }
038        
039        @Override
040        public void setFunction_of( final List<String> function_of )
041        {
042                this.function_of = function_of;
043        }
044
045
046        // From class this
047
048
049        @Override
050        public List<String> getHas_scope()
051        {
052                return this.has_scope;
053        }
054        
055        @Override
056        public void setHas_scope( final List<String> has_scope )
057        {
058                this.has_scope = has_scope;
059        }
060
061}
062