gr.forth.ics.rdfsuite.swkm.model
Interface IRDF_Graphspace

All Superinterfaces:
Identifiable
All Known Implementing Classes:
RDF_Graphspace

public interface IRDF_Graphspace
extends Identifiable

Graphspace contains the same Maps to namespace regarding schema triples with the note that what is stored there are references to the triples stored in the namespace


Method Summary
 void addComment(IRDF_Resource resource, IRDF_Comment comment)
          Adds a comment relation in Main Memory
 void addDomain(IRDF_Property property, IRDF_Domain domain)
          Adds a domain relation in Main Memory
 void addGraphspaceDependency(IRDF_Graphspace graphspace)
          Adds a graphspace dependency to this graphspace
 void addIsDefinedBy(IRDF_Resource resource, IRDF_IsDefinedBy isdefinedby)
          Adds a isDefinedBy relation in Main Memory
 void addLabel(IRDF_Resource resource, IRDF_Label label)
          Adds a label relation in Main Memory
 void addMember(IRDF_Container container, IRDF_Member member)
          Adds a member relation in Main Memory
 void addNamespaceDependency(IRDF_Namespace namespace)
          Adds a namespace dependency to this graphspace
 void addObject(IRDF_Statement statement, IRDF_Object object)
          Adds a object relation in Main Memory
 void addPredicate(IRDF_Statement statement, IRDF_Predicate predicate)
          Adds a predicate relation in Main Memory
 void addPropertyInstance(IRDF_PropertyInstance property_instance)
          Correlates a property instance to this graphspace
 void addRange(IRDF_Property property, IRDF_Range range)
          Adds a range relation in Main Memory
 void addSeeAlso(IRDF_Resource resource, IRDF_SeeAlso seealso)
          Adds a seeAlso relation in Main Memory
 void addSubClass(IRDF_Class rdf_class, IRDF_SubClass subclass)
          Adds a subClass relation in Main Memory
 void addSubject(IRDF_Statement statement, IRDF_Subject subject)
          Adds a subject relation in Main Memory
 void addSubProperty(IRDF_Property property, IRDF_SubProperty subproperty)
          Adds a subProperty relation in Main Memory
 void addType(IRDF_Resource resource, IRDF_Type type)
          Adds a type relation in Main Memory
 java.util.Collection getComment(IRDF_Resource rdf_resource)
          Retrieves the Collection of RDF_Comment objects in which rdf_resource "participates"
 org.apache.commons.collections.MultiMap getComments()
          Retrieves all the comment relations stored in main memory
 org.apache.commons.collections.MultiMap getDomains()
          Retrieves all the domain relations stored in main memory
 java.util.Collection getDomains(IRDF_Property rdf_property)
          Retrieves the Collection of RDF_Domains objects in which rdf_property "participates"
 java.util.HashMap<java.lang.String,IRDF_Graphspace> getGraphspaceDependencies()
          Gets the graphspaces this graphspace depends on
 java.util.Collection getIsDefinedBy(IRDF_Resource rdf_resource)
          Retrieves the Collection of RDF_IsDefinedBy objects in which rdf_resource "participates"
 org.apache.commons.collections.MultiMap getIsDefinedBys()
          Retrieves all the isDefinedBy relations stored in main memory
 java.util.Collection getLabel(IRDF_Resource rdf_resource)
          Retrieves the Collection of RDF_Label objects in which rdf_resource "participates"
 org.apache.commons.collections.MultiMap getLabels()
          Retrieves all the label relations stored in main memory
 java.util.Collection getMember(IRDF_Container container)
          Retrieves the Collection of RDF_Member objects in which rdf_container "participates"
 org.apache.commons.collections.MultiMap getMembers()
          Retrieves all the container membership relations stored in main memory
 IRDF_Model getModel()
           
 java.util.HashMap<java.lang.String,IRDF_Namespace> getNamespaceDependencies()
          Gets the namespaces this graphspace depends on
 IRDF_Object getObject(IRDF_Statement rdf_statement)
          Retrieves the Collection of RDF_Object objects in which rdf_statement "participates"
 java.util.HashMap<IRDF_Statement,IRDF_Object> getObjects()
          Retrieves all the object relations stored in main memory
 IRDF_Predicate getPredicate(IRDF_Statement statement)
          Retrieves the Collection of RDF_Predicate objects in which statement "participates"
 java.util.HashMap<IRDF_Statement,IRDF_Predicate> getPredicates()
          Retrieves all the predicate relations stored in main memory
 IRDF_PropertyInstance getPropertyInstance(java.lang.String property_instance_uri)
          Retrieves a property instance correlated to this property instance
 org.apache.commons.collections.MultiMap getPropertyInstances()
          Retrieves the property instances correlated to this graphspace
 java.util.Collection getRange(IRDF_Property rdf_property)
          Retrieves the Collection of RDF_Range objects in which rdf_property "participates"
 org.apache.commons.collections.MultiMap getRanges()
          Retrieves all the range relations stored in main memory
 java.util.Collection getSeeAlso(IRDF_Resource rdf_resource)
          Retrieves the Collection of RDF_SeeAlso objects in which rdf_resource "participates"
 org.apache.commons.collections.MultiMap getSeeAlsos()
          Retrieves all the seeAlso relations stored in main memory
 java.util.Collection getSubClass(IRDF_Class rdf_class)
          Retrieves the Collection of RDF_SubClass objects in which rdf_class "participates"
 org.apache.commons.collections.MultiMap getSubClasses()
          Retrieves all the subClass relations stored in main memory
 IRDF_Subject getSubject(IRDF_Statement rdf_statement)
          Retrieves the Collection of RDF_Subject objects in which rdf_statement "participates"
 java.util.HashMap<IRDF_Statement,IRDF_Subject> getSubjects()
          Retrieves all the subject relations stored in main memory
 org.apache.commons.collections.MultiMap getSubProperties()
          Retrieves all the subProperty relations stored in main memory
 java.util.Collection getSubProperty(IRDF_Property rdf_property)
          Retrieves the Collection of RDF_SubProperty objects in which rdf_property "participates"
 java.util.Collection<IRDF_Triple> getTriples()
          Returns a Collection of all triples correlated to this graphspace
 java.util.Collection getType(IRDF_Resource rdf_type)
          Retrieves the Collection of RDF_Type objects in which rdf_type "participates"
 org.apache.commons.collections.MultiMap getTypes()
          Retrieves all the type relations stored in main memory
 java.lang.String getURI()
          Retrieves the base uri of this namespace
 void setComments(org.apache.commons.collections.MultiMap comments)
          Sets the comment Relationships defined in this namespace
 void setDomains(org.apache.commons.collections.MultiMap domains)
          Sets the domain Relationships defined in this namespace
 void setGraphspaceDependencies(java.util.HashMap<java.lang.String,IRDF_Graphspace> dependencies)
          Sets the graphspaces this graphspace depends on
 void setIsDefinedBys(org.apache.commons.collections.MultiMap is_defined_bys)
          Sets the isDefinedBy Relationships defined in this namespace
 void setLabels(org.apache.commons.collections.MultiMap labels)
          Sets the label Relationships defined in this namespace
 void setMembers(org.apache.commons.collections.MultiMap members)
          Sets the container membership Relationships defined in this namespace
 void setNamespaceDependencies(java.util.HashMap<java.lang.String,IRDF_Namespace> dependencies)
          Sets the namespaces this graphspace depends on
 void setObjects(java.util.HashMap<IRDF_Statement,IRDF_Object> objects)
          Sets the object Relationships defined in this namespace
 void setPredicates(java.util.HashMap<IRDF_Statement,IRDF_Predicate> predicates)
          Sets the predicate Relationships defined in this namespace
 void setPropertyInstances(org.apache.commons.collections.MultiMap property_instances)
          Sets the property instances correlated to this graphspace
 void setRanges(org.apache.commons.collections.MultiMap ranges)
          Sets the range Relationships defined in this namespace
 void setSeeAlsos(org.apache.commons.collections.MultiMap see_alsos)
          Sets the seeAlso Relationships defined in this namespace
 void setSubClasses(org.apache.commons.collections.MultiMap sub_classes)
          Sets the subClass Relationships defined in this namespace
 void setSubjects(java.util.HashMap<IRDF_Statement,IRDF_Subject> subjects)
          Sets the subject Relationships defined in this namespace
 void setSubProperties(org.apache.commons.collections.MultiMap sub_properies)
          Sets the subProperty Relationships defined in this namespace
 void setTypes(org.apache.commons.collections.MultiMap types)
          Sets the type Relationships defined in this namespace
 void setURI(java.lang.String uri)
          Sets the base uri of this namespace
 java.util.Collection toTriples()
          Returns a collection of triples where each triple is represented by a collection of 3 string values, subject predicate object
 

