gr.forth.ics.rdfsuite.swkm.model.impl
Class RDF_Graphspace

java.lang.Object
  extended by gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Graphspace
All Implemented Interfaces:
Identifiable, IRDF_Graphspace

public class RDF_Graphspace
extends java.lang.Object
implements IRDF_Graphspace


Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
RDF_Graphspace(IRDF_Model model)
           
RDF_Graphspace(java.lang.String graphspace_uri, IRDF_Model model)
           
 
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 resource)
          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
protected  void setTypeTriple(IRDF_Resource old_resource, IRDF_Type new_type_triple)
          Modifies the type triple with the same string subject and object to the one given with the one given
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Constructor Detail

RDF_Graphspace

public RDF_Graphspace(IRDF_Model model)

RDF_Graphspace

public RDF_Graphspace(java.lang.String graphspace_uri,
                      IRDF_Model model)
Method Detail

addComment

public void addComment(IRDF_Resource resource,
                       IRDF_Comment comment)
Description copied from interface: IRDF_Graphspace
Adds a comment relation in Main Memory

Specified by:
addComment in interface IRDF_Graphspace

addDomain

public void addDomain(IRDF_Property property,
                      IRDF_Domain domain)
Description copied from interface: IRDF_Graphspace
Adds a domain relation in Main Memory

Specified by:
addDomain in interface IRDF_Graphspace

addIsDefinedBy

public void addIsDefinedBy(IRDF_Resource resource,
                           IRDF_IsDefinedBy isdefinedby)
Description copied from interface: IRDF_Graphspace
Adds a isDefinedBy relation in Main Memory

Specified by:
addIsDefinedBy in interface IRDF_Graphspace

addLabel

public void addLabel(IRDF_Resource resource,
                     IRDF_Label label)
Description copied from interface: IRDF_Graphspace
Adds a label relation in Main Memory

Specified by:
addLabel in interface IRDF_Graphspace

addMember

public void addMember(IRDF_Container container,
                      IRDF_Member member)
Description copied from interface: IRDF_Graphspace
Adds a member relation in Main Memory

Specified by:
addMember in interface IRDF_Graphspace

addObject

public void addObject(IRDF_Statement statement,
                      IRDF_Object object)
Description copied from interface: IRDF_Graphspace
Adds a object relation in Main Memory

Specified by:
addObject in interface IRDF_Graphspace

addPredicate

public void addPredicate(IRDF_Statement statement,
                         IRDF_Predicate predicate)
Description copied from interface: IRDF_Graphspace
Adds a predicate relation in Main Memory

Specified by:
addPredicate in interface IRDF_Graphspace

addPropertyInstance

public void addPropertyInstance(IRDF_PropertyInstance property_instance)
Description copied from interface: IRDF_Graphspace
Correlates a property instance to this graphspace

Specified by:
addPropertyInstance in interface IRDF_Graphspace
Parameters:
property_instance - An IRDF_PropertyInstance

addRange

public void addRange(IRDF_Property property,
                     IRDF_Range range)
Description copied from interface: IRDF_Graphspace
Adds a range relation in Main Memory

Specified by:
addRange in interface IRDF_Graphspace

addSeeAlso

public void addSeeAlso(IRDF_Resource resource,
                       IRDF_SeeAlso seealso)
Description copied from interface: IRDF_Graphspace
Adds a seeAlso relation in Main Memory

Specified by:
addSeeAlso in interface IRDF_Graphspace

addSubClass

public void addSubClass(IRDF_Class rdf_class,
                        IRDF_SubClass subclass)
Description copied from interface: IRDF_Graphspace
Adds a subClass relation in Main Memory

Specified by:
addSubClass in interface IRDF_Graphspace

addSubProperty

public void addSubProperty(IRDF_Property property,
                           IRDF_SubProperty subproperty)
Description copied from interface: IRDF_Graphspace
Adds a subProperty relation in Main Memory

Specified by:
addSubProperty in interface IRDF_Graphspace

addSubject

public void addSubject(IRDF_Statement statement,
                       IRDF_Subject subject)
Description copied from interface: IRDF_Graphspace
Adds a subject relation in Main Memory

Specified by:
addSubject in interface IRDF_Graphspace

addType

public void addType(IRDF_Resource resource,
                    IRDF_Type type)
Description copied from interface: IRDF_Graphspace
Adds a type relation in Main Memory

Specified by:
addType in interface IRDF_Graphspace

getComment

