|
||||||||||
| 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
gr.forth.ics.rdfsuite.swkm.model.db.impl.RDFDB_Namespace
public class RDFDB_Namespace
| Field Summary |
|---|
| Fields inherited from class gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Namespace |
|---|
comments, domains, isdefinedbys, labels, log, members, objects, predicates, ranges, seealsos, subclasses, subjects, subproperties, types |
| Constructor Summary | |
|---|---|
RDFDB_Namespace(IRDF_Model model)
|
|
RDFDB_Namespace(java.lang.String namespace_uri,
IRDF_Model model)
|
|
| Method Summary | |
|---|---|
protected IRDF_MetaClass |
castClassToMetaClass(IRDF_Model model,
IRDF_Class rdf_class,
int kind)
Casting a Class into MetaClass. |
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 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_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_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)
Creates the type triple in case the object is a user defined metaclass |
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 If class is not found in main memory, db is searched |
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)
Creates the type triple in case the object is a user defined metaclass |
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 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 |
getClassFromDB(IRDFDB_Model model,
java.lang.String class_uri)
|
IRDF_MetaClass |
getMetaClassFromDB(IRDFDB_Model model,
java.lang.String meta_class_uri)
Fetches from DB metaclass with uri meta_class_uri |
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 The triple is not added in any namespace or in the model in this method |
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_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_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_Property |
getPropertyFromDB(IRDFDB_Model model,
java.lang.String property_uri)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gr.forth.ics.rdfsuite.swkm.model.IRDF_Namespace |
|---|
addClass, addNamespaceDependency, addProperty, addStatement, getClass, getClasses, getComment, getComments, getDomain, getDomains, getIsDefinedBy, getIsDefinedBys, getLabel, getLabels, getMember, getMembers, getModel, getNamespaceDependencies, getObject, getObjects, getPredicate, getPredicates, getProperties, getProperty, getRange, getRanges, getSeeAlso, getSeeAlsos, getStatement, getStatements, getSubClass, getSubClasses, getSubject, getSubjects, getSubProperties, getSubProperty, getTriples, getType, getTypes, getURI, setClasses, setNamespaceDependencies, setProperties, setStatements, setURI, toString, toTriples |
| Constructor Detail |
|---|
public RDFDB_Namespace(IRDF_Model model)
public RDFDB_Namespace(java.lang.String namespace_uri,
IRDF_Model model)
namespace_uri - | Method Detail |
|---|
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)
throws gr.forth.ics.rdfsuite.services.exceptions.TripleCreationException
enter_type_case_object_rdfschema_class in class RDF_Namespacegr.forth.ics.rdfsuite.services.exceptions.TripleCreationException - Essentially is some SQLException occurs during the fetching of resources from db
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)
throws gr.forth.ics.rdfsuite.services.exceptions.TripleCreationException
enter_type_case_object_metaclass in class RDF_Namespacegr.forth.ics.rdfsuite.services.exceptions.TripleCreationException - Essentially is some SQLException occurs during the fetching of resources from db
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)
throws gr.forth.ics.rdfsuite.services.exceptions.TripleCreationException
enter_type_case_object_resource in class RDF_Namespacegr.forth.ics.rdfsuite.services.exceptions.TripleCreationException - Essentially is some SQLException occurs during the fetching of resources from db
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)
throws gr.forth.ics.rdfsuite.services.exceptions.TripleCreationException
enter_type_case_object_metaproperty in class RDF_Namespacegr.forth.ics.rdfsuite.services.exceptions.TripleCreationException - Essentially is some SQLException occurs during the fetching of resources from db
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)
throws gr.forth.ics.rdfsuite.services.exceptions.TripleCreationException
enter_type_case_rdf_property in class RDF_Namespacegr.forth.ics.rdfsuite.services.exceptions.TripleCreationException - Essentially is some SQLException occurs during the fetching of resources from db
public IRDF_Property getPropertyFromDB(IRDFDB_Model model,
java.lang.String property_uri)
throws java.sql.SQLException
model - property_uri -
java.sql.SQLException - if some sql query aborts
public IRDF_Class getClassFromDB(IRDFDB_Model model,
java.lang.String class_uri)
throws java.sql.SQLException
java.sql.SQLException - if some sql query aborts
public IRDF_MetaClass getMetaClassFromDB(IRDFDB_Model model,
java.lang.String meta_class_uri)
throws java.sql.SQLException
model - meta_class_uri - The metaclass_uri we want to fetch
java.sql.SQLException - if some sql query aborts
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.TripleCreationException
enter_subClassOf in class RDF_Namespacegr.forth.ics.rdfsuite.services.exceptions.TripleCreationException - Essentially is some SQLException occurs during the fetching of resources from db
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.TripleCreationException
enter_subPropertyOf in class RDF_Namespacestrict - 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.TripleCreationException - Essentially is some SQLException occurs during the fetching of resources from db
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.TripleCreationException
enter_domain in class RDF_Namespacegr.forth.ics.rdfsuite.services.exceptions.TripleCreationException - Essentially is some SQLException occurs during the fetching of resources from db
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.TripleCreationException
enter_range in class RDF_Namespacegr.forth.ics.rdfsuite.services.exceptions.TripleCreationException - Essentially is some SQLException occurs during the fetching of resources from db
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.TripleCreationException
enter_type in class RDF_Namespacesubject - 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.TripleCreationException - Essentially is some SQLException occurs during the fetching of resources from db
protected IRDF_MetaClass castClassToMetaClass(IRDF_Model model,
IRDF_Class rdf_class,
int kind)
castClassToMetaClass in class RDF_Namespacerdf_class - kind -
protected IRDF_Class createClass(IRDF_Model model,
java.lang.String class_uri,
Position pos)
createClass in class RDF_Namespacemodel - subject - pos -
protected IRDF_MetaClass createMetaClassOfClasses(IRDF_Model model,
java.lang.String meta_class_uri,
Position pos)
createMetaClassOfClasses in class RDF_Namespacemodel - meta_class_uri - pos -
protected IRDF_MetaClass createMetaClassOfProperties(IRDF_Model model,
java.lang.String meta_class_uri,
Position pos)
createMetaClassOfProperties in class RDF_Namespacemodel - meta_class_uri - pos -
protected IRDF_Property createProperty(IRDF_Model model,
java.lang.String property_uri,
Position pos)
createProperty in class RDF_Namespacemodel - property_uri - pos -
protected IRDF_Type getOrCreateTypeTriple(IRDF_Model model,
IRDF_Resource subject_resource,
IRDF_Resource object_resource,
IRDF_Namespace namespace,
boolean inferred)
getOrCreateTypeTriple in class RDF_Namespace
protected IRDF_SubClass getOrCreateSubClassTriple(IRDF_Model model,
IRDF_Class subject_class,
IRDF_Class object_class,
IRDF_Namespace subject_namespace,
boolean inferred)
getOrCreateSubClassTriple in class RDF_Namespace
protected IRDF_Domain getOrCreateDomainTriple(IRDF_Model model,
IRDF_Property subject_property,
IRDF_Class object_class,
IRDF_Namespace subject_namespace,
boolean inferred)
getOrCreateDomainTriple in class RDF_Namespace
protected IRDF_Range getOrCreateRangeTriple(IRDF_Model model,
IRDF_Property subject_property,
IRDF_Class object_class,
IRDF_Namespace subject_namespace,
boolean inferred)
getOrCreateRangeTriple in class RDF_Namespace
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||