Method Detail

getURI

java.lang.String getURI()
Retrieves the base uri of this namespace

Specified by:
getURI in interface Identifiable
Returns:
A String

setURI

void setURI(java.lang.String uri)
Sets the base uri of this namespace

Specified by:
setURI in interface Identifiable
Parameters:
uri - A String

getPropertyInstances

org.apache.commons.collections.MultiMap getPropertyInstances()
Retrieves the property instances correlated to this graphspace

Returns:
A HashMap

setPropertyInstances

void setPropertyInstances(org.apache.commons.collections.MultiMap property_instances)
Sets the property instances correlated to this graphspace

Parameters:
property_instances - A HashMap

getPropertyInstance

IRDF_PropertyInstance getPropertyInstance(java.lang.String property_instance_uri)
Retrieves a property instance correlated to this property instance

Parameters:
property_instance_uri - A String
Returns:
An IRDF_PropertyInstance

addPropertyInstance

void addPropertyInstance(IRDF_PropertyInstance property_instance)
Correlates a property instance to this graphspace

Parameters:
property_instance - An IRDF_PropertyInstance

getSubClasses

org.apache.commons.collections.MultiMap getSubClasses()
Retrieves all the subClass relations stored in main memory

Returns:
A MultiMap with keys RDF_Class objects and values collections of RDF_SubClass objects