public java.util.Collection getComment(IRDF_Resource rdf_resource)
Description copied from interface: IRDF_Graphspace
Retrieves the Collection of RDF_Comment objects in which rdf_resource "participates"

Specified by:
getComment in interface IRDF_Graphspace
Parameters:
rdf_resource - An RDF_Resource
Returns:
An Collection object

getComments

public org.apache.commons.collections.MultiMap getComments()
Description copied from interface: IRDF_Graphspace
Retrieves all the comment relations stored in main memory

Specified by:
getComments in interface IRDF_Graphspace
Returns:
A MultiMap with keys RDF_Resource objects and values collections of RDF_Comment objects

getDomains

public org.apache.commons.collections.MultiMap getDomains()
Description copied from interface: IRDF_Graphspace
Retrieves all the domain relations stored in main memory

Specified by:
getDomains in interface IRDF_Graphspace
Returns:
A MultiMap with keys RDF_Property objects and values collections of RDF_Domains objects

getDomains

public java.util.Collection getDomains(IRDF_Property rdf_property)
Description copied from interface: IRDF_Graphspace
Retrieves the Collection of RDF_Domains objects in which rdf_property "participates"

Specified by:
getDomains in interface IRDF_Graphspace
Parameters:
rdf_property - An RDF_Property
Returns:
An Collection object

getIsDefinedBy

public java.util.Collection getIsDefinedBy(IRDF_Resource rdf_resource)
Description copied from interface: IRDF_Graphspace
Retrieves the Collection of RDF_IsDefinedBy objects in which rdf_resource "participates"

Specified by:
getIsDefinedBy in interface IRDF_Graphspace
Parameters:
rdf_resource - An IRDF_Resource
Returns:
An Collection object

getIsDefinedBys

public org.apache.commons.collections.MultiMap getIsDefinedBys()
Description copied from interface: IRDF_Graphspace
Retrieves all the isDefinedBy relations stored in main memory

Specified by:
getIsDefinedBys in interface IRDF_Graphspace
Returns:
A MultiMap with keys IRDF_Resource objects and values collections of RDF_IsDefinedBy objects

getLabel

public java.util.Collection getLabel(IRDF_Resource rdf_resource)
Description copied from interface: IRDF_Graphspace
Retrieves the Collection of RDF_Label objects in which rdf_resource "participates"

Specified by:
getLabel in interface IRDF_Graphspace
Parameters:
rdf_resource - An RDF_Resource
Returns:
An Collection object

getLabels

public org.apache.commons.collections.MultiMap getLabels()
Description copied from interface: IRDF_Graphspace
Retrieves all the label relations stored in main memory

Specified by:
getLabels in interface IRDF_Graphspace
Returns:
A MultiMap with keys RDF_Resource objects and values collections of RDF_Label objects

getMember

public java.util.Collection getMember(IRDF_Container container)
Description copied from interface: IRDF_Graphspace
Retrieves the Collection of RDF_Member objects in which rdf_container "participates"

Specified by:
getMember in interface IRDF_Graphspace
Parameters:
container - An RDF_Container
Returns:
An Collection object

getMembers

public org.apache.commons.collections.MultiMap getMembers()
Description copied from interface: IRDF_Graphspace
Retrieves all the container membership relations stored in main memory

Specified by:
getMembers in interface IRDF_Graphspace
Returns:
A MultiMap with keys RDF_Container objects and values collections of RDF_Member objects

getObject

public IRDF_Object getObject(IRDF_Statement rdf_statement)
Description copied from interface: IRDF_Graphspace
Retrieves the Collection of RDF_Object objects in which rdf_statement "participates"

Specified by:
getObject in interface IRDF_Graphspace
Parameters:
rdf_statement - An IRDF_Statement
Returns:
An Collection object

getObjects

public java.util.HashMap<IRDF_Statement,IRDF_Object> getObjects()
Description copied from interface: IRDF_Graphspace
Retrieves all the object relations stored in main memory

Specified by:
getObjects in interface IRDF_Graphspace
Returns:
A MultiMap with keys IRDF_Statement objects and values collections of RDF_Object objects

getPredicate

public IRDF_Predicate getPredicate(IRDF_Statement statement)
Description copied from interface: IRDF_Graphspace
Retrieves the Collection of RDF_Predicate objects in which statement "participates"

Specified by:
getPredicate in interface IRDF_Graphspace
Parameters:
statement - An IRDF_Statement
Returns:
An Collection object

