|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRDF_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 |
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 |
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 |
RDF_DAG |
createClassDag()
Creates the subsumption dag for all the model's classes |
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 |
createMetaPropertyDag()
Creates the subsumprion dag for all the model's metaproperties |
RDF_DAG |
createPropertyDag()
Creates the subsumprion dag for all the model's properties |
void |
eliminateRedundancies()
Makes the model redundant free. |
AvailableStreams |
getAvailableStreams()
Retrieves the Available namespace streams for building this model |
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 |
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_Container |
getContainer(java.lang.String container_uri)
Retrieves a container given its uri |
java.util.HashMap |
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_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 |
getGraphspaces()
Retrieves all the Graphspaces stored in Main Memory(MM) |
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 |
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 |
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_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 |
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 |
IRDF_Graphspace |
getOrCreateGraphspace(java.lang.String graphspace_uri)
This method retrieves an RDF_Graphspace with a given uri. |
IRDF_Namespace |
getOrCreateNamespace(java.lang.String namespace_uri)
This method retrieves an RDF_Namespace with a given uri from MM. |
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)
|
java.util.Collection |
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<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 |
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 |
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 superclasses of this class |
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)
Retrieves the subproperties of this class |
java.util.Collection<IRDF_SubClass> |
getSuperClassOf(IRDF_Class rdf_class)
retrieves the subclasses of this class |
java.util.Collection<IRDF_SubProperty> |
getSuperProperty(IRDF_Property rdf_property)
Retrieves the superproperties of this class |
java.util.Collection<IRDF_Type> |
getType(IRDF_Resource rdf_type)
Retrieves the Collection of RDF_Type objects in which rdf_type "participates" |
org.apache.commons.collections.MultiMap |
getTypes()
Retrieves all the type relations stored in main memory |
void |
import_default_namespaces()
This method loads in MM RDF and RDFSchema Namespaces |
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. |
void |
import_namespaces(java.util.ArrayList import_namespaces,
java.lang.String base_uri)
This method loads all the namespaces specified in the import_namespaces parameter in the model. |
void |
import_rdfsuite_namespace()
This method loads in MM the RDFSuite Namespace |
void |
import_xmlschema_namespace()
This method loads in MM the xmlschema namespace |
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 file_name,
java.lang.String base_uri,
java.lang.String triple_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. |
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. |
void |
setAvailableStreams(AvailableStreams avail)
Sets the available namespace streams for fetching uris for building this model |
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 |
setGraphspaces(java.util.HashMap graphspaces)
Sets the HashMap of graphspaces in the Main Memory |
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 |
setMembers(org.apache.commons.collections.MultiMap members)
Sets the container membership Relationships defined in this namespace |
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 |
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 |
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 |
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 |
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 |
toTriples(java.lang.String uri)
This method produces the statements(triples) that derive out of the namespace or graphspace described by the given uri |
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 output_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 output_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 triple_format,
java.lang.String output_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 triple_format,
java.lang.String output_base_uri,
boolean setOnly,
boolean multiple)
This method outputs the namespaces/graphspaces correlated to this model in a HashMap of |
| Method Detail |
|---|
java.util.HashMap getNamespaces()
void setNamespaces(java.util.HashMap namespaces)
namespaces - A HashMap with key String namespace_uris and values RDF_Namespace objectsvoid addNamespace(IRDF_Namespace namespace)
namespace - An RDF_Namespace objectIRDF_Namespace getNamespace(java.lang.String namespace_uri)
namespace_uri - The String namespace uri of the desired namespace
java.util.HashMap getGraphspaces()
void setGraphspaces(java.util.HashMap graphspaces)
graphspaces - A HashMap with key String graphspace_uris and values RDF_Graphspace objectsvoid addGraphspace(IRDF_Graphspace graphspace)
graphspace - IRDF_Graphspace getGraphspace(java.lang.String graphspace_uri)
graphspace_uri - The String graphspace uri of the desired graphspace
org.apache.commons.collections.MultiMap getPropertyInstances()
void setPropertyInstances(org.apache.commons.collections.MultiMap property_instances)
property_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 resourcesvoid addPropertyInstance(IRDF_PropertyInstance property_instance)
property_instance - An RDF_PropertyInstance objectjava.util.Collection getPropertyInstance(java.lang.String property_instance_uri)
property_instance_uri - A String
java.util.HashMap getClassInstances()
void setClassInstances(java.util.HashMap class_instances)
class_instances - A HashMap with (String)class instance uris as keys and RDF_ClassInstance objects as valuesvoid addClassInstance(IRDF_Individual class_instance)
class_instance - An RDF_ClassInstance objectIRDF_Individual getClassInstance(java.lang.String class_instance_uri)
class_instance_uri - A String
java.util.HashMap getContainers()
void setContainers(java.util.HashMap containers)
containers - A HashMap with (String)container uris as keys and RDF_Container objects as valuesvoid addContainer(IRDF_Container container)
container - An RDF_Container objectIRDF_Container getContainer(java.lang.String container_uri)
container_uri - A String
void read(java.io.InputStream file,
java.lang.String base_uri,
java.lang.String triple_format,
boolean fetch_dependencies,
boolean strict)
throws java.lang.Exception
file - An RDF/XML or TRIG Input Streambase_uri - The base uri of the file.triple_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(Requiresstrict - 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!
a valid uri to be set)
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
java.lang.Exception
void read(java.lang.String file_name,
java.lang.String base_uri,
java.lang.String triple_format,
boolean fetch_dependencies,
boolean strict)
throws java.io.FileNotFoundException,
java.lang.Exception
file_name - A Stringbase_uri - The base uri of the file.triple_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.io.FileNotFoundException
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
java.lang.Exception
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
files - 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 valuesAvailableStreams getAvailableStreams()
void setAvailableStreams(AvailableStreams avail)
avail - An AvailableStreams objectRDF_DAG createClassDag()
RDF_DAG createMetaClassDag()
RDF_DAG createPropertyDag()
RDF_DAG createMetaPropertyDag()
void createDags()
void createLabels()
throws java.lang.Exception
java.sql.SQLException
java.lang.Exceptionorg.apache.commons.collections.MultiMap getSubClasses()
void setSubClasses(org.apache.commons.collections.MultiMap sub_classes)
sub_classes - A MultiMap with keys RDF_Class objects and values collections of RDF_SubClass objects
void setSuperClassesOf(IRDF_Class rdf_class,
java.util.Collection<IRDF_SubClass> sub_classes)
rdf_class - sub_classes - java.util.Collection<IRDF_SubClass> getSuperClassOf(IRDF_Class rdf_class)
rdf_class - An RDF_Class
java.util.Collection<IRDF_SubClass> getSubClassOf(IRDF_Class rdf_class)
rdf_class - An RDF_Class
void addSubClass(IRDF_Class rdf_class,
IRDF_SubClass subclass)
subclass - org.apache.commons.collections.MultiMap getSubProperties()
void setSubProperties(org.apache.commons.collections.MultiMap sub_properies)
sub_properies - A MultiMap with keys RDF_Property objects and values collections of RDF_SubProperty objects
void setSubProperties(IRDF_Property property,
java.util.Collection<IRDF_SubProperty> sub_properies)
property - sub_properies - java.util.Collection<IRDF_SubProperty> getSubProperty(IRDF_Property rdf_property)
rdf_property - An RDF_Property
java.util.Collection<IRDF_SubProperty> getSuperProperty(IRDF_Property rdf_property)
rdf_property - An RDF_Property
void addSubProperty(IRDF_Property property,
IRDF_SubProperty subproperty)
subproperty - org.apache.commons.collections.MultiMap getTypes()
void setTypes(org.apache.commons.collections.MultiMap types)
types - A MultiMap with keys RDF_Resource objects and values collections of RDF_Type objects
void setTypes(IRDF_Resource resource,
java.util.Collection<IRDF_Type> types)
resource - types - java.util.Collection<IRDF_Type> getType(IRDF_Resource rdf_type)
rdf_type - An RDF_Resource
java.util.Collection<IRDF_Type> getInstances(IRDF_Class rdf_class)
rdf_class - An IRDF_Class
void addType(IRDF_Resource resource,
IRDF_Type type)
type - org.apache.commons.collections.MultiMap getDomains()
void setDomains(org.apache.commons.collections.MultiMap domains)
domains - A MultiMap with keys RDF_Property objects and values collections of RDF_Domains objects
void setDomains(IRDF_Property property,
java.util.Collection<IRDF_Domain> domains)
property - domains - java.util.Collection getDomain(IRDF_Property rdf_property)
rdf_property - An RDF_Property
void addDomain(IRDF_Property property,
IRDF_Domain domain)
domain - org.apache.commons.collections.MultiMap getRanges()
void setRanges(org.apache.commons.collections.MultiMap ranges)
ranges - A MultiMap with keys IRDF_Property objects and values collections of RDF_Range objects
void setRanges(IRDF_Property property,
java.util.Collection<IRDF_Range> ranges)
property - ranges - java.util.Collection getRange(IRDF_Property rdf_property)
rdf_property - An IRDF_Property
void addRange(IRDF_Property property,
IRDF_Range range)
range - org.apache.commons.collections.MultiMap getComments()
void setComments(org.apache.commons.collections.MultiMap comments)
comments - A MultiMap with keys RDF_Resource objects and values collections of RDF_Comment objects
void setComments(IRDF_Resource resource,
java.util.Collection<IRDF_Comment> comments)
resource - comments - java.util.Collection getComment(IRDF_Resource rdf_resource)
rdf_resource - An RDF_Resource
void addComment(IRDF_Resource resource,
IRDF_Comment comment)
comment - org.apache.commons.collections.MultiMap getLabels()
void setLabels(org.apache.commons.collections.MultiMap labels)
labels - A MultiMap with keys RDF_Resource objects and values collections of RDF_Label objects
void setLabels(IRDF_Resource resource,
java.util.Collection<IRDF_Label> labels)
resource - labels - java.util.Collection getLabel(IRDF_Resource rdf_resource)
rdf_resource - An RDF_Resource
void addLabel(IRDF_Resource resource,
IRDF_Label label)
label - org.apache.commons.collections.MultiMap getSeeAlsos()
void setSeeAlsos(org.apache.commons.collections.MultiMap see_alsos)
see_alsos - A MultiMap with keys IRDF_Resource objects and values collections of RDF_SeeAlso objects
void setSeeAlsos(IRDF_Resource resource,
java.util.Collection<IRDF_SeeAlso> see_alsos)
resource - see_alsos - java.util.Collection getSeeAlso(IRDF_Resource rdf_resource)
rdf_resource - An IRDF_Resource
void addSeeAlso(IRDF_Resource resource,
IRDF_SeeAlso seealso)
seealso - org.apache.commons.collections.MultiMap getIsDefinedBys()
void setIsDefinedBys(org.apache.commons.collections.MultiMap is_defined_bys)
is_defined_bys - A MultiMap with keys IRDF_Resource objects and values collections of RDF_IsDefinedBy objects
void setIsDefinedBys(IRDF_Resource resource,
java.util.Collection<IRDF_IsDefinedBy> is_defined_bys)
resource - is_defined_bys - java.util.Collection getIsDefinedBy(IRDF_Resource rdf_resource)
rdf_resource - An IRDF_Resource
void addIsDefinedBy(IRDF_Resource resource,
IRDF_IsDefinedBy isdefinedby)
isdefinedby - java.util.HashMap<IRDF_Statement,IRDF_Subject> getSubjects()
void setSubjects(java.util.HashMap<IRDF_Statement,IRDF_Subject> subjects)
subjects - A MultiMap with keys RDF_Statement objects and values collections of RDF_Subject objectsIRDF_Subject getSubject(IRDF_Statement rdf_statement)
rdf_statement - An RDF_Statement
void addSubject(IRDF_Statement statement,
IRDF_Subject subject)
subject - java.util.HashMap<IRDF_Statement,IRDF_Object> getObjects()
void setObjects(java.util.HashMap<IRDF_Statement,IRDF_Object> objects)
objects - A MultiMap with keys IRDF_Statement objects and values collections of RDF_Object objectsIRDF_Object getObject(IRDF_Statement rdf_statement)
rdf_statement - An IRDF_Statement
void addObject(IRDF_Statement statement,
IRDF_Object object)
object - java.util.HashMap<IRDF_Statement,IRDF_Predicate> getPredicates()
void setPredicates(java.util.HashMap<IRDF_Statement,IRDF_Predicate> predicates)
statements - A MultiMap with keys IRDF_Statement objects and values collections of RDF_Predicate objectsIRDF_Predicate getPredicate(IRDF_Statement statement)
statement - An IRDF_Statement
void addPredicate(IRDF_Statement statement,
IRDF_Predicate predicate)
predicate - org.apache.commons.collections.MultiMap getMembers()
void setMembers(org.apache.commons.collections.MultiMap members)
members - A MultiMap with keys RDF_Container objects and values collections of RDF_Member objectsjava.util.Collection getMember(IRDF_Container container)
container - An RDF_Container
void addMember(IRDF_Container container,
IRDF_Member member)
member - java.util.Collection toTriples(boolean setOnly)
setOnly - false if you want triples from all model namespaces including the default ones(RDFSchema,RDFNS,XMLSchema) else true
java.util.Collection toTriples(java.lang.String uri)
uri - The uri of the namespace/graphspace whose triples are wanted
void validate()
throws java.lang.Exception
java.lang.ExceptionIRDF_Resource retrieveResource(java.lang.String uri)
uri - The String uri of the resource
java.util.Iterator<IRDF_Triple> retrieveTriples(java.lang.String subject,
java.lang.String predicate,
java.lang.String object)
subject - String The subject of the triplepredicate - String The predicate of the tripleobject - String The object of the triple
java.util.Iterator<IRDF_Triple> retrieveTriples(IRDF_Resource subject,
IRDF_Property predicate,
java.lang.Object object)
subject - The subject of the triplepredicate - The predicate of the tripleobject - The object of the triple
java.util.Map<java.lang.String,java.io.File> write_file(java.lang.String output_path,
java.lang.String triple_format,
java.lang.String output_base_uri,
boolean setOnly,
boolean multiple)
throws java.io.FileNotFoundException,
java.lang.Exception
output_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)output_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.lang.Exception
java.io.FileNotFoundException
java.util.Map write_string(java.lang.String triple_format,
java.lang.String output_base_uri,
boolean setOnly,
boolean multiple)
throws java.io.FileNotFoundException,
java.lang.Exception
triple_format - A String containing the format of the output that will be created(RDF_Model.RDF_XML(unimplemented) or RDF_Model.TRIG)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 truemultiple - If true each namespace and graphspace will be outputed to a different String else they will all
be outputed to a single one.
java.lang.Exception
java.io.FileNotFoundException
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 output_base_uri,
boolean setOnly,
boolean multiple)
throws java.io.FileNotFoundException,
java.lang.Exception
output_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)output_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.lang.Exception
java.io.FileNotFoundException
java.util.Map write_original_and_inferred_in_string(java.lang.String triple_format,
java.lang.String output_base_uri,
boolean setOnly,
boolean multiple)
throws java.io.FileNotFoundException,
java.lang.Exception
triple_format - A String containing the format of the output that will be created(RDF_Model.RDF_XML(unimplemented) or RDF_Model.TRIG)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 truemultiple - If true each namespace and graphspace will be outputed to a different String else they will all
be outputed to a single one.
java.lang.Exception
java.io.FileNotFoundException
java.util.Collection<IRDF_Class> getClasses(boolean considerRDFNS,
boolean considerXSDNS)
java.util.Collection<IRDF_Property> getProperties(boolean considerRDFNS,
boolean considerXSDNS)
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
subject - 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 when the method is called
void eliminateRedundancies()
throws java.lang.Exception
java.lang.Exceptionvoid import_default_namespaces()
void import_xmlschema_namespace()
void import_rdfsuite_namespace()
IRDF_Graphspace getOrCreateGraphspace(java.lang.String graphspace_uri)
graphspace_uri - the uri of the graphspace
IRDF_Namespace getOrCreateNamespace(java.lang.String namespace_uri)
namespace_uri - the uri of the namespace
void import_namespaces(java.util.ArrayList import_namespaces,
java.lang.String base_uri)
throws gr.forth.ics.rdfsuite.services.exceptions.ParsingException
import_namespaces - the namespaces to be loaded in the modelbase_uri - the base uri
gr.forth.ics.rdfsuite.services.exceptions.ParsingException
void import_graphspaces(java.util.ArrayList import_graphspaces,
java.lang.String base_uri)
throws gr.forth.ics.rdfsuite.services.exceptions.ParsingException
import_graphspaces - the graphspaces to be loaded in the modelbase_uri - the base uri
gr.forth.ics.rdfsuite.services.exceptions.ParsingException
java.util.Collection<IRDF_PropertyInstance> getPropertyInstanceWithSubjectAndObject(java.lang.String subject,
java.lang.String object)
subject - object -
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
subject - property_instance_uri - object -
gr.forth.ics.rdfsuite.services.exceptions.TripleCreationExceptionboolean getLabelsCreated()
void setLabelsCreated(boolean created)
created - true if labels are created else false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||