setSubClasses

void setSubClasses(org.apache.commons.collections.MultiMap sub_classes)
Sets the subClass Relationships defined in this namespace

Parameters:
sub_classes - A MultiMap with keys RDF_Class objects and values collections of RDF_SubClass objects

getSubClass

java.util.Collection getSubClass(IRDF_Class rdf_class)
Retrieves the Collection of RDF_SubClass objects in which rdf_class "participates"

Parameters:
rdf_class - An RDF_Class
Returns:
An Collection object

addSubClass

void addSubClass(IRDF_Class rdf_class,
                 IRDF_SubClass subclass)
Adds a subClass relation in Main Memory

Parameters:
subclass -

getSubProperties

org.apache.commons.collections.MultiMap getSubProperties()
Retrieves all the subProperty relations stored in main memory

Returns:
A MultiMap with keys RDF_Property objects and values collections of RDF_SubProperty objects

setSubProperties

void setSubProperties(org.apache.commons.collections.MultiMap sub_properies)
Sets the subProperty Relationships defined in this namespace

Parameters:
sub_properies - A MultiMap with keys RDF_Property objects and values collections of RDF_SubProperty objects

getSubProperty

java.util.Collection getSubProperty(IRDF_Property rdf_property)
Retrieves the Collection of RDF_SubProperty objects in which rdf_property "participates"

Parameters:
rdf_property - An RDF_Property
Returns:
An Collection object

addSubProperty

void addSubProperty(IRDF_Property property,
                    IRDF_SubProperty subproperty)
Adds a subProperty relation in Main Memory

Parameters:
subproperty -

getTypes

org.apache.commons.collections.MultiMap getTypes()
Retrieves all the type relations stored in main memory

Returns:
A MultiMap with keys RDF_Resource objects and values collections of RDF_Type objects

setTypes

void setTypes(org.apache.commons.collections.MultiMap types)
Sets the type Relationships defined in this namespace

Parameters:
types - A MultiMap with keys RDF_Resource objects and values collections of RDF_Type objects

getType

java.util.Collection getType(IRDF_Resource rdf_type)
Retrieves the Collection of RDF_Type objects in which rdf_type "participates"

Parameters:
rdf_type - An RDF_Resource
Returns:
An Collection object

addType

void addType(IRDF_Resource resource,
             IRDF_Type type)
Adds a type relation in Main Memory

Parameters:
type -

getDomains

org.apache.commons.collections.MultiMap getDomains()
Retrieves all the domain relations stored in main memory

Returns:
A MultiMap with keys RDF_Property objects and values collections of RDF_Domains objects

setDomains

void setDomains(org.apache.commons.collections.MultiMap domains)
Sets the domain Relationships defined in this namespace

Parameters:
domains - A MultiMap with keys RDF_Property objects and values collections of RDF_Domains objects

getDomains

java.util.Collection getDomains(IRDF_Property rdf_property)
Retrieves the Collection of RDF_Domains objects in which rdf_property "participates"

Parameters:
rdf_property - An RDF_Property
Returns:
An Collection object

addDomain

void addDomain(IRDF_Property property,
               IRDF_Domain domain)
Adds a domain relation in Main Memory

Parameters:
domain -

getRanges

org.apache.commons.collections.MultiMap getRanges()
Retrieves all the range relations stored in main memory

Returns:
A MultiMap with keys IRDF_Property objects and values collections of RDF_Range objects

setRanges

void setRanges(org.apache.commons.collections.MultiMap ranges)
Sets the range Relationships defined in this namespace