getPredicates

public java.util.HashMap<IRDF_Statement,IRDF_Predicate> getPredicates()
Description copied from interface: IRDF_Graphspace
Retrieves all the predicate relations stored in main memory

Specified by:
getPredicates in interface IRDF_Graphspace
Returns:
A MultiMap with keys IRDF_Statement objects and values collections of RDF_Predicate objects

getPropertyInstance

public IRDF_PropertyInstance getPropertyInstance(java.lang.String property_instance_uri)
Description copied from interface: IRDF_Graphspace
Retrieves a property instance correlated to this property instance

Specified by:
getPropertyInstance in interface IRDF_Graphspace
Parameters:
property_instance_uri - A String
Returns:
An IRDF_PropertyInstance

getPropertyInstances

public org.apache.commons.collections.MultiMap getPropertyInstances()
Description copied from interface: IRDF_Graphspace
Retrieves the property instances correlated to this graphspace

Specified by:
getPropertyInstances in interface IRDF_Graphspace
Returns:
A HashMap

getRange

public java.util.Collection getRange(IRDF_Property rdf_property)
Description copied from interface: IRDF_Graphspace
Retrieves the Collection of RDF_Range objects in which rdf_property "participates"

Specified by:
getRange in interface IRDF_Graphspace
Parameters:
rdf_property - An IRDF_Property
Returns:
An Collection object

getRanges

public org.apache.commons.collections.MultiMap getRanges()
Description copied from interface: IRDF_Graphspace
Retrieves all the range relations stored in main memory

Specified by:
getRanges in interface IRDF_Graphspace
Returns:
A MultiMap with keys IRDF_Property objects and values collections of RDF_Range objects

getSeeAlso

public java.util.Collection getSeeAlso(IRDF_Resource rdf_resource)
Description copied from interface: IRDF_Graphspace
Retrieves the Collection of RDF_SeeAlso objects in which rdf_resource "participates"

Specified by:
getSeeAlso in interface IRDF_Graphspace
Parameters:
rdf_resource - An IRDF_Resource
Returns:
An Collection object

getSeeAlsos

public org.apache.commons.collections.MultiMap getSeeAlsos()
Description copied from interface: IRDF_Graphspace
Retrieves all the seeAlso relations stored in main memory

Specified by:
getSeeAlsos in interface IRDF_Graphspace
Returns:
A MultiMap with keys IRDF_Resource objects and values collections of RDF_SeeAlso objects

getSubClass

public java.util.Collection getSubClass(IRDF_Class rdf_class)
Description copied from interface: IRDF_Graphspace
Retrieves the Collection of RDF_SubClass objects in which rdf_class "participates"

Specified by:
getSubClass in interface IRDF_Graphspace
Parameters:
rdf_class - An RDF_Class
Returns:
An Collection object

getSubClasses

public org.apache.commons.collections.MultiMap getSubClasses()
Description copied from interface: IRDF_Graphspace
Retrieves all the subClass relations stored in main memory

Specified by:
getSubClasses in interface IRDF_Graphspace
Returns:
A MultiMap with keys RDF_Class objects and values collections of RDF_SubClass objects

getSubProperties

public org.apache.commons.collections.MultiMap getSubProperties()
Description copied from interface: IRDF_Graphspace
Retrieves all the subProperty relations stored in main memory

Specified by:
getSubProperties in interface IRDF_Graphspace
Returns:
A MultiMap with keys RDF_Property objects and values collections of RDF_SubProperty objects

getSubProperty

public java.util.Collection getSubProperty(IRDF_Property rdf_property)
Description copied from interface: IRDF_Graphspace
Retrieves the Collection of RDF_SubProperty objects in which rdf_property "participates"

Specified by:
getSubProperty in interface IRDF_Graphspace
Parameters:
rdf_property - An RDF_Property
Returns:
An Collection object

getSubject

public IRDF_Subject getSubject(IRDF_Statement rdf_statement)
Description copied from interface: IRDF_Graphspace
Retrieves the Collection of RDF_Subject objects in which rdf_statement "participates"

Specified by:
getSubject in interface IRDF_Graphspace
Parameters:
rdf_statement - An RDF_Statement
Returns:
An Collection object

getSubjects

public java.util.HashMap<IRDF_Statement,IRDF_Subject> getSubjects()
Description copied from interface: IRDF_Graphspace
Retrieves all the subject relations stored in main memory

