|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.forth.ics.rdfsuite.swkm.model.impl.RDF_Graphspace
public class RDF_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 |
|---|
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public RDF_Graphspace(IRDF_Model model)
public RDF_Graphspace(java.lang.String graphspace_uri,
IRDF_Model model)
| Method Detail |
|---|
public void addComment(IRDF_Resource resource,
IRDF_Comment comment)
IRDF_Graphspace
addComment in interface IRDF_Graphspace
public void addDomain(IRDF_Property property,
IRDF_Domain domain)
IRDF_Graphspace
addDomain in interface IRDF_Graphspace
public void addIsDefinedBy(IRDF_Resource resource,
IRDF_IsDefinedBy isdefinedby)
IRDF_Graphspace
addIsDefinedBy in interface IRDF_Graphspace
public void addLabel(IRDF_Resource resource,
IRDF_Label label)
IRDF_Graphspace
addLabel in interface IRDF_Graphspace
public void addMember(IRDF_Container container,
IRDF_Member member)
IRDF_Graphspace
addMember in interface IRDF_Graphspace
public void addObject(IRDF_Statement statement,
IRDF_Object object)
IRDF_Graphspace
addObject in interface IRDF_Graphspace
public void addPredicate(IRDF_Statement statement,
IRDF_Predicate predicate)
IRDF_Graphspace
addPredicate in interface IRDF_Graphspacepublic void addPropertyInstance(IRDF_PropertyInstance property_instance)
IRDF_Graphspace
addPropertyInstance in interface IRDF_Graphspaceproperty_instance - An IRDF_PropertyInstance
public void addRange(IRDF_Property property,
IRDF_Range range)
IRDF_Graphspace
addRange in interface IRDF_Graphspace
public void addSeeAlso(IRDF_Resource resource,
IRDF_SeeAlso seealso)
IRDF_Graphspace
addSeeAlso in interface IRDF_Graphspace
public void addSubClass(IRDF_Class rdf_class,
IRDF_SubClass subclass)
IRDF_Graphspace
addSubClass in interface IRDF_Graphspace
public void addSubProperty(IRDF_Property property,
IRDF_SubProperty subproperty)
IRDF_Graphspace
addSubProperty in interface IRDF_Graphspace
public void addSubject(IRDF_Statement statement,
IRDF_Subject subject)
IRDF_Graphspace
addSubject in interface IRDF_Graphspace
public void addType(IRDF_Resource resource,
IRDF_Type type)
IRDF_Graphspace
addType in interface IRDF_Graphspacepublic java.util.Collection getComment(IRDF_Resource rdf_resource)
IRDF_Graphspace
getComment in interface IRDF_Graphspacerdf_resource - An RDF_Resource
public org.apache.commons.collections.MultiMap getComments()
IRDF_Graphspace
getComments in interface IRDF_Graphspacepublic org.apache.commons.collections.MultiMap getDomains()
IRDF_Graphspace
getDomains in interface IRDF_Graphspacepublic java.util.Collection getDomains(IRDF_Property rdf_property)
IRDF_Graphspace
getDomains in interface IRDF_Graphspacerdf_property - An RDF_Property
public java.util.Collection getIsDefinedBy(IRDF_Resource rdf_resource)
IRDF_Graphspace
getIsDefinedBy in interface IRDF_Graphspacerdf_resource - An IRDF_Resource
public org.apache.commons.collections.MultiMap getIsDefinedBys()
IRDF_Graphspace
getIsDefinedBys in interface IRDF_Graphspacepublic java.util.Collection getLabel(IRDF_Resource rdf_resource)
IRDF_Graphspace
getLabel in interface IRDF_Graphspacerdf_resource - An RDF_Resource
public org.apache.commons.collections.MultiMap getLabels()
IRDF_Graphspace
getLabels in interface IRDF_Graphspacepublic java.util.Collection getMember(IRDF_Container container)
IRDF_Graphspace
getMember in interface IRDF_Graphspacecontainer - An RDF_Container
public org.apache.commons.collections.MultiMap getMembers()
IRDF_Graphspace
getMembers in interface IRDF_Graphspacepublic IRDF_Object getObject(IRDF_Statement rdf_statement)
IRDF_Graphspace
getObject in interface IRDF_Graphspacerdf_statement - An IRDF_Statement
public java.util.HashMap<IRDF_Statement,IRDF_Object> getObjects()
IRDF_Graphspace
getObjects in interface IRDF_Graphspacepublic IRDF_Predicate getPredicate(IRDF_Statement statement)
IRDF_Graphspace
getPredicate in interface IRDF_Graphspacestatement - An IRDF_Statement
public java.util.HashMap<IRDF_Statement,IRDF_Predicate> getPredicates()
IRDF_Graphspace
getPredicates in interface IRDF_Graphspacepublic IRDF_PropertyInstance getPropertyInstance(java.lang.String property_instance_uri)
IRDF_Graphspace
getPropertyInstance in interface IRDF_Graphspaceproperty_instance_uri - A String
public org.apache.commons.collections.MultiMap getPropertyInstances()
IRDF_Graphspace
getPropertyInstances in interface IRDF_Graphspacepublic java.util.Collection getRange(IRDF_Property rdf_property)
IRDF_Graphspace
getRange in interface IRDF_Graphspacerdf_property - An IRDF_Property
public org.apache.commons.collections.MultiMap getRanges()
IRDF_Graphspace
getRanges in interface IRDF_Graphspacepublic java.util.Collection getSeeAlso(IRDF_Resource rdf_resource)
IRDF_Graphspace
getSeeAlso in interface IRDF_Graphspacerdf_resource - An IRDF_Resource
public org.apache.commons.collections.MultiMap getSeeAlsos()
IRDF_Graphspace
getSeeAlsos in interface IRDF_Graphspacepublic java.util.Collection getSubClass(IRDF_Class rdf_class)
IRDF_Graphspace
getSubClass in interface IRDF_Graphspacerdf_class - An RDF_Class
public org.apache.commons.collections.MultiMap getSubClasses()
IRDF_Graphspace
getSubClasses in interface IRDF_Graphspacepublic org.apache.commons.collections.MultiMap getSubProperties()
IRDF_Graphspace
getSubProperties in interface IRDF_Graphspacepublic java.util.Collection getSubProperty(IRDF_Property rdf_property)
IRDF_Graphspace
getSubProperty in interface IRDF_Graphspacerdf_property - An RDF_Property
public IRDF_Subject getSubject(IRDF_Statement rdf_statement)
IRDF_Graphspace
getSubject in interface IRDF_Graphspacerdf_statement - An RDF_Statement
public java.util.HashMap<IRDF_Statement,IRDF_Subject> getSubjects()
IRDF_Graphspace
getSubjects in interface IRDF_Graphspacepublic java.util.Collection getType(IRDF_Resource resource)
IRDF_Graphspace
getType in interface IRDF_Graphspaceresource - An RDF_Resource
public org.apache.commons.collections.MultiMap getTypes()
IRDF_Graphspace
getTypes in interface IRDF_Graphspacepublic java.lang.String getURI()
IRDF_Graphspace
getURI in interface IdentifiablegetURI in interface IRDF_Graphspacepublic void setComments(org.apache.commons.collections.MultiMap comments)
IRDF_Graphspace
setComments in interface IRDF_Graphspacecomments - A MultiMap with keys RDF_Resource objects and values collections of RDF_Comment objectspublic void setDomains(org.apache.commons.collections.MultiMap domains)
IRDF_Graphspace
setDomains in interface IRDF_Graphspacedomains - A MultiMap with keys RDF_Property objects and values collections of RDF_Domains objectspublic void setIsDefinedBys(org.apache.commons.collections.MultiMap is_defined_bys)
IRDF_Graphspace
setIsDefinedBys in interface IRDF_Graphspaceis_defined_bys - A MultiMap with keys IRDF_Resource objects and values collections of RDF_IsDefinedBy objectspublic void setLabels(org.apache.commons.collections.MultiMap labels)
IRDF_Graphspace
setLabels in interface IRDF_Graphspacelabels - A MultiMap with keys RDF_Resource objects and values collections of RDF_Label objectspublic void setMembers(org.apache.commons.collections.MultiMap members)
IRDF_Graphspace
setMembers in interface IRDF_Graphspacemembers - A MultiMap with keys RDF_Container objects and values collections of RDF_Member objectspublic void setObjects(java.util.HashMap<IRDF_Statement,IRDF_Object> objects)
IRDF_Graphspace
setObjects in interface IRDF_Graphspaceobjects - A MultiMap with keys IRDF_Statement objects and values collections of RDF_Object objectspublic void setPredicates(java.util.HashMap<IRDF_Statement,IRDF_Predicate> predicates)
IRDF_Graphspace
setPredicates in interface IRDF_Graphspacepublic void setPropertyInstances(org.apache.commons.collections.MultiMap property_instances)
IRDF_Graphspace
setPropertyInstances in interface IRDF_Graphspaceproperty_instances - A HashMappublic void setRanges(org.apache.commons.collections.MultiMap ranges)
IRDF_Graphspace
setRanges in interface IRDF_Graphspaceranges - A MultiMap with keys IRDF_Property objects and values collections of RDF_Range objectspublic void setSeeAlsos(org.apache.commons.collections.MultiMap see_alsos)
IRDF_Graphspace
setSeeAlsos in interface IRDF_Graphspacesee_alsos - A MultiMap with keys IRDF_Resource objects and values collections of RDF_SeeAlso objectspublic void setSubClasses(org.apache.commons.collections.MultiMap sub_classes)
IRDF_Graphspace
setSubClasses in interface IRDF_Graphspacesub_classes - A MultiMap with keys RDF_Class objects and values collections of RDF_SubClass objectspublic void setSubProperties(org.apache.commons.collections.MultiMap sub_properies)
IRDF_Graphspace
setSubProperties in interface IRDF_Graphspacesub_properies - A MultiMap with keys RDF_Property objects and values collections of RDF_SubProperty objectspublic void setSubjects(java.util.HashMap<IRDF_Statement,IRDF_Subject> subjects)
IRDF_Graphspace
setSubjects in interface IRDF_Graphspacesubjects - A MultiMap with keys RDF_Statement objects and values collections of RDF_Subject objectspublic void setTypes(org.apache.commons.collections.MultiMap types)
IRDF_Graphspace
setTypes in interface IRDF_Graphspacetypes - A MultiMap with keys RDF_Resource objects and values collections of RDF_Type objectspublic void setURI(java.lang.String uri)
IRDF_Graphspace
setURI in interface IdentifiablesetURI in interface IRDF_Graphspaceuri - A Stringpublic void addGraphspaceDependency(IRDF_Graphspace graphspace)
IRDF_Graphspace
addGraphspaceDependency in interface IRDF_Graphspacegraphspace - An IRDF_Graphspace objectpublic void addNamespaceDependency(IRDF_Namespace namespace)
IRDF_Graphspace
addNamespaceDependency in interface IRDF_Graphspacenamespace - An IRDF_Namespace objectpublic java.util.HashMap<java.lang.String,IRDF_Graphspace> getGraphspaceDependencies()
IRDF_Graphspace
getGraphspaceDependencies in interface IRDF_Graphspacepublic java.util.HashMap<java.lang.String,IRDF_Namespace> getNamespaceDependencies()
IRDF_Graphspace
getNamespaceDependencies in interface IRDF_Graphspacepublic void setGraphspaceDependencies(java.util.HashMap<java.lang.String,IRDF_Graphspace> dependencies)
IRDF_Graphspace
setGraphspaceDependencies in interface IRDF_Graphspacedependencies - An HashMappublic void setNamespaceDependencies(java.util.HashMap<java.lang.String,IRDF_Namespace> dependencies)
IRDF_Graphspace
setNamespaceDependencies in interface IRDF_Graphspacedependencies - An HashMappublic java.util.Collection toTriples()
IRDF_Graphspace
toTriples in interface IRDF_Graphspacepublic IRDF_Model getModel()
getModel in interface IRDF_Graphspacepublic java.util.Collection<IRDF_Triple> getTriples()
IRDF_Graphspace
getTriples in interface IRDF_Graphspace
protected void setTypeTriple(IRDF_Resource old_resource,
IRDF_Type new_type_triple)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||