Parameters:
ranges - A MultiMap with keys IRDF_Property objects and values collections of RDF_Range objects

getRange

java.util.Collection getRange(IRDF_Property rdf_property)
Retrieves the Collection of RDF_Range objects in which rdf_property "participates"

Parameters:
rdf_property - An IRDF_Property
Returns:
An Collection object

addRange

void addRange(IRDF_Property property,
              IRDF_Range range)
Adds a range relation in Main Memory

Parameters:
range -

getComments

org.apache.commons.collections.MultiMap getComments()
Retrieves all the comment relations stored in main memory

Returns:
A MultiMap with keys RDF_Resource objects and values collections of RDF_Comment objects

setComments

void setComments(org.apache.commons.collections.MultiMap comments)
Sets the comment Relationships defined in this namespace

Parameters:
comments - A MultiMap with keys RDF_Resource objects and values collections of RDF_Comment objects

getComment

java.util.Collection getComment(IRDF_Resource rdf_resource)
Retrieves the Collection of RDF_Comment objects in which rdf_resource "participates"

Parameters:
rdf_resource - An RDF_Resource
Returns:
An Collection object

addComment

void addComment(IRDF_Resource resource,
                IRDF_Comment comment)
Adds a comment relation in Main Memory

Parameters:
comment -

getLabels

org.apache.commons.collections.MultiMap getLabels()
Retrieves all the label relations stored in main memory

Returns:
A MultiMap with keys RDF_Resource objects and values collections of RDF_Label objects

setLabels

void setLabels(org.apache.commons.collections.MultiMap labels)
Sets the label Relationships defined in this namespace

Parameters:
labels - A MultiMap with keys RDF_Resource objects and values collections of RDF_Label objects

getLabel

java.util.Collection getLabel(IRDF_Resource rdf_resource)
Retrieves the Collection of RDF_Label objects in which rdf_resource "participates"

Parameters:
rdf_resource - An RDF_Resource
Returns:
An Collection object

addLabel

void addLabel(IRDF_Resource resource,
              IRDF_Label label)
Adds a label relation in Main Memory

Parameters:
label -

getSeeAlsos

org.apache.commons.collections.MultiMap getSeeAlsos()
Retrieves all the seeAlso relations stored in main memory

Returns:
A MultiMap with keys IRDF_Resource objects and values collections of RDF_SeeAlso objects

setSeeAlsos

void setSeeAlsos(org.apache.commons.collections.MultiMap see_alsos)
Sets the seeAlso Relationships defined in this namespace

Parameters:
see_alsos - A MultiMap with keys IRDF_Resource objects and values collections of RDF_SeeAlso objects

getSeeAlso

java.util.Collection getSeeAlso(IRDF_Resource rdf_resource)
Retrieves the Collection of RDF_SeeAlso objects in which rdf_resource "participates"

Parameters:
rdf_resource - An IRDF_Resource
Returns:
An Collection object

addSeeAlso

void addSeeAlso(IRDF_Resource resource,
                IRDF_SeeAlso seealso)
Adds a seeAlso relation in Main Memory

Parameters:
seealso -

getIsDefinedBys

org.apache.commons.collections.MultiMap getIsDefinedBys()
Retrieves all the isDefinedBy relations stored in main memory

Returns:
A MultiMap with keys IRDF_Resource objects and values collections of RDF_IsDefinedBy objects

setIsDefinedBys

void setIsDefinedBys(org.apache.commons.collections.MultiMap is_defined_bys)
Sets the isDefinedBy Relationships defined in this namespace

Parameters:
is_defined_bys - A MultiMap with keys IRDF_Resource objects and values collections of RDF_IsDefinedBy objects

getIsDefinedBy

java.util.Collection getIsDefinedBy(IRDF_Resource rdf_resource)
Retrieves the Collection of RDF_IsDefinedBy objects in which rdf_resource "participates"

Parameters:
rdf_resource - An IRDF_Resource
Returns:
An Collection object

addIsDefinedBy

void addIsDefinedBy(IRDF_Resource resource,
                    IRDF_IsDefinedBy isdefinedby)
Adds a isDefinedBy relation in Main Memory

Parameters:
isdefinedby -

getSubjects

java.util.HashMap<IRDF_Statement,IRDF_Subject> getSubjects()
Retrieves all the subject relations stored in main memory

Returns:
A MultiMap with keys RDF_Statement objects and values collections of RDF_Subject objects

setSubjects

void setSubjects(java.util.HashMap<IRDF_Statement,IRDF_Subject> subjects)
Sets the subject Relationships defined in this namespace

Parameters:
subjects - A MultiMap with keys RDF_Statement objects and values collections of RDF_Subject objects