Specified by:
getSubjects in interface IRDF_Graphspace
Returns:
A MultiMap with keys RDF_Statement objects and values collections of RDF_Subject objects

getType

public java.util.Collection getType(IRDF_Resource resource)
Description copied from interface: IRDF_Graphspace
Retrieves the Collection of RDF_Type objects in which rdf_type "participates"

Specified by:
getType in interface IRDF_Graphspace
Parameters:
resource - An RDF_Resource
Returns:
An Collection object

getTypes

public org.apache.commons.collections.MultiMap getTypes()
Description copied from interface: IRDF_Graphspace
Retrieves all the type relations stored in main memory

Specified by:
getTypes in interface IRDF_Graphspace
Returns:
A MultiMap with keys RDF_Resource objects and values collections of RDF_Type objects

getURI

public java.lang.String getURI()
Description copied from interface: IRDF_Graphspace
Retrieves the base uri of this namespace

Specified by:
getURI in interface Identifiable
Specified by:
getURI in interface IRDF_Graphspace
Returns:
A String

setComments

public void setComments(org.apache.commons.collections.MultiMap comments)
Description copied from interface: IRDF_Graphspace
Sets the comment Relationships defined in this namespace

Specified by:
setComments in interface IRDF_Graphspace
Parameters:
comments - A MultiMap with keys RDF_Resource objects and values collections of RDF_Comment objects

setDomains

public void setDomains(org.apache.commons.collections.MultiMap domains)
Description copied from interface: IRDF_Graphspace
Sets the domain Relationships defined in this namespace

Specified by:
setDomains in interface IRDF_Graphspace
Parameters:
domains - A MultiMap with keys RDF_Property objects and values collections of RDF_Domains objects

setIsDefinedBys

public void setIsDefinedBys(org.apache.commons.collections.MultiMap is_defined_bys)
Description copied from interface: IRDF_Graphspace
Sets the isDefinedBy Relationships defined in this namespace

Specified by:
setIsDefinedBys in interface IRDF_Graphspace
Parameters:
is_defined_bys - A MultiMap with keys IRDF_Resource objects and values collections of RDF_IsDefinedBy objects

setLabels

public void setLabels(org.apache.commons.collections.MultiMap labels)
Description copied from interface: IRDF_Graphspace
Sets the label Relationships defined in this namespace

Specified by:
setLabels in interface IRDF_Graphspace
Parameters:
labels - A MultiMap with keys RDF_Resource objects and values collections of RDF_Label objects

setMembers

public void setMembers(org.apache.commons.collections.MultiMap members)
Description copied from interface: IRDF_Graphspace
Sets the container membership Relationships defined in this namespace

Specified by:
setMembers in interface IRDF_Graphspace
Parameters:
members - A MultiMap with keys RDF_Container objects and values collections of RDF_Member objects

setObjects

public void setObjects(java.util.HashMap<IRDF_Statement,IRDF_Object> objects)
Description copied from interface: IRDF_Graphspace
Sets the object Relationships defined in this namespace

Specified by:
setObjects in interface IRDF_Graphspace
Parameters:
objects - A MultiMap with keys IRDF_Statement objects and values collections of RDF_Object objects

setPredicates

public void setPredicates(java.util.HashMap<IRDF_Statement,IRDF_Predicate> predicates)
Description copied from interface: IRDF_Graphspace
Sets the predicate Relationships defined in this namespace

Specified by:
setPredicates in interface IRDF_Graphspace

setPropertyInstances

public void setPropertyInstances(org.apache.commons.collections.MultiMap property_instances)
Description copied from interface: IRDF_Graphspace
Sets the property instances correlated to this graphspace

Specified by:
setPropertyInstances in interface IRDF_Graphspace
Parameters:
property_instances - A HashMap

setRanges

public void setRanges(org.apache.commons.collections.MultiMap ranges)
Description copied from interface: IRDF_Graphspace
Sets the range Relationships defined in this namespace

Specified by:
setRanges in interface IRDF_Graphspace
Parameters:
ranges - A MultiMap with keys IRDF_Property objects and values collections of RDF_Range objects

setSeeAlsos

public void setSeeAlsos(org.apache.commons.collections.MultiMap see_alsos)
Description copied from interface: IRDF_Graphspace
Sets the seeAlso Relationships defined in this namespace

Specified by:
setSeeAlsos in interface IRDF_Graphspace
Parameters:
see_alsos - A MultiMap with keys IRDF_Resource objects and values collections of RDF_SeeAlso objects

