|
||||||||||
| 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_Model
public class RDF_Model
| Field Summary | |
|---|---|
protected AvailableStreams |
available_streams
|
protected RDF_DAG |
class_dag
Utility variables |
protected java.util.HashMap<java.lang.String,IRDF_Individual> |
class_instances
RDF object variables |
protected org.apache.commons.collections.MultiMap |
comments
|
protected org.apache.commons.collections.MultiMap |
comments_hashed_on_object
|
protected java.util.Map |
comments_hashed_on_subject_object
|
protected java.util.HashMap<java.lang.String,IRDF_Container> |
containers
|
protected org.apache.commons.collections.MultiMap |
domains
|
protected org.apache.commons.collections.MultiMap |
domains_hashed_on_object
|
protected java.util.Map |
domains_hashed_on_subject_object
|
protected boolean |
fetch_all_ns
|
protected java.util.HashMap<java.lang.String,IRDF_Graphspace> |
graphspaces
|
HierarchyLabeler |
hlabel
|
protected org.apache.commons.collections.MultiMap |
isdefinedbys
|
protected org.apache.commons.collections.MultiMap |
isdefinedbys_hashed_on_object
|
protected java.util.Map |
isdefinedbys_hashed_on_subject_object
|
protected boolean |
label_created
|
protected org.apache.commons.collections.MultiMap |
labels
|
protected org.apache.commons.collections.MultiMap |
labels_hashed_on_object
|
protected java.util.Map |
labels_hashed_on_subject_object
|
protected java.util.HashMap<java.lang.String,IRDF_Literal> |
literals
|
protected static org.apache.log4j.Logger |
log
|
protected org.apache.commons.collections.MultiMap |
members
|
protected org.apache.commons.collections.MultiMap |
members_hashed_on_object
|
protected java.util.Map |
members_hashed_on_subject_object
|
protected RDF_DAG |
meta_class_dag
|
protected RDF_DAG |
meta_property_dag
|
static gr.forth.ics.taskmonitor.Monitor |
monitor
|
protected java.util.HashMap<java.lang.String,IRDF_Namespace> |
namespaces
|
protected java.util.HashMap<IRDF_Statement,IRDF_Object> |
objects
|
protected java.util.HashMap<java.lang.Object,IRDF_Object> |
objects_hashed_on_object
|
protected java.util.HashMap<MultiKey,IRDF_Object> |
objects_hashed_on_subject_object
|
static java.lang.String |
PLAIN_TRIPLES
|
protected java.util.HashMap<IRDF_Statement,IRDF_Predicate> |
predicates
|
protected java.util.HashMap<IRDF_Resource,IRDF_Predicate> |
predicates_hashed_on_object
|
protected java.util.HashMap<MultiKey,IRDF_Predicate> |
predicates_hashed_on_subject_object
|
protected java.util.Map<java.lang.String,java.util.List<java.util.Map>> |
predicatesMaps
|
protected RDF_DAG |
property_dag
|
protected org.apache.commons.collections.MultiMap |
property_instances
|
protected java.util.Map |
property_instances_hashed_on_all
|
protected org.apache.commons.collections.MultiMap |
property_instances_hashed_on_object
|
protected org.apache.commons.collections.MultiMap |
property_instances_hashed_on_predicate_object
|
protected org.apache.commons.collections.MultiMap |
property_instances_hashed_on_subject
|
protected org.apache.commons.collections.MultiMap |
property_instances_hashed_on_subject_object
|
protected org.apache.commons.collections.MultiMap |
property_instances_hashed_on_subject_predicate
|
protected org.apache.commons.collections.MultiMap |
ranges
|
protected org.apache.commons.collections.MultiMap |
ranges_hashed_on_object
|
protected java.util.Map |
ranges_hashed_on_subject_object
|
static java.lang.String |
RDF_XML
|
protected java.util.HashMap<java.lang.String,IRDF_Resource> |
resources
|
protected org.apache.commons.collections.MultiMap |
seealsos
|
protected org.apache.commons.collections.MultiMap |
seealsos_hashed_on_object
|
protected java.util.Map |
seealsos_hashed_on_subject_object
|
protected boolean |
strict
|
protected org.apache.commons.collections.MultiMap |
subclasses
|
protected org.apache.commons.collections.MultiMap |
subclasses_hashed_on_object
|
protected java.util.Map |
subclasses_hashed_on_subject_object
|
protected java.util.HashMap<IRDF_Statement,IRDF_Subject> |
subjects
|
protected java.util.HashMap<IRDF_Resource,IRDF_Subject> |
subjects_hashed_on_object
|
protected java.util.HashMap<MultiKey,IRDF_Subject> |
subjects_hashed_on_subject_object
|
protected org.apache.commons.collections.MultiMap |
subproperties
|
protected org.apache.commons.collections.MultiMap |
subproperties_hashed_on_object
|
protected java.util.Map |
subproperties_hashed_on_subject_object
|
static long |
time
|
static java.lang.String |
TRIG
|
protected org.apache.commons.collections.MultiMap |
types
|
protected org.apache.commons.collections.MultiMap |
types_hashed_on_object
|
protected java.util.Map |
types_hashed_on_subject_object
|
protected ValidationParams |
validation_params
|
| Constructor Summary | |
|---|---|
RDF_Model()
|
|
| Method Summary | |
|---|---|
void |
addClassInstance(IRDF_Individual class_instance)
Adds a class instance in MM |
void |
addComment(IRDF_Resource resource,
IRDF_Comment comment)
Adds a comment relation in Main Memory |
void |
addContainer(IRDF_Container container)
Adds a container in MM |
void |
addDomain(IRDF_Property property,
IRDF_Domain domain)
Adds a domain relation in Main Memory |
void |
addGraphspace(IRDF_Graphspace graphspace)
Adds an RDF_Graphspace object in the HashMap of RDF_Graphspace objects with key its uri |
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 |
addLiteral(IRDF_Literal literal)
|
void |
addMember(IRDF_Container container,
IRDF_Member member)
Adds a member relation in Main Memory |
void |
addNamespace(IRDF_Namespace namespace)
Adds an RDF_Namespace object in the HashMap of RDF_Namespace objects with key its uri |
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)
Adds a property instance in MM |
void |
addRange(IRDF_Property property,
IRDF_Range range)
Adds a range relation in Main Memory |
protected void |
addResource(IRDF_Resource resource)
|
void |
addSeeAlso(IRDF_Resource resource,
IRDF_SeeAlso seealso)
Adds a seeAlso relation in Main Memory |
boolean |
addStatement(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
java.lang.String namespace_uri,
java.lang.String graphspace_uri,
Position pos)
Explicitly adds a string triple in the given namespace,graphspace When this method is not called iternally by the model, the default namespaces, rdf_scheme,rdf.xml_schema,rdfsuite should be imported using the appropriate import methods in the model. |
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 |
protected void |
castResourcesToClasses(IRDF_MetaClass rdf_meta_class)
This method iterates over the type triples and casts to classes all resources that are subjects of triples with object this metaclass |
protected void |
castResourcesToClassInstances(IRDF_Class rdf_class)
This method iterates over the type triples and casts to class instances all resources that are subjects of triples with object this class |
protected void |
castResourcesToProperties(IRDF_MetaClass rdf_meta_class)
This method iterates over the type triples and casts to properties all resources that are subjects of triples with object this metaclass(of properties) |
RDF_DAG |
createClassDag()
Creates the subsumption dag for all the model's classes |
RDF_DAG |
createClassDag(boolean createAlways)
getDirectAncestors returns the class itself which has to be removed in order for no loops to appear |
protected IRDF_Individual |
createClassInstance(java.lang.String class_instance_uri,
Position pos)
|
protected IRDF_Container |
createContainer(java.lang.String container_uri,
int kind,
Position pos)
|
void |
createDags()
Creates the subsumption dags for classes,proeprties,metaclasses,metaproperties. |
void |
createLabels()
Given the class dag,property dag,metaclass dag nad metaproperty dag for this model assignes a unique label to each resource of the model |
RDF_DAG |
createMetaClassDag()
Creates the subsumption dag for all the model's metaclass |
RDF_DAG |
createMetaClassDag(boolean createAlways)
|
RDF_DAG |
createMetaPropertyDag()
Creates the subsumprion dag for all the model's metaproperties |
RDF_DAG |
createMetaPropertyDag(boolean createAlways)
|
protected void |
createPostorder(RDF_DAG subClassDag,
RDF_DAG subPropertyDag,
RDF_DAG subMetaClassDag,
RDF_DAG subMetaPropertyDag)
|
RDF_DAG |
createPropertyDag()
Creates the subsumprion dag for all the model's properties |
protected RDF_PropertyInstance |
createPropertyInstance(java.lang.String uri,
IRDF_Resource subject_resource,
java.lang.Object object,
Position pos)
|
IRDF_Resource |
createResource(java.lang.String resource_uri,
Position pos)
|
void |
eliminateRedundancies()
Eliminates redundant triples in model. |
protected void |
enter_alt(java.lang.String subject,
Position pos,
java.lang.String graphspace_uri,
java.lang.String namespace_uri)
|
protected void |
enter_bag(java.lang.String subject,
Position pos,
java.lang.String graphspace_uri,
java.lang.String namespace_uri)
|
protected void |
enter_class_instance(java.lang.String subject,
Position pos,
java.lang.String graphspace_uri,
IRDF_Class object_class,
java.lang.String namespace_uri)
|
protected boolean |
enter_comment(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
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,
java.lang.String graphspace_uri,
boolean strict)
|
protected int |
enter_property_instance(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
java.lang.String graphspace_uri,
java.lang.String namespace_uri,
boolean strict)
|
protected void |
enter_sequence(java.lang.String subject,
Position pos,
java.lang.String graphspace_uri,
java.lang.String namespace_uri)
|
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,
java.lang.String namespace_uri)
|
AvailableStreams |
getAvailableStreams()
Retrieves the Available namespace streams for building this model |
RDF_DAG |
getClass_dag()
|
java.util.Collection<IRDF_Class> |
getClasses(boolean considerRDFNS,
boolean considerXSDNS)
|
IRDF_Individual |
getClassInstance(java.lang.String class_instance_uri)
Retrieves a class instance given its uri |
java.util.HashMap<java.lang.String,IRDF_Individual> |
getClassInstances()
Retrieves all class instances from MM |
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 |
IRDF_Comment |
getCommentWithSubjectAndObject(IRDF_Resource subject,
IRDF_Literal object)
|
IRDF_Container |
getContainer(java.lang.String container_uri)
Retrieves a container given its uri |
java.util.HashMap<java.lang.String,IRDF_Container> |
getContainers()
Retrieves all containers from MM |
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 |
IRDF_Domain |
getDomainWithSubjectAndObject(IRDF_Resource subject,
IRDF_Resource object)
|
boolean |
getFetch_all_ns()
|
IRDF_Graphspace |
getGraphspace(java.lang.String graphspace_uri)
Retrieves an RDF_Graphspace from the MM using the given graphspace uri as a key |
java.util.HashMap<java.lang.String,IRDF_Graphspace> |
getGraphspaces()
Retrieves all the Graphspaces stored in Main Memory(MM) |
HierarchyLabeler |
getHlabel()
|
java.util.Collection<IRDF_Type> |
getInstances(IRDF_Class rdf_class)
Retrieves the Collection of RDF_Type objects in which the given class "participates" as the type class. |
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 |
IRDF_IsDefinedBy |
getIsDefinedByWithSubjectAndObject(IRDF_Resource subject,
IRDF_Resource object)
|
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 |
boolean |
getLabelsCreated()
Returns true if labels are created for this model |
IRDF_Label |
getLabelWithSubjectAndObject(IRDF_Resource subject,
IRDF_Literal object)
|
IRDF_Literal |
getLiteral(java.lang.String literal)
|
java.util.HashMap<java.lang.String,IRDF_Literal> |
getLiterals()
|
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_Member |
getMemberWithSubjectAndObject(IRDF_Container subject,
java.lang.Object object)
|
IRDF_Member |
getMemberWithSubjectAndObject(IRDF_Resource subject,
java.lang.Object object)
|
RDF_DAG |
getMetaClass_dag()
|
RDF_DAG |
getMetaProperty_dag()
|
IRDF_Namespace |
getNamespace(java.lang.String namespace_uri)
Retrieves an RDF_Namespace from the MM using the given namespace uri as a key |
java.util.HashMap<java.lang.String,IRDF_Namespace> |
getNamespaces()
Retrieves all the Namespaces stored in Main Memory(MM) |
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_Resource subject_resource,
IRDF_Literal comment,
boolean inferred)
|
IRDF_Graphspace |
getOrCreateGraphspace(java.lang.String graphspace_uri)
This method retrieves an RDF_Graphspace with a given uri. |
protected IRDF_Label |
getOrCreateLabelTriple(IRDF_Resource subject_resource,
IRDF_Literal label,
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_Literal |
getOrCreateLiteral(java.lang.String literal)
|
protected IRDF_Member |
getOrCreateMemberTriple(IRDF_Container subject_resource,
java.lang.Object member,
int member_index,
boolean inferred)
|
IRDF_Namespace |
getOrCreateNamespace(java.lang.String namespace_uri)
This method retrieves an RDF_Namespace with a given uri from MM. |
protected IRDF_Resource |
getOrCreateResource(java.lang.String resource_uri,
Position pos)
|
protected IRDF_Type |
getOrCreateTypeTriple(IRDF_Resource subject_resource,
IRDF_Resource object_resource,
boolean inferred,
IRDF_Namespace ns)
|
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.Collection<IRDF_Property> |
getProperties(boolean considerRDFNS,
boolean considerXSDNS)
|
RDF_DAG |
getProperty_dag()
|
java.util.Collection<IRDF_PropertyInstance> |
getPropertyInstance(java.lang.String property_instance_uri)
Retrieves a property instance given its uri |
org.apache.commons.collections.MultiMap |
getPropertyInstances()
Retrieves all the property instances stored in MM |
java.util.Collection |
getPropertyInstanceWithObject(java.lang.String object,
java.lang.String property_instance_uri)
|
java.util.Collection |
getPropertyInstanceWithSubject(java.lang.String subject,
java.lang.String property_instance_uri)
|
java.util.Collection<IRDF_PropertyInstance> |
getPropertyInstanceWithSubjectAndObject(java.lang.String subject,
java.lang.String object)
Retrieves all the property instances with the given subject and object |
IRDF_PropertyInstance |
getPropertyInstanceWithSubjectPredicateAndObject(java.lang.String subject,
java.lang.String property_instance_uri,
java.lang.String object)
Retrieves all the property instances with the given subject,predicate,object |
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 |
IRDF_Range |
getRangeWithSubjectAndObject(IRDF_Resource subject,
IRDF_Resource object)
|
protected IRDF_Resource |
getResource(java.lang.String resource_uri)
|
protected java.util.HashMap |
getResources()
|
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_SeeAlso |
getSeeAlsoWithSubjectAndObject(IRDF_Resource subject,
IRDF_Resource object)
|
org.apache.commons.collections.MultiMap |
getSubClasses()
Retrieves all the subClass relations stored in main memory |
java.util.Collection<IRDF_SubClass> |
getSubClassOf(IRDF_Class rdf_class)
Retrieves the Collection of RDF_SubClass objects in which rdf_class "participates" as the subClass!!! |
IRDF_SubClass |
getSubClassWithSubjectAndObject(IRDF_Resource subject,
IRDF_Resource object)
|
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<IRDF_SubProperty> |
getSubProperty(IRDF_Property rdf_property)
Deprecated. |
java.util.Collection<IRDF_SubProperty> |
getSubPropertyOf(IRDF_Property property)
|
IRDF_SubProperty |
getSubPropertyWithSubjectAndObject(IRDF_Resource subject,
IRDF_Resource object)
|
java.util.Collection<IRDF_SubClass> |
getSuperClassOf(IRDF_Class rdf_class)
Retrieves the Collection of RDF_SubClass objects in which rdf_class "participates" as the superclass |
java.util.Collection<IRDF_SubProperty> |
getSuperProperty(IRDF_Property property)
Deprecated. |
java.util.Collection<IRDF_SubProperty> |
getSuperPropertyOf(IRDF_Property rdf_property)
Retrieves the subproperties of this property |
java.util.Collection<IRDF_Type> |
getType(IRDF_Resource resource)
Retrieves the Collection of RDF_Type objects in which rdf_type "participates" |
protected org.apache.commons.collections.MultiMap |
getTypes_hashed_on_object()
|
protected java.util.Map |
getTypes_hashed_on_subject_object()
|
org.apache.commons.collections.MultiMap |
getTypes()
Retrieves all the type relations stored in main memory |
IRDF_Type |
getTypeWithSubjectAndObject(IRDF_Resource subject,
IRDF_Resource object)
|
ValidationParams |
getValidation_params()
Validation Params essentially pertains parameters related to the namespace fetching, the parser and so on. |
void |
import_default_namespaces()
Creates in MM RDFSchema and RDF namespaces and initializes their classes and properties |
void |
import_graphspaces(java.util.ArrayList import_graphspaces,
java.lang.String base_uri)
This method loads all the graphspaces specified in the import_graphspaces parameter in the model. |
protected void |
import_namespace(java.lang.String import_namespace,
parser rdf_parser)
|
protected void |
import_namespace(java.lang.String import_namespace,
java.lang.String baseURI)
|
void |
import_namespaces(java.util.ArrayList import_namespaces,
parser p)
|
void |
import_namespaces(java.util.ArrayList import_namespaces,
java.lang.String base_uri)
VRP Comments: Will be called by the parser if he reached the EOF of the current file. |
void |
import_rdfsuite_namespace()
Creates in MM RDFSuite namespace and initializes its classes |
void |
import_xmlschema_namespace()
Creates in MM the XML Schema namespace and initializes its classes |
protected void |
initResourceIDs()
|
boolean |
isStrict()
|
protected void |
read_rdf_xml(java.io.InputStream file,
java.lang.String base_uri,
boolean fetch_dependencies,
boolean strict)
This method parses an RDF/XML file using vrp parser and creates the corresponding RDF_Namespace and RDF_Graphspace objects |
void |
read_Trig(java.io.InputStream file,
java.lang.String b_uri,
boolean fetch_dependencies,
boolean strict)
|
int |
read_triple(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
java.lang.String graphspace_uri,
boolean strict,
java.lang.String namespace_uri)
|
void |
read(java.io.InputStream file,
java.lang.String base_uri,
java.lang.String triple_format,
boolean fetch_dependencies,
boolean strict)
Receives input from an Input Stream an loads the corresponding namespaces/graphspaces to the model The base_uri given as a parameter should be the same as the one included in the file(if one) |
void |
read(java.lang.String filename,
java.lang.String base_uri,
java.lang.String format,
boolean fetch_dependencies,
boolean strict)
Receives input from a file an loads the corresponding namespaces/graphspaces to the model The base_uri given as a parameter should be the same as the one included in the file(if one) |
void |
readAll(java.util.Map<java.lang.String,java.lang.String> files,
java.lang.String triple_format,
boolean fetch_dependencies,
boolean strict)
Receives all the available files in a Map along with their uris and makes sure they are parsed in the correct order resolving any possible dependencies between them. |
protected void |
removeSubClassTriplesOf(IRDF_Class rdf_class)
|
IRDF_Resource |
retrieveResource(java.lang.String uri)
Retrieves the resource withthe given uri from its namesapce( if exists) |
java.util.Iterator<IRDF_Triple> |
retrieveTriples(IRDF_Resource subject,
IRDF_Property predicate,
java.lang.Object object)
Retrieves the triples (if any) with the given subject, predicate and/or object In case subject,predicate or object has value null this implies matching any. |
java.util.Iterator<IRDF_Triple> |
retrieveTriples(java.lang.String subject,
java.lang.String predicate,
java.lang.String object)
Retrieves the triples (if any) with the given subject,predicate and/or object In case subject,predicate or object has value null this implies matching any. |
java.util.Iterator<IRDF_Triple> |
retrieveTriplesByObject(java.lang.Object object)
|
java.util.Iterator<IRDF_Triple> |
retrieveTriplesByPredicate(java.lang.String predicate)
|
java.util.Iterator<IRDF_Triple> |
retrieveTriplesBySubject(IRDF_Resource subject)
|
void |
setAvailableStreams(AvailableStreams avail)
Sets the available namespace streams for fetching uris for building this model |
void |
setClass_dag(RDF_DAG class_dag)
|
void |
setClassInstances(java.util.HashMap class_instances)
Sets all the class instances in MM |
void |
setComments(IRDF_Resource resource,
java.util.Collection<IRDF_Comment> comments)
Sets the comments of a single resource |
void |
setComments(org.apache.commons.collections.MultiMap comments)
Sets the comment Relationships defined in this namespace |
void |
setContainers(java.util.HashMap containers)
Sets all the containers in MM |
void |
setDomains(IRDF_Property property,
java.util.Collection<IRDF_Domain> domains)
Sets the domains of a single property |
void |
setDomains(org.apache.commons.collections.MultiMap domains)
Sets the domain Relationships defined in this namespace |
void |
setFetch_all_ns(boolean fetch_all_ns)
|
void |
setGraphspaces(java.util.HashMap graphspaces)
Sets the HashMap of graphspaces in the Main Memory |
void |
setHlabel(HierarchyLabeler hlabel)
|
void |
setIsDefinedBys(IRDF_Resource resource,
java.util.Collection<IRDF_IsDefinedBy> is_defined_bys)
Sets the isDefinedBys of a single resource |
void |
setIsDefinedBys(org.apache.commons.collections.MultiMap is_defined_bys)
Sets the isDefinedBy Relationships defined in this namespace |
void |
setLabels(IRDF_Resource resource,
java.util.Collection<IRDF_Label> labels)
Sets the labels of a single resource |
void |
setLabels(org.apache.commons.collections.MultiMap labels)
Sets the label Relationships defined in this namespace |
void |
setLabelsCreated(boolean created)
Sets whether labels are created for this model |
void |
setLiterals(java.util.HashMap<java.lang.String,IRDF_Literal> literals)
|
void |
setMembers(IRDF_Container container,
java.util.Collection<IRDF_Member> members)
|
void |
setMembers(org.apache.commons.collections.MultiMap members)
Sets the container membership Relationships defined in this namespace |
void |
setMetaClass_dag(RDF_DAG meta_class_dag)
|
void |
setMetaProperty_dag(RDF_DAG meta_property_dag)
|
void |
setNamespaces(java.util.HashMap namespaces)
Sets the HashMap of namespaces in the Main Memory |
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 |
setProperty_dag(RDF_DAG property_dag)
|
void |
setPropertyInstances(org.apache.commons.collections.MultiMap property_instances)
Sets all the property instances in MM |
void |
setRanges(IRDF_Property property,
java.util.Collection<IRDF_Range> ranges)
Sets the ranges of a single property |
void |
setRanges(org.apache.commons.collections.MultiMap ranges)
Sets the range Relationships defined in this namespace |
protected void |
setResources(java.util.HashMap resources)
|
void |
setSeeAlsos(IRDF_Resource resource,
java.util.Collection<IRDF_SeeAlso> see_alsos)
Sets the see alsos of a single resource |
void |
setSeeAlsos(org.apache.commons.collections.MultiMap see_alsos)
Sets the seeAlso Relationships defined in this namespace |
void |
setStrict(boolean strict)
|
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(IRDF_Property property,
java.util.Collection<IRDF_SubProperty> sub_properies)
Sets the superproperties of a single property |
void |
setSubProperties(org.apache.commons.collections.MultiMap sub_properies)
Sets the subProperty Relationships defined in this namespace |
void |
setSuperClassesOf(IRDF_Class rdf_class,
java.util.Collection<IRDF_SubClass> sub_classes)
Sets the superclasses of a single class |
void |
setTypes(IRDF_Resource resource,
java.util.Collection<IRDF_Type> types)
Sets the types of a single resource |
void |
setTypes(org.apache.commons.collections.MultiMap types)
Sets the type Relationships defined in this namespace |
void |
setValidation_params(ValidationParams validation_params)
|
java.util.Iterator<IRDF_Triple> |
toTriples()
|
java.util.Collection |
toTriples(boolean setOnly)
This method produces the statements(triples) that derive out of the Collection of namespaces and graphspaces constituting this model by calling the corresponding toTriples() methods from each namespace/graphspace in the Collections accordingly. |
java.util.Collection<RDF_Triple> |
toTriples(java.lang.String uri)
This method produces the statements(triples) that derive out of the namespace or graphspace described by the given uri |
protected void |
updateResourceReferencesInTriples(IRDF_Resource original_rdf_resource,
IRDF_Resource new_rdf_resource)
Replaces rdf_class with rdf_meta_class in all triples that rdf_class occures |
void |
validate()
Performs a validation of the schema and data loaded in main memory |
java.util.Map<java.lang.String,java.io.File> |
write_file(java.lang.String output_path,
java.lang.String triple_format,
java.lang.String base_uri,
boolean setOnly,
boolean multiple)
This method outputs the the namespaces/graphspaces correlated to this model in one or more output files according to the value of parameter multiple. |
java.util.Map<java.lang.String,java.io.File> |
write_original_and_inferred_in_file(java.lang.String output_path,
java.lang.String triple_format,
java.lang.String base_uri,
boolean setOnly,
boolean multiple)
This method writes in files both the original triples steming from the source files and the inferred triples created arbitrarily from the model to make it complete( in case the original files were not complete) Example: If a file contains only triple A subClassOf B, the model will add A type Class and B type Class triples. |
java.util.Map |
write_original_and_inferred_in_string(java.lang.String format,
java.lang.String base_uri,
boolean setOnly,
boolean multiple)
This method writes in strings both the original triples steming from the source files and the inferred triples created arbitrarily from the model to make it complete( in case the original files were not complete) Example: If a file contains only triple A subClassOf B, the model will add A type Class and B type Class triples. |
java.util.Map |
write_string(java.lang.String format,
java.lang.String base_uri,
boolean setOnly,
boolean multiple)
This method outputs the namespaces/graphspaces correlated to this model in a HashMap of |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String TRIG
public static java.lang.String RDF_XML
public static java.lang.String PLAIN_TRIPLES
protected java.util.HashMap<java.lang.String,IRDF_Individual> class_instances
protected org.apache.commons.collections.MultiMap property_instances
protected org.apache.commons.collections.MultiMap property_instances_hashed_on_subject
protected org.apache.commons.collections.MultiMap property_instances_hashed_on_object
protected org.apache.commons.collections.MultiMap property_instances_hashed_on_subject_predicate
protected org.apache.commons.collections.MultiMap property_instances_hashed_on_predicate_object
protected org.apache.commons.collections.MultiMap property_instances_hashed_on_subject_object
protected java.util.Map property_instances_hashed_on_all
protected java.util.HashMap<java.lang.String,IRDF_Container> containers
protected java.util.HashMap<java.lang.String,IRDF_Namespace> namespaces
protected java.util.HashMap<java.lang.String,IRDF_Graphspace> graphspaces
protected org.apache.commons.collections.MultiMap subclasses
protected org.apache.commons.collections.MultiMap subclasses_hashed_on_object
protected java.util.Map subclasses_hashed_on_subject_object
protected org.apache.commons.collections.MultiMap subproperties
protected org.apache.commons.collections.MultiMap subproperties_hashed_on_object
protected java.util.Map subproperties_hashed_on_subject_object
protected org.apache.commons.collections.MultiMap domains
protected org.apache.commons.collections.MultiMap domains_hashed_on_object
protected java.util.Map domains_hashed_on_subject_object
protected org.apache.commons.collections.MultiMap ranges
protected org.apache.commons.collections.MultiMap ranges_hashed_on_object
protected java.util.Map ranges_hashed_on_subject_object
protected java.util.HashMap<IRDF_Statement,IRDF_Subject> subjects
protected java.util.HashMap<IRDF_Resource,IRDF_Subject> subjects_hashed_on_object
protected java.util.HashMap<MultiKey,IRDF_Subject> subjects_hashed_on_subject_object
protected java.util.HashMap<IRDF_Statement,IRDF_Predicate> predicates
protected java.util.HashMap<IRDF_Resource,IRDF_Predicate> predicates_hashed_on_object
protected java.util.HashMap<MultiKey,IRDF_Predicate> predicates_hashed_on_subject_object
protected java.util.HashMap<IRDF_Statement,IRDF_Object> objects
protected java.util.HashMap<java.lang.Object,IRDF_Object> objects_hashed_on_object
protected java.util.HashMap<MultiKey,IRDF_Object> objects_hashed_on_subject_object
protected org.apache.commons.collections.MultiMap comments
protected org.apache.commons.collections.MultiMap comments_hashed_on_object
protected java.util.Map comments_hashed_on_subject_object
protected org.apache.commons.collections.MultiMap labels
protected org.apache.commons.collections.MultiMap labels_hashed_on_object
protected java.util.Map labels_hashed_on_subject_object
protected org.apache.commons.collections.MultiMap seealsos
protected org.apache.commons.collections.MultiMap seealsos_hashed_on_object
protected java.util.Map seealsos_hashed_on_subject_object
protected org.apache.commons.collections.MultiMap isdefinedbys
protected org.apache.commons.collections.MultiMap isdefinedbys_hashed_on_object
protected java.util.Map isdefinedbys_hashed_on_subject_object
protected org.apache.commons.collections.MultiMap members
protected org.apache.commons.collections.MultiMap members_hashed_on_object
protected java.util.Map members_hashed_on_subject_object
protected org.apache.commons.collections.MultiMap types
protected org.apache.commons.collections.MultiMap types_hashed_on_object
protected java.util.Map types_hashed_on_subject_object
protected java.util.HashMap<java.lang.String,IRDF_Resource> resources
protected java.util.HashMap<java.lang.String,IRDF_Literal> literals
protected java.util.Map<java.lang.String,java.util.List<java.util.Map>> predicatesMaps
public static long time
protected RDF_DAG class_dag
protected RDF_DAG meta_class_dag
protected RDF_DAG meta_property_dag
protected RDF_DAG property_dag
protected AvailableStreams available_streams
protected static final org.apache.log4j.Logger log
public static final gr.forth.ics.taskmonitor.Monitor monitor
public HierarchyLabeler hlabel
protected ValidationParams validation_params
protected boolean fetch_all_ns
protected boolean strict
protected boolean label_created
| Constructor Detail |
|---|
public RDF_Model()
| Method Detail |
|---|
public void addClassInstance(IRDF_Individual class_instance)
IRDF_Model
addClassInstance in interface IRDF_Modelclass_instance - An RDF_ClassInstance objectpublic void addContainer(IRDF_Container container)
IRDF_Model
addContainer in interface IRDF_Modelcontainer - An RDF_Container objectpublic void addGraphspace(IRDF_Graphspace graphspace)
IRDF_Model
addGraphspace in interface IRDF_Modelpublic void addNamespace(IRDF_Namespace namespace)
IRDF_Model
addNamespace in interface IRDF_Modelnamespace - An RDF_Namespace objectpublic void addPropertyInstance(IRDF_PropertyInstance property_instance)
IRDF_Model
addPropertyInstance in interface IRDF_Modelproperty_instance - An RDF_PropertyInstance objectpublic IRDF_Individual getClassInstance(java.lang.String class_instance_uri)
IRDF_Model
getClassInstance in interface IRDF_Modelclass_instance_uri - A String
public java.util.HashMap<java.lang.String,IRDF_Individual> getClassInstances()
IRDF_Model
getClassInstances in interface IRDF_Modelpublic IRDF_Container getContainer(java.lang.String container_uri)
IRDF_Model
getContainer in interface IRDF_Modelcontainer_uri - A String
public java.util.HashMap<java.lang.String,IRDF_Container> getContainers()
IRDF_Model
getContainers in interface IRDF_Modelpublic IRDF_Graphspace getGraphspace(java.lang.String graphspace_uri)
IRDF_Model
getGraphspace in interface IRDF_Modelgraphspace_uri - The String graphspace uri of the desired graphspace
public java.util.HashMap<java.lang.String,IRDF_Graphspace> getGraphspaces()
IRDF_Model
getGraphspaces in interface IRDF_Modelpublic IRDF_Namespace getNamespace(java.lang.String namespace_uri)
IRDF_Model
getNamespace in interface IRDF_Modelnamespace_uri - The String namespace uri of the desired namespace
public java.util.HashMap<java.lang.String,IRDF_Namespace> getNamespaces()
IRDF_Model
getNamespaces in interface IRDF_Model
public IRDF_PropertyInstance getPropertyInstanceWithSubjectPredicateAndObject(java.lang.String subject,
java.lang.String property_instance_uri,
java.lang.String object)
throws gr.forth.ics.rdfsuite.services.exceptions.TripleCreationException
IRDF_Model
getPropertyInstanceWithSubjectPredicateAndObject in interface IRDF_Modelgr.forth.ics.rdfsuite.services.exceptions.TripleCreationException - if some of the elements of the property instance cannot be found in the model
public java.util.Collection<IRDF_PropertyInstance> getPropertyInstanceWithSubjectAndObject(java.lang.String subject,
java.lang.String object)
IRDF_Model
getPropertyInstanceWithSubjectAndObject in interface IRDF_Model
public java.util.Collection getPropertyInstanceWithSubject(java.lang.String subject,
java.lang.String property_instance_uri)
public java.util.Collection getPropertyInstanceWithObject(java.lang.String object,
java.lang.String property_instance_uri)
public java.util.Collection<IRDF_PropertyInstance> getPropertyInstance(java.lang.String property_instance_uri)
IRDF_Model
getPropertyInstance in interface IRDF_Modelproperty_instance_uri - A String
public org.apache.commons.collections.MultiMap getPropertyInstances()
IRDF_Model
getPropertyInstances in interface IRDF_Modelpublic void setClassInstances(java.util.HashMap class_instances)
IRDF_Model
setClassInstances in interface IRDF_Modelclass_instances - A HashMap with (String)class instance uris as keys and RDF_ClassInstance objects as valuespublic void setContainers(java.util.HashMap containers)
IRDF_Model
setContainers in interface IRDF_Modelcontainers - A HashMap with (String)container uris as keys and RDF_Container objects as valuespublic void setGraphspaces(java.util.HashMap graphspaces)
IRDF_Model
setGraphspaces in interface IRDF_Modelgraphspaces - A HashMap with key String graphspace_uris and values RDF_Graphspace objectspublic void setNamespaces(java.util.HashMap namespaces)
IRDF_Model
setNamespaces in interface IRDF_Modelnamespaces - A HashMap with key String namespace_uris and values RDF_Namespace objectspublic void setPropertyInstances(org.apache.commons.collections.MultiMap property_instances)
IRDF_Model
setPropertyInstances in interface IRDF_Modelproperty_instances - A MultiMap with (String)property instance uris as keys and RDF_PropertyInstance objects as values
The reason for the use of
multimap is that there may be more than one property instances wuth the same uri "connecting" different resources
public void readAll(java.util.Map<java.lang.String,java.lang.String> files,
java.lang.String triple_format,
boolean fetch_dependencies,
boolean strict)
throws java.sql.SQLException,
java.lang.ClassNotFoundException,
java.io.IOException,
gr.forth.ics.rdfsuite.services.exceptions.ParsingException,
gr.forth.ics.rdfsuite.services.exceptions.TrigException,
gr.forth.ics.rdfsuite.services.exceptions.InvalidTripleFormatException,
java.io.IOException
readAll in interface IRDF_Modelfiles - An Maptriple_format - RDF_Model.RDF_XML( For rdf/xml files),RDF_Model.TRIG( for trig files)fetch_dependencies - If true all the dependent namespacies will be fetched from their actual location(Requires
a valid uri to be set)strict - boolean If true the model will perform all the necessary cross checks while building. In the other case it
will perform a "good will" building supposing that the input files are already tested!
java.sql.SQLException - For compliance to RDFDB_Model.read
java.lang.ClassNotFoundException - For compliance to RDFDB_Model.read
java.io.IOException - In case some input stream is malformed
gr.forth.ics.rdfsuite.services.exceptions.ParsingException - In case something went wrong in the parsing of the file
gr.forth.ics.rdfsuite.services.exceptions.TrigException - In case the trig parser throws an Exception
gr.forth.ics.rdfsuite.services.exceptions.InvalidTripleFormatException - in case parameter triple format is not one of the predefined values
public void read(java.io.InputStream file,
java.lang.String base_uri,
java.lang.String triple_format,
boolean fetch_dependencies,
boolean strict)
throws java.sql.SQLException,
java.lang.ClassNotFoundException,
java.io.IOException,
gr.forth.ics.rdfsuite.services.exceptions.ParsingException,
gr.forth.ics.rdfsuite.services.exceptions.TrigException,
gr.forth.ics.rdfsuite.services.exceptions.InvalidTripleFormatException
IRDF_Model
read in interface IRDF_Modelfile - base_uri - If null then we retrieve the base uri from the file itselftriple_format - fetch_dependencies - strict - If true all the necessary checks will be performed while if it is false we will perform a good will building
java.sql.SQLException - For compliance to RDFDB_Model.read
java.lang.ClassNotFoundException - For compliance to RDFDB_Model.read
java.io.IOException - In case the input stream is malformed
gr.forth.ics.rdfsuite.services.exceptions.ParsingException - In case something went wrong in the parsing of the file
gr.forth.ics.rdfsuite.services.exceptions.TrigException - In case the trig parser throws an Exception
gr.forth.ics.rdfsuite.services.exceptions.InvalidTripleFormatException - in case parameter triple format is not one of the predefined values
public void read_Trig(java.io.InputStream file,
java.lang.String b_uri,
boolean fetch_dependencies,
boolean strict)
throws java.io.IOException,
gr.forth.ics.rdfsuite.services.exceptions.TrigException,
gr.forth.ics.rdfsuite.services.exceptions.IncompatibleUrisException
file - b_uri - fetch_dependencies - strict - If true all the necessary checks will be performed while if it is false we will perform a good will building
java.io.IOException - in case the input stream is malformed
gr.forth.ics.rdfsuite.services.exceptions.TrigException - in case the trig parser throws an Exception
gr.forth.ics.rdfsuite.services.exceptions.IncompatibleUrisException - if the base uri of a file and the base uri passed as a parameter are different
public void import_graphspaces(java.util.ArrayList import_graphspaces,
java.lang.String base_uri)
throws gr.forth.ics.rdfsuite.services.exceptions.ParsingException
IRDF_Model
import_graphspaces in interface IRDF_Modelimport_graphspaces - base_uri -
gr.forth.ics.rdfsuite.services.exceptions.ParsingException - if a graphspace fetched from available streams cannot be parsed with neither the rdf/xml
nor with the trig parser
public void import_namespaces(java.util.ArrayList import_namespaces,
parser p)
throws gr.forth.ics.rdfsuite.services.exceptions.ParsingException
gr.forth.ics.rdfsuite.services.exceptions.ParsingException
public void import_namespaces(java.util.ArrayList import_namespaces,
java.lang.String base_uri)
throws gr.forth.ics.rdfsuite.services.exceptions.ParsingException
import_namespaces in interface IRDF_Modelimport_namespaces - the namespaces to be loaded in the modelbase_uri - the base uri
gr.forth.ics.rdfsuite.services.exceptions.ParsingException - if a namespace cannot be parsed neither with the rdf/xml not with the trig parser
protected void import_namespace(java.lang.String import_namespace,
parser rdf_parser)
throws gr.forth.ics.rdfsuite.services.exceptions.UnresolvedDependencyException,
gr.forth.ics.rdfsuite.services.exceptions.RdfFileFormatException,
gr.forth.ics.rdfsuite.services.exceptions.ParsingException
import_namespace - rdf_parser -
gr.forth.ics.rdfsuite.services.exceptions.UnresolvedDependencyException - If a namespace cannot be fetched from its actual location
gr.forth.ics.rdfsuite.services.exceptions.RdfFileFormatException - If an rdf file contains a structure that does not break vrp but is unaccepted,like
gr.forth.ics.rdfsuite.services.exceptions.ParsingException - if a namespace cannot be parsed neither with the rdf/xml not with the trig parser
a null namesapace prefix
protected void import_namespace(java.lang.String import_namespace,
java.lang.String baseURI)
throws gr.forth.ics.rdfsuite.services.exceptions.UnresolvedDependencyException,
gr.forth.ics.rdfsuite.services.exceptions.RdfFileFormatException,
gr.forth.ics.rdfsuite.services.exceptions.ParsingException
import_namespace - baseURI -
gr.forth.ics.rdfsuite.services.exceptions.UnresolvedDependencyException - If a namespace cannot be fetched from its actual location
gr.forth.ics.rdfsuite.services.exceptions.RdfFileFormatException - If an rdf file contains a structure that does not break vrp but is unaccepted,like
gr.forth.ics.rdfsuite.services.exceptions.ParsingException - if a namespace cannot be parsed neither with the rdf/xml not with the trig parser
a null namesapace prefixpublic void import_xmlschema_namespace()
import_xmlschema_namespace in interface IRDF_Modelpublic void import_rdfsuite_namespace()
import_rdfsuite_namespace in interface IRDF_Modelpublic void import_default_namespaces()
import_default_namespaces in interface IRDF_Model
protected void read_rdf_xml(java.io.InputStream file,
java.lang.String base_uri,
boolean fetch_dependencies,
boolean strict)
throws java.io.IOException
strict - If true all the necessary checks will be performed while if it is false we will perform a good will building
java.io.IOException - if the input stream is malformed
public void read(java.lang.String filename,
java.lang.String base_uri,
java.lang.String format,
boolean fetch_dependencies,
boolean strict)
throws gr.forth.ics.rdfsuite.services.exceptions.ParsingException,
java.sql.SQLException,
java.lang.ClassNotFoundException,
java.io.IOException,
gr.forth.ics.rdfsuite.services.exceptions.TrigException,
gr.forth.ics.rdfsuite.services.exceptions.InvalidTripleFormatException
IRDF_Model
read in interface IRDF_Modelfilename - base_uri - format - fetch_dependencies - strict - If true all the necessary checks will be performed while if it is false we will perform a "good will" building
java.sql.SQLException - For compliance to RDFDB_Model.read
java.lang.ClassNotFoundException - For compliance to RDFDB_Model.read
java.io.IOException - In case the input stream is malformed
gr.forth.ics.rdfsuite.services.exceptions.ParsingException - In case something went wrong in the parsing of the file
gr.forth.ics.rdfsuite.services.exceptions.TrigException - In case the trig parser throws an Exception
gr.forth.ics.rdfsuite.services.exceptions.InvalidTripleFormatException - in case parameter triple format is not one of the predefined valuespublic ValidationParams getValidation_params()
public void setValidation_params(ValidationParams validation_params)
public boolean getFetch_all_ns()
public void setFetch_all_ns(boolean fetch_all_ns)
public IRDF_Namespace getOrCreateNamespace(java.lang.String namespace_uri)
getOrCreateNamespace in interface IRDF_Modelnamespace_uri - the uri of the namespace
public IRDF_Graphspace getOrCreateGraphspace(java.lang.String graphspace_uri)
getOrCreateGraphspace in interface IRDF_Modelgraphspace_uri - the uri of the graphspace
public AvailableStreams getAvailableStreams()
IRDF_Model
getAvailableStreams in interface IRDF_Modelpublic void setAvailableStreams(AvailableStreams avail)
IRDF_Model
setAvailableStreams in interface IRDF_Modelavail - An AvailableStreams objectpublic boolean isStrict()
public void setStrict(boolean strict)
public boolean addStatement(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
java.lang.String namespace_uri,
java.lang.String graphspace_uri,
Position pos)
throws gr.forth.ics.rdfsuite.services.exceptions.TripleCreationException
IRDF_Model
addStatement in interface IRDF_Modelsubject - The subject of the triplepredicate - The predicate of the tripleobject - The object of the triplenamespace_uri - The namespace to add the triplegraphspace_uri - The graphspace to add the triplepos - The position of the triple in the file, null if the method is used to explicitly add
a triple to the model
gr.forth.ics.rdfsuite.services.exceptions.TripleCreationException - if the default namespaces (RDFSchema,RDF,XMLSchema,RDFSuite)have not yet been imported
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,
java.lang.String namespace_uri)
subject - predicate - object - pos - graphspace_uri - strict - namespace_uri -
protected int enter_property_instance(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
java.lang.String graphspace_uri,
java.lang.String namespace_uri,
boolean strict)
throws gr.forth.ics.rdfsuite.services.exceptions.ParsingException
subject - predicate - object - pos - graphspace_uri - namespace_uri - strict -
gr.forth.ics.rdfsuite.services.exceptions.ParsingException - if a namespace cannot be parsed with neither the rdf/xml nor the trig parser
protected RDF_PropertyInstance createPropertyInstance(java.lang.String uri,
IRDF_Resource subject_resource,
java.lang.Object object,
Position pos)
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,
java.lang.String namespace_uri)
subject - predicate - object - pos - graphspace_uri - strict - namespace_uri -
protected void enter_class_instance(java.lang.String subject,
Position pos,
java.lang.String graphspace_uri,
IRDF_Class object_class,
java.lang.String namespace_uri)
protected void enter_alt(java.lang.String subject,
Position pos,
java.lang.String graphspace_uri,
java.lang.String namespace_uri)
protected void enter_bag(java.lang.String subject,
Position pos,
java.lang.String graphspace_uri,
java.lang.String namespace_uri)
protected void enter_sequence(java.lang.String subject,
Position pos,
java.lang.String graphspace_uri,
java.lang.String namespace_uri)
protected IRDF_Container createContainer(java.lang.String container_uri,
int kind,
Position pos)
protected IRDF_Individual createClassInstance(java.lang.String class_instance_uri,
Position pos)
public RDF_DAG createClassDag()
IRDF_Model
createClassDag in interface IRDF_Modelpublic RDF_DAG createClassDag(boolean createAlways)
public RDF_DAG createMetaClassDag()
IRDF_Model
createMetaClassDag in interface IRDF_Modelpublic RDF_DAG createMetaClassDag(boolean createAlways)
public RDF_DAG createMetaPropertyDag()
IRDF_Model
createMetaPropertyDag in interface IRDF_Modelpublic RDF_DAG createMetaPropertyDag(boolean createAlways)
public void createLabels()
throws gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException
IRDF_Model
createLabels in interface IRDF_Modelgr.forth.ics.rdfsuite.services.exceptions.LabelCreationException
protected void createPostorder(RDF_DAG subClassDag,
RDF_DAG subPropertyDag,
RDF_DAG subMetaClassDag,
RDF_DAG subMetaPropertyDag)
throws gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException
gr.forth.ics.rdfsuite.services.exceptions.LabelCreationExceptionpublic void createDags()
IRDF_Model
createDags in interface IRDF_Modelpublic RDF_DAG createPropertyDag()
IRDF_Model
createPropertyDag in interface IRDF_Modelpublic HierarchyLabeler getHlabel()
public void setHlabel(HierarchyLabeler hlabel)
protected IRDF_Type getOrCreateTypeTriple(IRDF_Resource subject_resource,
IRDF_Resource object_resource,
boolean inferred,
IRDF_Namespace ns)
public void addComment(IRDF_Resource resource,
IRDF_Comment comment)
IRDF_Model
addComment in interface IRDF_Model
public void addDomain(IRDF_Property property,
IRDF_Domain domain)
IRDF_Model
addDomain in interface IRDF_Model
public void addIsDefinedBy(IRDF_Resource resource,
IRDF_IsDefinedBy isdefinedby)
IRDF_Model
addIsDefinedBy in interface IRDF_Model
public void addLabel(IRDF_Resource resource,
IRDF_Label label)
IRDF_Model
addLabel in interface IRDF_Model
public void addMember(IRDF_Container container,
IRDF_Member member)
IRDF_Model
addMember in interface IRDF_Model
public void addObject(IRDF_Statement statement,
IRDF_Object object)
IRDF_Model
addObject in interface IRDF_Model
public void addPredicate(IRDF_Statement statement,
IRDF_Predicate predicate)
IRDF_Model
addPredicate in interface IRDF_Model
public void addRange(IRDF_Property property,
IRDF_Range range)
IRDF_Model
addRange in interface IRDF_Model
public void addSeeAlso(IRDF_Resource resource,
IRDF_SeeAlso seealso)
IRDF_Model
addSeeAlso in interface IRDF_Model
public void addSubClass(IRDF_Class rdf_class,
IRDF_SubClass subclass)
IRDF_Model
addSubClass in interface IRDF_Model
public void addSubProperty(IRDF_Property property,
IRDF_SubProperty subproperty)
IRDF_Model
addSubProperty in interface IRDF_Model
public void addSubject(IRDF_Statement statement,
IRDF_Subject subject)
IRDF_Model
addSubject in interface IRDF_Model
public void addType(IRDF_Resource resource,
IRDF_Type type)
IRDF_Model
addType in interface IRDF_Modelpublic java.util.Collection getComment(IRDF_Resource rdf_resource)
IRDF_Model
getComment in interface IRDF_Modelrdf_resource - An RDF_Resource
public org.apache.commons.collections.MultiMap getComments()
IRDF_Model
getComments in interface IRDF_Modelpublic org.apache.commons.collections.MultiMap getDomains()
IRDF_Model
getDomains in interface IRDF_Modelpublic java.util.Collection getDomain(IRDF_Property rdf_property)
IRDF_Model
getDomain in interface IRDF_Modelrdf_property - An RDF_Property
public java.util.Collection getIsDefinedBy(IRDF_Resource rdf_resource)
IRDF_Model
getIsDefinedBy in interface IRDF_Modelrdf_resource - An IRDF_Resource
public org.apache.commons.collections.MultiMap getIsDefinedBys()
IRDF_Model
getIsDefinedBys in interface IRDF_Modelpublic java.util.Collection getLabel(IRDF_Resource rdf_resource)
IRDF_Model
getLabel in interface IRDF_Modelrdf_resource - An RDF_Resource
public org.apache.commons.collections.MultiMap getLabels()
IRDF_Model
getLabels in interface IRDF_Modelpublic java.util.Collection getMember(IRDF_Container container)
IRDF_Model
getMember in interface IRDF_Modelcontainer - An RDF_Container
public org.apache.commons.collections.MultiMap getMembers()
IRDF_Model
getMembers in interface IRDF_Modelpublic IRDF_Object getObject(IRDF_Statement rdf_statement)
IRDF_Model
getObject in interface IRDF_Modelrdf_statement - An IRDF_Statement
public java.util.HashMap<IRDF_Statement,IRDF_Object> getObjects()
IRDF_Model
getObjects in interface IRDF_Modelpublic IRDF_Predicate getPredicate(IRDF_Statement statement)
IRDF_Model
getPredicate in interface IRDF_Modelstatement - An IRDF_Statement
public java.util.HashMap<IRDF_Statement,IRDF_Predicate> getPredicates()
IRDF_Model
getPredicates in interface IRDF_Modelpublic java.util.Collection getRange(IRDF_Property rdf_property)
IRDF_Model
getRange in interface IRDF_Modelrdf_property - An IRDF_Property
public org.apache.commons.collections.MultiMap getRanges()
IRDF_Model
getRanges in interface IRDF_Modelpublic java.util.Collection getSeeAlso(IRDF_Resource rdf_resource)
IRDF_Model
getSeeAlso in interface IRDF_Modelrdf_resource - An IRDF_Resource
public org.apache.commons.collections.MultiMap getSeeAlsos()
IRDF_Model
getSeeAlsos in interface IRDF_Modelpublic java.util.Collection<IRDF_SubClass> getSuperClassOf(IRDF_Class rdf_class)
getSuperClassOf in interface IRDF_Modelrdf_class - An RDF_Class
public java.util.Collection<IRDF_SubClass> getSubClassOf(IRDF_Class rdf_class)
getSubClassOf in interface IRDF_Modelrdf_class - An RDF_Class
public org.apache.commons.collections.MultiMap getSubClasses()
IRDF_Model
getSubClasses in interface IRDF_Modelpublic org.apache.commons.collections.MultiMap getSubProperties()
IRDF_Model
getSubProperties in interface IRDF_Model@Deprecated public java.util.Collection<IRDF_SubProperty> getSubProperty(IRDF_Property rdf_property)
IRDF_Model
getSubProperty in interface IRDF_Modelrdf_property - An RDF_Property
public java.util.Collection<IRDF_SubProperty> getSuperPropertyOf(IRDF_Property rdf_property)
@Deprecated public java.util.Collection<IRDF_SubProperty> getSuperProperty(IRDF_Property property)
getSuperProperty in interface IRDF_Modelproperty - An RDF_Property
IRDF_Model.getSuperProperty(gr.forth.ics.rdfsuite.swkm.model.IRDF_Property)public java.util.Collection<IRDF_SubProperty> getSubPropertyOf(IRDF_Property property)
public IRDF_Subject getSubject(IRDF_Statement rdf_statement)
IRDF_Model
getSubject in interface IRDF_Modelrdf_statement - An RDF_Statement
public java.util.HashMap<IRDF_Statement,IRDF_Subject> getSubjects()
IRDF_Model
getSubjects in interface IRDF_Modelpublic java.util.Collection<IRDF_Type> getType(IRDF_Resource resource)
IRDF_Model
getType in interface IRDF_Modelresource - An RDF_Resource
public java.util.Collection<IRDF_Type> getInstances(IRDF_Class rdf_class)
IRDF_Model
getInstances in interface IRDF_Modelrdf_class - An IRDF_Class
public IRDF_Type getTypeWithSubjectAndObject(IRDF_Resource subject,
IRDF_Resource object)
public IRDF_Member getMemberWithSubjectAndObject(IRDF_Resource subject,
java.lang.Object object)
public IRDF_IsDefinedBy getIsDefinedByWithSubjectAndObject(IRDF_Resource subject,
IRDF_Resource object)
public IRDF_SeeAlso getSeeAlsoWithSubjectAndObject(IRDF_Resource subject,
IRDF_Resource object)
public IRDF_Label getLabelWithSubjectAndObject(IRDF_Resource subject,
IRDF_Literal object)
public IRDF_Member getMemberWithSubjectAndObject(IRDF_Container subject,
java.lang.Object object)
public IRDF_Comment getCommentWithSubjectAndObject(IRDF_Resource subject,
IRDF_Literal object)
public IRDF_Range getRangeWithSubjectAndObject(IRDF_Resource subject,
IRDF_Resource object)
public IRDF_Domain getDomainWithSubjectAndObject(IRDF_Resource subject,
IRDF_Resource object)
public IRDF_SubProperty getSubPropertyWithSubjectAndObject(IRDF_Resource subject,
IRDF_Resource object)
public IRDF_SubClass getSubClassWithSubjectAndObject(IRDF_Resource subject,
IRDF_Resource object)
public org.apache.commons.collections.MultiMap getTypes()
IRDF_Model
getTypes in interface IRDF_Modelpublic void setComments(org.apache.commons.collections.MultiMap comments)
IRDF_Model
setComments in interface IRDF_Modelcomments - A MultiMap with keys RDF_Resource objects and values collections of RDF_Comment objectspublic void setDomains(org.apache.commons.collections.MultiMap domains)
IRDF_Model
setDomains in interface IRDF_Modeldomains - 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_Model
setIsDefinedBys in interface IRDF_Modelis_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_Model
setLabels in interface IRDF_Modellabels - A MultiMap with keys RDF_Resource objects and values collections of RDF_Label objectspublic void setMembers(org.apache.commons.collections.MultiMap members)
IRDF_Model
setMembers in interface IRDF_Modelmembers - 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_Model
setObjects in interface IRDF_Modelobjects - 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_Model
setPredicates in interface IRDF_Modelpublic void setRanges(org.apache.commons.collections.MultiMap ranges)
IRDF_Model
setRanges in interface IRDF_Modelranges - A MultiMap with keys IRDF_Property objects and values collections of RDF_Range objectspublic void setSeeAlsos(org.apache.commons.collections.MultiMap see_alsos)
IRDF_Model
setSeeAlsos in interface IRDF_Modelsee_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_Model
setSubClasses in interface IRDF_Modelsub_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_Model
setSubProperties in interface IRDF_Modelsub_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_Model
setSubjects in interface IRDF_Modelsubjects - A MultiMap with keys RDF_Statement objects and values collections of RDF_Subject objectspublic void setTypes(org.apache.commons.collections.MultiMap types)
IRDF_Model
setTypes in interface IRDF_Modeltypes - A MultiMap with keys RDF_Resource objects and values collections of RDF_Type objects
public void setComments(IRDF_Resource resource,
java.util.Collection<IRDF_Comment> comments)
IRDF_Model
setComments in interface IRDF_Model
public void setDomains(IRDF_Property property,
java.util.Collection<IRDF_Domain> domains)
IRDF_Model
setDomains in interface IRDF_Model
public void setRanges(IRDF_Property property,
java.util.Collection<IRDF_Range> ranges)
IRDF_Model
setRanges in interface IRDF_Model
public void setIsDefinedBys(IRDF_Resource resource,
java.util.Collection<IRDF_IsDefinedBy> is_defined_bys)
IRDF_Model
setIsDefinedBys in interface IRDF_Model
public void setLabels(IRDF_Resource resource,
java.util.Collection<IRDF_Label> labels)
IRDF_Model
setLabels in interface IRDF_Model
public void setMembers(IRDF_Container container,
java.util.Collection<IRDF_Member> members)
public void setSeeAlsos(IRDF_Resource resource,
java.util.Collection<IRDF_SeeAlso> see_alsos)
IRDF_Model
setSeeAlsos in interface IRDF_Model
public void setSuperClassesOf(IRDF_Class rdf_class,
java.util.Collection<IRDF_SubClass> sub_classes)
IRDF_Model
setSuperClassesOf in interface IRDF_Model
public void setSubProperties(IRDF_Property property,
java.util.Collection<IRDF_SubProperty> sub_properies)
IRDF_Model
setSubProperties in interface IRDF_Model
public void setTypes(IRDF_Resource resource,
java.util.Collection<IRDF_Type> types)
IRDF_Model
setTypes in interface IRDF_Modelpublic java.util.Collection toTriples(boolean setOnly)
IRDF_Model
toTriples in interface IRDF_ModelsetOnly - If true does not create the default namespaces' triples else it creates them too
public java.util.Collection<RDF_Triple> toTriples(java.lang.String uri)
throws gr.forth.ics.rdfsuite.services.exceptions.UnknownUriException
IRDF_Model
toTriples in interface IRDF_Modeluri - The uri of the namespace/graphspace whose triples are wanted
gr.forth.ics.rdfsuite.services.exceptions.UnknownUriExceptionpublic RDF_DAG getClass_dag()
public void setClass_dag(RDF_DAG class_dag)
public RDF_DAG getMetaClass_dag()
public void setMetaClass_dag(RDF_DAG meta_class_dag)
public RDF_DAG getMetaProperty_dag()
public void setMetaProperty_dag(RDF_DAG meta_property_dag)
public RDF_DAG getProperty_dag()
public void setProperty_dag(RDF_DAG property_dag)
public void validate()
throws gr.forth.ics.rdfsuite.services.exceptions.ValidationException
IRDF_Model
validate in interface IRDF_Modelgr.forth.ics.rdfsuite.services.exceptions.ValidationException - if the schema or data of a model are not validprotected void castResourcesToClassInstances(IRDF_Class rdf_class)
rdf_class - protected void castResourcesToClasses(IRDF_MetaClass rdf_meta_class)
rdf_meta_class - protected void castResourcesToProperties(IRDF_MetaClass rdf_meta_class)
rdf_meta_class -
protected void updateResourceReferencesInTriples(IRDF_Resource original_rdf_resource,
IRDF_Resource new_rdf_resource)
original_rdf_resource - new_rdf_resource - protected void addResource(IRDF_Resource resource)
protected IRDF_Resource getResource(java.lang.String resource_uri)
protected java.util.HashMap getResources()
protected void setResources(java.util.HashMap resources)
public IRDF_Resource createResource(java.lang.String resource_uri,
Position pos)
protected IRDF_Resource getOrCreateResource(java.lang.String resource_uri,
Position pos)
protected void initResourceIDs()
public IRDF_Resource retrieveResource(java.lang.String uri)
IRDF_Model
retrieveResource in interface IRDF_Modeluri - The String uri of the resource
public java.util.Iterator<IRDF_Triple> toTriples()
public java.util.Iterator<IRDF_Triple> retrieveTriplesByPredicate(java.lang.String predicate)
public java.util.Iterator<IRDF_Triple> retrieveTriplesBySubject(IRDF_Resource subject)
public java.util.Iterator<IRDF_Triple> retrieveTriplesByObject(java.lang.Object object)
public java.util.Iterator<IRDF_Triple> retrieveTriples(IRDF_Resource subject,
IRDF_Property predicate,
java.lang.Object object)
IRDF_Model
retrieveTriples in interface IRDF_Modelsubject - The subject of the triplepredicate - The predicate of the tripleobject - The object of the triple
public java.util.Iterator<IRDF_Triple> retrieveTriples(java.lang.String subject,
java.lang.String predicate,
java.lang.String object)
IRDF_Model
retrieveTriples in interface IRDF_Modelsubject - String The subject of the triplepredicate - String The predicate of the tripleobject - String The object of the triple
public java.util.Map<java.lang.String,java.io.File> write_file(java.lang.String output_path,
java.lang.String triple_format,
java.lang.String base_uri,
boolean setOnly,
boolean multiple)
throws java.io.FileNotFoundException,
java.io.IOException
IRDF_Model
write_file in interface IRDF_Modeloutput_path - The file system path where the file(s)triple_format - A String containing the format of the output that will be created(RDF_Model.RDF_XML(unimplemented) or RDF_Model.TRIG)base_uri - output_base_uri The uri describing the output string in case we want all namespaces/graphspaces outputed in one single string
which is the case when parameter multiple takes value false. If parameter multiple takes value true this uri is ignored because the
actual namespace/graphspace uris are usedsetOnly - false if you want ALL the triples of the model including RDFSchema,RDFNS,XMLSchema else true
be outputed to a single one.multiple - If true each namespace and graphspace will be outputed to a different String else they will all
be outputed to a single one.
java.io.FileNotFoundException - if the given file path does not exist
java.io.IOException - if it is not possible to write to the buffered writed
public java.util.Map write_string(java.lang.String format,
java.lang.String base_uri,
boolean setOnly,
boolean multiple)
throws gr.forth.ics.rdfsuite.services.exceptions.UnsupportedFormatException
IRDF_Model
write_string in interface IRDF_Modelformat - A String containing the format of the output that will be created(RDF_Model.RDF_XML(unimplemented) or RDF_Model.TRIG)base_uri - The uri describing the output string in case we want all namespaces/graphspaces outputed in one single string
which is the case when parameter multiple takes value false. If parameter multiple takes value true this uri is ignored because the
actual namespace/graphspace uris are usedsetOnly - false if you want ALL the triples of the model including RDFSchema,RDFNS,XMLSchema else truemultiple - If true each namespace and graphspace will be outputed to a different String else they will all
be outputed to a single one.
gr.forth.ics.rdfsuite.services.exceptions.UnsupportedFormatException - if the format is not one of the predefined in RDF_Model
public java.util.Map<java.lang.String,java.io.File> write_original_and_inferred_in_file(java.lang.String output_path,
java.lang.String triple_format,
java.lang.String base_uri,
boolean setOnly,
boolean multiple)
throws java.io.FileNotFoundException,
java.io.IOException,
gr.forth.ics.rdfsuite.services.exceptions.UnsupportedFormatException
IRDF_Model
write_original_and_inferred_in_file in interface IRDF_Modeloutput_path - The file system path where the file(s)triple_format - A String containing the format of the output that will be created(RDF_Model.RDF_XML(unimplemented) or RDF_Model.TRIG)base_uri - output_base_uri The uri describing the output string in case we want all namespaces/graphspaces outputed in one single string
which is the case when parameter multiple takes value false. If parameter multiple takes value true this uri is ignored because the
actual namespace/graphspace uris are usedsetOnly - false if you want ALL the triples of the model including RDFSchema,RDFNS,XMLSchema else true
be outputed to a single one.multiple - If true each namespace and graphspace will be outputed to a different String else they will all
be outputed to a single one.
java.io.FileNotFoundException - if the given file path does not exist
java.io.IOException - if it is not possible to write to the buffered writed
UnsupportedFormatException if the format is not one of the predefined in RDF_Model
gr.forth.ics.rdfsuite.services.exceptions.UnsupportedFormatException
public java.util.Map write_original_and_inferred_in_string(java.lang.String format,
java.lang.String base_uri,
boolean setOnly,
boolean multiple)
throws java.io.IOException
IRDF_Model
write_original_and_inferred_in_string in interface IRDF_Modelformat - A String containing the format of the output that will be created(RDF_Model.RDF_XML(unimplemented) or RDF_Model.TRIG)base_uri - The uri describing the output string in case we want all namespaces/graphspaces outputed in one single string
which is the case when parameter multiple takes value false. If parameter multiple takes value true this uri is ignored because the
actual namespace/graphspace uris are usedsetOnly - false if you want ALL the triples of the model including RDFSchema,RDFNS,XMLSchema else truemultiple - If true each namespace and graphspace will be outputed to a different String else they will all
be outputed to a single one.
gr.forth.ics.rdfsuite.services.exceptions.UnsupportedFormatException - if the format is not one of the predefined in RDF_Model
java.io.IOException - if it is not possible to write to the buffered writed
public java.util.Collection<IRDF_Class> getClasses(boolean considerRDFNS,
boolean considerXSDNS)
throws gr.forth.ics.rdfsuite.services.exceptions.EmptyModelException
getClasses in interface IRDF_Modelgr.forth.ics.rdfsuite.services.exceptions.EmptyModelException
public java.util.Collection<IRDF_Property> getProperties(boolean considerRDFNS,
boolean considerXSDNS)
getProperties in interface IRDF_Modelpublic java.util.HashMap<java.lang.String,IRDF_Literal> getLiterals()
public void setLiterals(java.util.HashMap<java.lang.String,IRDF_Literal> literals)
public void addLiteral(IRDF_Literal literal)
public IRDF_Literal getLiteral(java.lang.String literal)
protected IRDF_Literal getOrCreateLiteral(java.lang.String literal)
protected int enter_label(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
java.lang.String graphspace_uri,
boolean strict)
subject - predicate - object - pos - graphspace_uri - strict -
protected boolean enter_comment(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
Position pos,
java.lang.String graphspace_uri,
boolean strict)
protected IRDF_Comment getOrCreateCommentTriple(IRDF_Resource subject_resource,
IRDF_Literal comment,
boolean inferred)
protected IRDF_Label getOrCreateLabelTriple(IRDF_Resource subject_resource,
IRDF_Literal label,
boolean inferred)
protected IRDF_Member getOrCreateMemberTriple(IRDF_Container subject_resource,
java.lang.Object member,
int member_index,
boolean inferred)
public void eliminateRedundancies()
throws gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException
eliminateRedundancies in interface IRDF_Modelgr.forth.ics.rdfsuite.services.exceptions.LabelCreationExceptionprotected void removeSubClassTriplesOf(IRDF_Class rdf_class)
protected org.apache.commons.collections.MultiMap getTypes_hashed_on_object()
protected java.util.Map getTypes_hashed_on_subject_object()
public boolean getLabelsCreated()
getLabelsCreated in interface IRDF_Modelpublic void setLabelsCreated(boolean created)
setLabelsCreated in interface IRDF_Modelcreated - true if labels are created else false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||