getSubject

IRDF_Subject getSubject(IRDF_Statement rdf_statement)
Retrieves the Collection of RDF_Subject objects in which rdf_statement "participates"

Parameters:
rdf_statement - An RDF_Statement
Returns:
An Collection object

addSubject

void addSubject(IRDF_Statement statement,
                IRDF_Subject subject)
Adds a subject relation in Main Memory

Parameters:
subject -

getObjects

java.util.HashMap<IRDF_Statement,IRDF_Object> getObjects()
Retrieves all the object relations stored in main memory

Returns:
A MultiMap with keys IRDF_Statement objects and values collections of RDF_Object objects

setObjects

void setObjects(java.util.HashMap<IRDF_Statement,IRDF_Object> objects)
Sets the object Relationships defined in this namespace

Parameters:
objects - A MultiMap with keys IRDF_Statement objects and values collections of RDF_Object objects

getObject

IRDF_Object getObject(IRDF_Statement rdf_statement)
Retrieves the Collection of RDF_Object objects in which rdf_statement "participates"

Parameters:
rdf_statement - An IRDF_Statement
Returns:
An Collection object

addObject

void addObject(IRDF_Statement statement,
               IRDF_Object object)
Adds a object relation in Main Memory

Parameters:
object -

getPredicates

java.util.HashMap<IRDF_Statement,IRDF_Predicate> getPredicates()
Retrieves all the predicate relations stored in main memory

Returns:
A MultiMap with keys IRDF_Statement objects and values collections of RDF_Predicate objects

setPredicates

void setPredicates(java.util.HashMap<IRDF_Statement,IRDF_Predicate> predicates)
Sets the predicate Relationships defined in this namespace

Parameters:
statements - A MultiMap with keys IRDF_Statement objects and values collections of RDF_Predicate objects

getPredicate

IRDF_Predicate getPredicate(IRDF_Statement statement)
Retrieves the Collection of RDF_Predicate objects in which statement "participates"

Parameters:
statement - An IRDF_Statement
Returns:
An Collection object

addPredicate

void addPredicate(IRDF_Statement statement,
                  IRDF_Predicate predicate)
Adds a predicate relation in Main Memory

Parameters:
predicate -

getMembers

org.apache.commons.collections.MultiMap getMembers()
Retrieves all the container membership relations stored in main memory

Returns:
A MultiMap with keys RDF_Container objects and values collections of RDF_Member objects

setMembers

void setMembers(org.apache.commons.collections.MultiMap members)
Sets the container membership Relationships defined in this namespace

Parameters:
members - A MultiMap with keys RDF_Container objects and values collections of RDF_Member objects

getMember

java.util.Collection getMember(IRDF_Container container)
Retrieves the Collection of RDF_Member objects in which rdf_container "participates"

Parameters:
container - An RDF_Container
Returns:
An Collection object

addMember

void addMember(IRDF_Container container,
               IRDF_Member member)
Adds a member relation in Main Memory

Parameters:
member -

getNamespaceDependencies

java.util.HashMap<java.lang.String,IRDF_Namespace> getNamespaceDependencies()
Gets the namespaces this graphspace depends on

Returns:
An HashMap object

setNamespaceDependencies

void setNamespaceDependencies(java.util.HashMap<java.lang.String,IRDF_Namespace> dependencies)
Sets the namespaces this graphspace depends on

Parameters:
dependencies - An HashMap object

addNamespaceDependency

void addNamespaceDependency(IRDF_Namespace namespace)
Adds a namespace dependency to this graphspace

Parameters:
namespace - An IRDF_Namespace object

getGraphspaceDependencies

java.util.HashMap<java.lang.String,IRDF_Graphspace> getGraphspaceDependencies()
Gets the graphspaces this graphspace depends on

Returns:
An HashMap object

setGraphspaceDependencies

void setGraphspaceDependencies(java.util.HashMap<java.lang.String,IRDF_Graphspace> dependencies)
Sets the graphspaces this graphspace depends on

Parameters:
dependencies - An HashMap object

addGraphspaceDependency

void addGraphspaceDependency(IRDF_Graphspace graphspace)
Adds a graphspace dependency to this graphspace

Parameters:
graphspace - An IRDF_Graphspace object

toTriples

java.util.Collection toTriples()
Returns a collection of triples where each triple is represented by a collection of 3 string values, subject predicate object

Returns:
A Collection> object

getModel

IRDF_Model getModel()

getTriples

java.util.Collection<IRDF_Triple> getTriples()
Returns a Collection of all triples correlated to this graphspace

Returns:
A Collection