setSubClasses

public void setSubClasses(org.apache.commons.collections.MultiMap sub_classes)
Description copied from interface: IRDF_Graphspace
Sets the subClass Relationships defined in this namespace

Specified by:
setSubClasses in interface IRDF_Graphspace
Parameters:
sub_classes - A MultiMap with keys RDF_Class objects and values collections of RDF_SubClass objects

setSubProperties

public void setSubProperties(org.apache.commons.collections.MultiMap sub_properies)
Description copied from interface: IRDF_Graphspace
Sets the subProperty Relationships defined in this namespace

Specified by:
setSubProperties in interface IRDF_Graphspace
Parameters:
sub_properies - A MultiMap with keys RDF_Property objects and values collections of RDF_SubProperty objects

setSubjects

public void setSubjects(java.util.HashMap<IRDF_Statement,IRDF_Subject> subjects)
Description copied from interface: IRDF_Graphspace
Sets the subject Relationships defined in this namespace

Specified by:
setSubjects in interface IRDF_Graphspace
Parameters:
subjects - A MultiMap with keys RDF_Statement objects and values collections of RDF_Subject objects

setTypes

public void setTypes(org.apache.commons.collections.MultiMap types)
Description copied from interface: IRDF_Graphspace
Sets the type Relationships defined in this namespace

Specified by:
setTypes in interface IRDF_Graphspace
Parameters:
types - A MultiMap with keys RDF_Resource objects and values collections of RDF_Type objects

setURI

public void setURI(java.lang.String uri)
Description copied from interface: IRDF_Graphspace
Sets the base uri of this namespace

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

addGraphspaceDependency

public void addGraphspaceDependency(IRDF_Graphspace graphspace)
Description copied from interface: IRDF_Graphspace
Adds a graphspace dependency to this graphspace

Specified by:
addGraphspaceDependency in interface IRDF_Graphspace
Parameters:
graphspace - An IRDF_Graphspace object

addNamespaceDependency

public void addNamespaceDependency(IRDF_Namespace namespace)
Description copied from interface: IRDF_Graphspace
Adds a namespace dependency to this graphspace

Specified by:
addNamespaceDependency in interface IRDF_Graphspace
Parameters:
namespace - An IRDF_Namespace object

getGraphspaceDependencies

public java.util.HashMap<java.lang.String,IRDF_Graphspace> getGraphspaceDependencies()
Description copied from interface: IRDF_Graphspace
Gets the graphspaces this graphspace depends on

Specified by:
getGraphspaceDependencies in interface IRDF_Graphspace
Returns:
An HashMap object

getNamespaceDependencies

public java.util.HashMap<java.lang.String,IRDF_Namespace> getNamespaceDependencies()
Description copied from interface: IRDF_Graphspace
Gets the namespaces this graphspace depends on

Specified by:
getNamespaceDependencies in interface IRDF_Graphspace
Returns:
An HashMap object

setGraphspaceDependencies

public void setGraphspaceDependencies(java.util.HashMap<java.lang.String,IRDF_Graphspace> dependencies)
Description copied from interface: IRDF_Graphspace
Sets the graphspaces this graphspace depends on

Specified by:
setGraphspaceDependencies in interface IRDF_Graphspace
Parameters:
dependencies - An HashMap object

setNamespaceDependencies

public void setNamespaceDependencies(java.util.HashMap<java.lang.String,IRDF_Namespace> dependencies)
Description copied from interface: IRDF_Graphspace
Sets the namespaces this graphspace depends on

Specified by:
setNamespaceDependencies in interface IRDF_Graphspace
Parameters:
dependencies - An HashMap object

toTriples

public java.util.Collection toTriples()
Description copied from interface: IRDF_Graphspace
Returns a collection of triples where each triple is represented by a collection of 3 string values, subject predicate object

Specified by:
toTriples in interface IRDF_Graphspace
Returns:
A Collection> object

getModel

public IRDF_Model getModel()
Specified by:
getModel in interface IRDF_Graphspace

getTriples

public java.util.Collection<IRDF_Triple> getTriples()
Description copied from interface: IRDF_Graphspace
Returns a Collection of all triples correlated to this graphspace

Specified by:
getTriples in interface IRDF_Graphspace
Returns:
A Collection

setTypeTriple

protected void setTypeTriple(IRDF_Resource old_resource,
                             IRDF_Type new_type_triple)
Modifies the type triple with the same string subject and object to the one given with the one given