|
||||||||||
| 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_Namespace
public class RDF_Namespace
| Field Summary | |
|---|---|
protected org.apache.commons.collections.MultiMap |
comments
|
protected org.apache.commons.collections.MultiMap |
domains
|
protected org.apache.commons.collections.MultiMap |
isdefinedbys
|
protected org.apache.commons.collections.MultiMap |
labels
|
protected static org.apache.log4j.Logger |
log
|
protected org.apache.commons.collections.MultiMap |
members
|
protected java.util.HashMap<IRDF_Statement,IRDF_Object> |
objects
|
protected java.util.HashMap<IRDF_Statement,IRDF_Predicate> |
predicates
|
protected org.apache.commons.collections.MultiMap |
ranges
|
protected org.apache.commons.collections.MultiMap |
seealsos
|
protected org.apache.commons.collections.MultiMap |
subclasses
|
protected java.util.HashMap<IRDF_Statement,IRDF_Subject> |
subjects
|
protected org.apache.commons.collections.MultiMap |
subproperties
|
org.apache.commons.collections.MultiMap |
types
|
| Constructor Summary | |
|---|---|
RDF_Namespace(IRDF_Model model)
|
|
RDF_Namespace(java.lang.String namespace_uri,
IRDF_Model model)
|
|
| 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 |
protected IRDF_MetaClass |
castClassToMetaClass(IRDF_Model model,
IRDF_Class rdf_class,
int kind)
Casting a Class into MetaClass. |
protected void |
castClassToPropertyAndUpdateReferences(IRDF_Model model,
java.lang.String property_uri,
IRDF_Property rdf_property)
|
protected IRDF_Class |
createClass(IRDF_Model model,
java.lang.String class_uri,
Position pos)
Creates an IRDF_Class and adds it to this namespace,as well as performing all other initializations. |
protected IRDF_MetaClass |
createMetaClassOfClasses(IRDF_Model model,
java.lang.String meta_class_uri,
Position pos)
Creates an rdf metaclass but without creating the subclass triple to the rdf schema class which is the actual requirement for a class to be a metaclass |
protected IRDF_MetaClass |
createMetaClassOfProperties(IRDF_Model model,
java.lang.String meta_class_uri,
Position pos)
Creates an rdf metaclass but without creating the subclass triple to the rdf schema class which is the actual requirement for a class to be a metaclass |
protected IRDF_Property |
createProperty(IRDF_Model model,
java.lang.String property_uri,
Position pos)
Creates an IRDF_Property and adds it to this namespace,as well as performing all other initializations. |
protected IRDF_Statement |
createStatement(RDF_Model model,
java.lang.String statement_uri,
Position pos)
Creates an IRDF_Statement and adds it to this namespace,as well as performing all other initializations. |
protected int |
enter_comment(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
This method handles the comments on schema resources like classes,properties,etc The comments on class instances are handled by other method |
protected int |
enter_domain(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
|
protected int |
enter_isDefinedBy(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
|
protected int |
enter_label(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
|
protected int |
enter_property(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
java.lang.String graphspace_uri,
boolean strict,
RDF_Model model)
|
protected int |
enter_range(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
|
protected int |
enter_s_p_o(int i,
java.lang.String subject,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
|
protected int |
enter_seeAlso(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
|
protected int |
enter_subClassOf(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
IRDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
|
protected int |
enter_subPropertyOf(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
|
protected void |
enter_type_case_object_metaclass(java.lang.String subject,
IRDF_MetaClass object_metaclass,
Position pos,
java.lang.String graphspace_uri,
RDF_Model model,
IRDF_Namespace triple_namespace,
boolean inferred)
Note that this namespace is not necessarily the same with subject's namespace |
protected void |
enter_type_case_object_metaproperty(java.lang.String subject,
IRDF_MetaClass object_metaproperty,
Position pos,
java.lang.String graphspace_uri,
RDF_Model model,
IRDF_Namespace triple_namespace,
boolean inferred)
Note that this namespace is not necessarily the same with subject's namespace |
protected void |
enter_type_case_object_rdfschema_class(java.lang.String subject,
Position pos,
java.lang.String graphspace_uri,
IRDF_Model model,
IRDF_Namespace triple_namespace,
boolean inferred)
Note that this namespace is not necessarily the same with subject's namespace |
protected void |
enter_type_case_object_resource(java.lang.String subject,
IRDF_Resource object_resource,
Position pos,
java.lang.String graphspace_uri,
RDF_Model model,
IRDF_Namespace triple_namespace,
boolean inferred)
Note that this namespace is not necessarily the same with subject's namespace\ Creating a type triple A type B where we dont know what B is. |
protected void |
enter_type_case_rdf_property(java.lang.String subject,
Position pos,
java.lang.String graphspace_uri,
RDF_Model model,
IRDF_Namespace triple_namespace,
boolean inferred)
Note that this namespace is not necessarily the same with subject's namespace |
protected void |
enter_type_case_statement(java.lang.String subject,
Position pos,
java.lang.String graphspace_uri,
RDF_Model model,
IRDF_Namespace triple_namespace,
boolean inferred)
|
protected int |
enter_type(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
java.lang.String graphspace_uri,
boolean strict,
RDF_Model model)
|
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 |
protected IRDF_Comment |
getOrCreateCommentTriple(IRDF_Model model,
IRDF_Resource subject_resource,
IRDF_Literal comment,
IRDF_Namespace subject_namespace,
boolean inferred)
If a subclass triple for subject class and object_class already exists it retrieves it ore else it creates a new one |
protected IRDF_Domain |
getOrCreateDomainTriple(IRDF_Model model,
IRDF_Property subject_property,
IRDF_Class object_class,
IRDF_Namespace subject_namespace,
boolean inferred)
If a domain triple for subject property and object_class already exists it retrieves it or else it creates a new one |
protected IRDF_IsDefinedBy |
getOrCreateIsDefinedByTriple(IRDF_Model model,
IRDF_Resource subject_resource,
IRDF_Resource isdefinedby,
IRDF_Namespace subject_namespace,
boolean inferred)
If a subclass triple for subject class and object_class already exists it retrieves it ore else it creates a new one |
protected IRDF_Label |
getOrCreateLabelTriple(IRDF_Model model,
IRDF_Resource subject_resource,
IRDF_Literal label,
IRDF_Namespace subject_namespace,
boolean inferred)
If a subclass triple for subject class and object_class already exists it retrieves it ore else it creates a new one |
protected IRDF_Range |
getOrCreateRangeTriple(IRDF_Model model,
IRDF_Property subject_property,
IRDF_Class object_class,
IRDF_Namespace subject_namespace,
boolean inferred)
If a range triple for subject property and object_class already exists it retrieves it or else it creates a new one |
protected IRDF_SeeAlso |
getOrCreateSeeAlsoTriple(IRDF_Model model,
IRDF_Resource subject_class,
IRDF_Resource seealso,
IRDF_Namespace subject_namespace,
boolean inferred)
If a subclass triple for subject class and object_class already exists it retrieves it ore else it creates a new one |
protected IRDF_Object |
getOrCreateStatementObjectTriple(IRDF_Model model,
IRDF_Statement subject_statement,
java.lang.Object object,
IRDF_Namespace subject_namespace,
boolean inferred)
If a subproperty triple for subject property and object_property already exists it retrieves it or else it creates a new one |
protected IRDF_Predicate |
getOrCreateStatementPredicateTriple(IRDF_Model model,
IRDF_Statement subject_statement,
IRDF_Property object_resource,
IRDF_Namespace subject_namespace,
boolean inferred)
If a subproperty triple for subject property and object_property already exists it retrieves it or else it creates a new one |
protected IRDF_Subject |
getOrCreateStatementSubjectTriple(IRDF_Model model,
IRDF_Statement subject_statement,
IRDF_Resource object_resource,
IRDF_Namespace subject_namespace,
boolean inferred)
If a subproperty triple for subject property and object_property already exists it retrieves it or else it creates a new one |
protected IRDF_SubClass |
getOrCreateSubClassTriple(IRDF_Model model,
IRDF_Class subject_class,
IRDF_Class object_class,
IRDF_Namespace subject_namespace,
boolean inferred)
If a subclass triple for subject class and object_class already exists it retrieves it ore else it creates a new one |
protected IRDF_SubProperty |
getOrCreateSubPropertyTriple(IRDF_Model model,
IRDF_Property subject_property,
IRDF_Property object_property,
IRDF_Namespace subject_namespace,
boolean inferred)
If a subproperty triple for subject property and object_property already exists it retrieves it or else it creates a new one |
protected IRDF_Type |
getOrCreateTypeTriple(IRDF_Model model,
IRDF_Resource subject_resource,
IRDF_Resource object_resource,
IRDF_Namespace namespace,
boolean inferred)
If a type triple for subject resource with type the object_resource already exists it retrieves it or else if object_resource is null checks for a type triple with any object or else creates a new one |
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 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 |
int |
read_triple(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
java.lang.String graphspace_uri,
boolean strict,
RDF_Model model)
This method reads and tries to consume a triple created by a parser If the triple is not consumed(is not a schema definition triple) it returns false return 0 for false,needs to be fed to model, 1 for true, 2 for false and should not be fed to model(error) |
protected void |
removeSubClassTriplesOf(IRDF_Class rdf_class)
|
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 |
setSubjects(java.util.HashMap<IRDF_Statement,IRDF_Subject> subjects)
|
void |
setTypes(org.apache.commons.collections.MultiMap types)
|
void |
setURI(java.lang.String new_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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.commons.collections.MultiMap subclasses
protected org.apache.commons.collections.MultiMap subproperties
protected org.apache.commons.collections.MultiMap domains
protected org.apache.commons.collections.MultiMap ranges
protected java.util.HashMap<IRDF_Statement,IRDF_Subject> subjects
protected java.util.HashMap<IRDF_Statement,IRDF_Predicate> predicates
protected java.util.HashMap<IRDF_Statement,IRDF_Object> objects
protected org.apache.commons.collections.MultiMap comments
protected org.apache.commons.collections.MultiMap labels
protected org.apache.commons.collections.MultiMap seealsos
protected org.apache.commons.collections.MultiMap isdefinedbys
protected org.apache.commons.collections.MultiMap members
public org.apache.commons.collections.MultiMap types
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public RDF_Namespace(IRDF_Model model)
public RDF_Namespace(java.lang.String namespace_uri,
IRDF_Model model)
| Method Detail |
|---|
public void addClass(IRDF_Class rdf_class)
IRDF_Namespace
addClass in interface IRDF_Namespacerdf_class - An RDF_Class objectpublic void addProperty(IRDF_Property rdf_property)
IRDF_Namespace
addProperty in interface IRDF_Namespacerdf_property - An RDF_Property objectpublic void addStatement(IRDF_Statement rdf_statement)
IRDF_Namespace
addStatement in interface IRDF_Namespacerdf_statement - An RDF_Statement objectpublic IRDF_Class getClass(java.lang.String class_uri)
IRDF_Namespace
getClass in interface IRDF_Namespaceclass_uri - A String representing the uri of the class
public java.util.HashMap getClasses()
IRDF_Namespace
getClasses in interface IRDF_Namespacepublic java.util.Collection getComment(IRDF_Resource rdf_resource)
IRDF_Namespace
getComment in interface IRDF_Namespacerdf_resource - An RDF_Resource
public org.apache.commons.collections.MultiMap getComments()
IRDF_Namespace
getComments in interface IRDF_Namespacepublic org.apache.commons.collections.MultiMap getDomains()
IRDF_Namespace
getDomains in interface IRDF_Namespacepublic java.util.Collection getDomain(IRDF_Property rdf_property)
IRDF_Namespace
getDomain in interface IRDF_Namespacerdf_property - An RDF_Property
public java.util.Collection getIsDefinedBy(IRDF_Resource rdf_resource)
IRDF_Namespace
getIsDefinedBy in interface IRDF_Namespacerdf_resource - An IRDF_Resource
public org.apache.commons.collections.MultiMap getIsDefinedBys()
IRDF_Namespace
getIsDefinedBys in interface IRDF_Namespacepublic java.util.Collection getLabel(IRDF_Resource rdf_resource)
IRDF_Namespace
getLabel in interface IRDF_Namespacerdf_resource - An RDF_Resource
public org.apache.commons.collections.MultiMap getLabels()
IRDF_Namespace
getLabels in interface IRDF_Namespacepublic java.util.Collection getMember(IRDF_Container container)
IRDF_Namespace
getMember in interface IRDF_Namespacecontainer - An RDF_Container
public org.apache.commons.collections.MultiMap getMembers()
IRDF_Namespace
getMembers in interface IRDF_Namespacepublic IRDF_Object getObject(IRDF_Statement rdf_statement)
IRDF_Namespace
getObject in interface IRDF_Namespacerdf_statement - An IRDF_Statement
public java.util.HashMap<IRDF_Statement,IRDF_Object> getObjects()
IRDF_Namespace
getObjects in interface IRDF_Namespacepublic IRDF_Predicate getPredicate(IRDF_Statement statement)
IRDF_Namespace
getPredicate in interface IRDF_Namespacestatement - An IRDF_Statement
public java.util.HashMap<IRDF_Statement,IRDF_Predicate> getPredicates()
IRDF_Namespace
getPredicates in interface IRDF_Namespacepublic java.util.HashMap getProperties()
IRDF_Namespace
getProperties in interface IRDF_Namespacepublic IRDF_Property getProperty(java.lang.String property_uri)
IRDF_Namespace
getProperty in interface IRDF_Namespaceproperty_uri - A String representing the uri of the property
public java.util.Collection getRange(IRDF_Property rdf_property)
IRDF_Namespace
getRange in interface IRDF_Namespacerdf_property - An IRDF_Property
public org.apache.commons.collections.MultiMap getRanges()
IRDF_Namespace
getRanges in interface IRDF_Namespacepublic java.util.Collection getSeeAlso(IRDF_Resource rdf_resource)
IRDF_Namespace
getSeeAlso in interface IRDF_Namespacerdf_resource - An IRDF_Resource
public org.apache.commons.collections.MultiMap getSeeAlsos()
IRDF_Namespace
getSeeAlsos in interface IRDF_Namespacepublic IRDF_Statement getStatement(java.lang.String statement_uri)
IRDF_Namespace
getStatement in interface IRDF_Namespacestatement_uri - A String representing the uri of the statement
public java.util.HashMap getStatements()
IRDF_Namespace
getStatements in interface IRDF_Namespacepublic java.util.Collection getSubClass(IRDF_Class rdf_class)
IRDF_Namespace
getSubClass in interface IRDF_Namespacerdf_class - An RDF_Class
public org.apache.commons.collections.MultiMap getSubClasses()
IRDF_Namespace
getSubClasses in interface IRDF_Namespacepublic org.apache.commons.collections.MultiMap getSubProperties()
IRDF_Namespace
getSubProperties in interface IRDF_Namespacepublic java.util.Collection getSubProperty(IRDF_Property rdf_property)
IRDF_Namespace
getSubProperty in interface IRDF_Namespacerdf_property - An RDF_Property
public IRDF_Subject getSubject(IRDF_Statement rdf_statement)
IRDF_Namespace
getSubject in interface IRDF_Namespacerdf_statement - An RDF_Statement
public java.util.HashMap<IRDF_Statement,IRDF_Subject> getSubjects()
IRDF_Namespace
getSubjects in interface IRDF_Namespacepublic java.util.Collection getType(IRDF_Resource resource)
IRDF_Namespace
getType in interface IRDF_Namespaceresource - An RDF_Resource
public org.apache.commons.collections.MultiMap getTypes()
IRDF_Namespace
getTypes in interface IRDF_Namespacepublic java.lang.String getURI()
IRDF_Namespace
getURI in interface IdentifiablegetURI in interface IRDF_Namespacepublic void setClasses(java.util.HashMap classes)
IRDF_Namespace
setClasses in interface IRDF_Namespaceclasses - A HashMap of (String)class_uri,RDF_Class pairspublic void setProperties(java.util.HashMap properties)
IRDF_Namespace
setProperties in interface IRDF_Namespaceproperties - A HashMap of (String)property_uri,RDF_Property pairspublic void setStatements(java.util.HashMap statements)
IRDF_Namespace
setStatements in interface IRDF_Namespacepublic void setSubjects(java.util.HashMap<IRDF_Statement,IRDF_Subject> subjects)
public void setTypes(org.apache.commons.collections.MultiMap types)
public void setURI(java.lang.String new_uri)
IRDF_Namespace
setURI in interface IdentifiablesetURI in interface IRDF_Namespacenew_uri - A Stringpublic void addNamespaceDependency(IRDF_Namespace namespace)
IRDF_Namespace
addNamespaceDependency in interface IRDF_Namespacenamespace - An IRDF_Namespace objectpublic java.util.HashMap<java.lang.String,IRDF_Namespace> getNamespaceDependencies()
IRDF_Namespace
getNamespaceDependencies in interface IRDF_Namespacepublic void setNamespaceDependencies(java.util.HashMap<java.lang.String,IRDF_Namespace> dependencies)
IRDF_Namespace
setNamespaceDependencies in interface IRDF_Namespacedependencies - An HashMap
protected IRDF_MetaClass castClassToMetaClass(IRDF_Model model,
IRDF_Class rdf_class,
int kind)
rdf_class - kind -
public int read_triple(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
java.lang.String graphspace_uri,
boolean strict,
RDF_Model model)
protected int enter_property(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
java.lang.String graphspace_uri,
boolean strict,
RDF_Model model)
protected int enter_s_p_o(int i,
java.lang.String subject,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
throws java.util.NoSuchElementException
i - subject - object - pos - model - graphspace_uri - strict -
java.util.NoSuchElementException
protected int enter_label(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
subject - predicate - object - pos - model - graphspace_uri - strict -
protected int enter_comment(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
protected int enter_isDefinedBy(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
subject - predicate - object - pos - model - graphspace_uri - strict -
protected int enter_seeAlso(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
subject - predicate - object - pos - model - graphspace_uri - strict -
protected int enter_range(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
throws gr.forth.ics.rdfsuite.services.exceptions.ParsingException
subject - predicate - object - pos - model - graphspace_uri - strict -
gr.forth.ics.rdfsuite.services.exceptions.ParsingException - In case a namesapce cannot be stored with neither the rdf/xml nor the trig parser
protected int enter_domain(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
throws gr.forth.ics.rdfsuite.services.exceptions.ParsingException
subject - predicate - object - pos - model - graphspace_uri - strict -
gr.forth.ics.rdfsuite.services.exceptions.ParsingException - in case a namespace cannot be parsed with neither the rdf/xml nor the trig parser
protected int enter_subPropertyOf(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
RDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
throws gr.forth.ics.rdfsuite.services.exceptions.ParsingException
subject - predicate - object - pos - model - graphspace_uri - strict - return 0 for false,needs to be fed to model, 1 for true, 2 for false and should not be fed to model(error)
gr.forth.ics.rdfsuite.services.exceptions.ParsingException - in case a namespace cannot be parsed with neither the rdf/xml nor the trig parser
protected int enter_subClassOf(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
IRDF_Model model,
java.lang.String graphspace_uri,
boolean strict)
throws gr.forth.ics.rdfsuite.services.exceptions.ParsingException
subject - predicate - object - pos - model - graphspace_uri - strict -
gr.forth.ics.rdfsuite.services.exceptions.ParsingException - in case a namespace cannot be parsed with neither the rdf/xml nor the trig parser
protected int enter_type(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
java.lang.String graphspace_uri,
boolean strict,
RDF_Model model)
throws gr.forth.ics.rdfsuite.services.exceptions.ParsingException
subject - predicate - object - pos - graphspace_uri - strict - If true all the necessary checks will be performed while if it is false we will perform a good will building
gr.forth.ics.rdfsuite.services.exceptions.ParsingException - in case a namespace cannot be parsed with neither the rdf/xml nor the trig parser
protected void enter_type_case_object_rdfschema_class(java.lang.String subject,
Position pos,
java.lang.String graphspace_uri,
IRDF_Model model,
IRDF_Namespace triple_namespace,
boolean inferred)
protected IRDF_Type getOrCreateTypeTriple(IRDF_Model model,
IRDF_Resource subject_resource,
IRDF_Resource object_resource,
IRDF_Namespace namespace,
boolean inferred)
protected IRDF_SubClass getOrCreateSubClassTriple(IRDF_Model model,
IRDF_Class subject_class,
IRDF_Class object_class,
IRDF_Namespace subject_namespace,
boolean inferred)
protected IRDF_Comment getOrCreateCommentTriple(IRDF_Model model,
IRDF_Resource subject_resource,
IRDF_Literal comment,
IRDF_Namespace subject_namespace,
boolean inferred)
protected IRDF_Label getOrCreateLabelTriple(IRDF_Model model,
IRDF_Resource subject_resource,
IRDF_Literal label,
IRDF_Namespace subject_namespace,
boolean inferred)
protected IRDF_SeeAlso getOrCreateSeeAlsoTriple(IRDF_Model model,
IRDF_Resource subject_class,
IRDF_Resource seealso,
IRDF_Namespace subject_namespace,
boolean inferred)
protected IRDF_IsDefinedBy getOrCreateIsDefinedByTriple(IRDF_Model model,
IRDF_Resource subject_resource,
IRDF_Resource isdefinedby,
IRDF_Namespace subject_namespace,
boolean inferred)
protected IRDF_SubProperty getOrCreateSubPropertyTriple(IRDF_Model model,
IRDF_Property subject_property,
IRDF_Property object_property,
IRDF_Namespace subject_namespace,
boolean inferred)
protected IRDF_Subject getOrCreateStatementSubjectTriple(IRDF_Model model,
IRDF_Statement subject_statement,
IRDF_Resource object_resource,
IRDF_Namespace subject_namespace,
boolean inferred)
throws gr.forth.ics.rdfsuite.services.exceptions.TripleCreationException
gr.forth.ics.rdfsuite.services.exceptions.TripleCreationException - in case something goes wrong in the triple creation
protected IRDF_Predicate getOrCreateStatementPredicateTriple(IRDF_Model model,
IRDF_Statement subject_statement,
IRDF_Property object_resource,
IRDF_Namespace subject_namespace,
boolean inferred)
throws gr.forth.ics.rdfsuite.services.exceptions.TripleCreationException
gr.forth.ics.rdfsuite.services.exceptions.TripleCreationException - in case something goes wrong with the triple creation
protected IRDF_Object getOrCreateStatementObjectTriple(IRDF_Model model,
IRDF_Statement subject_statement,
java.lang.Object object,
IRDF_Namespace subject_namespace,
boolean inferred)
throws gr.forth.ics.rdfsuite.services.exceptions.TripleCreationException
gr.forth.ics.rdfsuite.services.exceptions.TripleCreationException - in case something goes wrong with the triple creation
protected IRDF_Domain getOrCreateDomainTriple(IRDF_Model model,
IRDF_Property subject_property,
IRDF_Class object_class,
IRDF_Namespace subject_namespace,
boolean inferred)
protected IRDF_Range getOrCreateRangeTriple(IRDF_Model model,
IRDF_Property subject_property,
IRDF_Class object_class,
IRDF_Namespace subject_namespace,
boolean inferred)
protected void enter_type_case_object_metaclass(java.lang.String subject,
IRDF_MetaClass object_metaclass,
Position pos,
java.lang.String graphspace_uri,
RDF_Model model,
IRDF_Namespace triple_namespace,
boolean inferred)
protected void enter_type_case_object_resource(java.lang.String subject,
IRDF_Resource object_resource,
Position pos,
java.lang.String graphspace_uri,
RDF_Model model,
IRDF_Namespace triple_namespace,
boolean inferred)
protected void enter_type_case_rdf_property(java.lang.String subject,
Position pos,
java.lang.String graphspace_uri,
RDF_Model model,
IRDF_Namespace triple_namespace,
boolean inferred)
protected void enter_type_case_object_metaproperty(java.lang.String subject,
IRDF_MetaClass object_metaproperty,
Position pos,
java.lang.String graphspace_uri,
RDF_Model model,
IRDF_Namespace triple_namespace,
boolean inferred)
protected void enter_type_case_statement(java.lang.String subject,
Position pos,
java.lang.String graphspace_uri,
RDF_Model model,
IRDF_Namespace triple_namespace,
boolean inferred)
protected IRDF_Property createProperty(IRDF_Model model,
java.lang.String property_uri,
Position pos)
model - property_uri - pos -
protected void castClassToPropertyAndUpdateReferences(IRDF_Model model,
java.lang.String property_uri,
IRDF_Property rdf_property)
protected IRDF_Class createClass(IRDF_Model model,
java.lang.String class_uri,
Position pos)
model - subject - pos -
protected IRDF_MetaClass createMetaClassOfClasses(IRDF_Model model,
java.lang.String meta_class_uri,
Position pos)
model - meta_class_uri - pos -
protected IRDF_MetaClass createMetaClassOfProperties(IRDF_Model model,
java.lang.String meta_class_uri,
Position pos)
model - meta_class_uri - pos -
protected IRDF_Statement createStatement(RDF_Model model,
java.lang.String statement_uri,
Position pos)
model - subject - pos -
public java.util.Collection toTriples()
IRDF_Namespace
toTriples in interface IRDF_Namespacepublic java.lang.String toString()
toString in interface IRDF_NamespacetoString in class java.lang.Objectpublic IRDF_Model getModel()
getModel in interface IRDF_Namespacepublic java.util.Collection<IRDF_Triple> getTriples()
IRDF_Namespace
getTriples in interface IRDF_Namespaceprotected void removeSubClassTriplesOf(IRDF_Class rdf_class)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||