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

All Superinterfaces:
Identifiable
All Known Subinterfaces:
IRDFDB_Namespace
All Known Implementing Classes:
RDF_Namespace, RDFDB_Namespace

public interface IRDF_Namespace
extends Identifiable


Method Summary
 void addClass(IRDF_Class rdf_class)
          Adds an RDF_Class in Main Memort
 void addNamespaceDependency(IRDF_Namespace namespace)
          Adds a namespace dependency to this namespace
 void addProperty(IRDF_Property rdf_property)
          Adds an RDF_Property in Main Memort
 void addStatement(IRDF_Statement rdf_statement)
          Adds an RDF_Statement in Main Memort
 IRDF_Class getClass(java.lang.String class_uri)
          Retrieves an RDF_Class from MM given its uri
 java.util.HashMap getClasses()
          Retrieves all the classes defined in this namespace
 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
 java.util.Collection getDomain(IRDF_Property rdf_property)
          Retrieves the Collection of RDF_Domains objects in which rdf_property "participates"
 org.apache.commons.collections.MultiMap getDomains()
          Retrieves all the domain relations stored in main memory
 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 namespace 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
 java.util.HashMap getProperties()
          Retrieves all the properties defined in this namespace
 IRDF_Property getProperty(java.lang.String property_uri)
          Retrieves an RDF_Property from MM given its uri
 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
 IRDF_Statement getStatement(java.lang.String statement_uri)
          Retrieves an RDF_Statement from MM given its uri
 java.util.HashMap getStatements()
          Retrieves all the statementes defined in this namespace
 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" as the subproperty.
 java.util.Collection<IRDF_Triple> getTriples()
          Returns a Collection of all triples correlated to this namespace
 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 setClasses(java.util.HashMap classes)
          Sets all the classes of this namespace
 void setNamespaceDependencies(java.util.HashMap<java.lang.String,IRDF_Namespace> dependencies)
          Sets the namespaces this namespace depends on
 void setProperties(java.util.HashMap properties)
          Sets all the properties of this namespace
 void setStatements(java.util.HashMap statements)
          Sets all the statementes of this namespace
 void setURI(java.lang.String uri)
          Sets the base uri of this namespace
 java.lang.String toString()
           
 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

getClasses

java.util.HashMap getClasses()
Retrieves all the classes defined in this namespace

Returns:
A HashMap of (String)class_uri,RDF_Class pairs

setClasses

void setClasses(java.util.HashMap classes)
Sets all the classes of this namespace

Parameters:
classes - A HashMap of (String)class_uri,RDF_Class pairs

getClass

IRDF_Class getClass(java.lang.String class_uri)
Retrieves an RDF_Class from MM given its uri

Parameters:
class_uri - A String representing the uri of the class
Returns:
An RDF_Class object

addClass

void addClass(IRDF_Class rdf_class)
Adds an RDF_Class in Main Memort

Parameters:
rdf_class - An RDF_Class object

getProperties

java.util.HashMap getProperties()
Retrieves all the properties defined in this namespace

Returns:
A HashMap of (String)property_uri,RDF_Property pairs

setProperties

void setProperties(java.util.HashMap properties)
Sets all the properties of this namespace

Parameters:
properties - A HashMap of (String)property_uri,RDF_Property pairs

getProperty

IRDF_Property getProperty(java.lang.String property_uri)
Retrieves an RDF_Property from MM given its uri

Parameters:
property_uri - A String representing the uri of the property
Returns:
An RDF_Property object

addProperty

void addProperty(IRDF_Property rdf_property)
Adds an RDF_Property in Main Memort

Parameters:
rdf_property - An RDF_Property object

getStatements

java.util.HashMap getStatements()
Retrieves all the statementes defined in this namespace

Returns:
A HashMap of (String)statement_uri,RDF_Statement pairs

setStatements

void setStatements(java.util.HashMap statements)
Sets all the statementes of this namespace

Parameters:
statementes - A HashMap of (String)statement_uri,RDF_Statement pairs

getStatement

IRDF_Statement getStatement(java.lang.String statement_uri)
Retrieves an RDF_Statement from MM given its uri

Parameters:
statement_uri - A String representing the uri of the statement
Returns:
An RDF_Statement object

addStatement

void addStatement(IRDF_Statement rdf_statement)
Adds an RDF_Statement in Main Memort

Parameters:
rdf_statement - An RDF_Statement object

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

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

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

getSubProperty

java.util.Collection getSubProperty(IRDF_Property rdf_property)
Retrieves the Collection of RDF_SubProperty objects in which rdf_property "participates" as the subproperty. In other words this method retrieves the superproperties of the given property

Parameters:
rdf_property - An RDF_Property
Returns:
An Collection object

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

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

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

getDomain

java.util.Collection getDomain(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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

getNamespaceDependencies

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

Returns:
An HashMap object

setNamespaceDependencies

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

Parameters:
dependencies - An HashMap object

addNamespaceDependency

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

Parameters:
namespace - An IRDF_Namespace 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

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object

getModel

IRDF_Model getModel()

getTriples

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

Returns:
A Collection