|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgr.forth.ics.vrp.corevrp.model.Resource
gr.forth.ics.vrp.corevrp.model.Model
Model.java - All we can do to a model.
| Field Summary | |
Existing |
existing
|
| Constructor Summary | |
Model(boolean init)
Create a new model. |
|
| Method Summary | |
void |
addStatement(String pred,
String subj,
Object o)
Entering a statement to the model. |
void |
castToMetaClass()
Casts the classes that are subclasses of the rdfs:Class/rdf:Property to RDF_MetaClass Objects. |
boolean |
contains(String URI)
Returns a boolean weather the resource having the specified URI is contained by the model. |
boolean |
contains(String pred,
String sub,
Literal obj)
Returning a boolean whether the statement contained by the model. |
boolean |
contains(String pred,
String sub,
String obj)
Returning a boolean whether the statement contained by the model. |
void |
dump()
Dump the content of the model and print it to the outputfile defined in RDF_PAV/Main. |
void |
fetch_all(ArrayList ex_ns,
parser par)
Will be called by the parser if he reached the EOF of the current file. |
void |
fetch()
Try to get all information of RDF_Properties and RDF_Classes we entered to the Model. |
void |
fetch(String URI)
In the case the URI belongs to a namespace, we try to get the information about URI and enter them to our basis_model. |
String |
genSysID()
Whenever a system-generated identifier is needed for statements or nodes. |
Collection |
getAllMetaClasses()
Returning a Collection of all metaclasses contained by the model. |
String |
getBaseURI()
Get the base URI for the model. |
Collection |
getClasses()
Returning a Collection of all classes contained by the model. |
Collection |
getContainers()
Returning a Collection of all RDF containers contained in the model. |
Collection |
getDataResources()
Returns a Collection of all resources that don't belong to the basic RDF types i.e., rdfs:Class, rdf:Property, rdf:Container and rdf:Statement. |
Collection |
getMetaClasses()
Returning a Collection of all metaclasses of classes contained by the model. |
Collection |
getMetaProperties()
Returning a Collection of all metaclasses of properties contained by the model. |
Model |
getModelPart(HashSet selectedNS)
|
HashMap |
getNamespaces()
Returning a HashMap containing the URI and the object reference of all the external namespaces that have been parsed. |
Collection |
getNodes()
Returning a Collection containing all the values of the existing HashMap. |
Collection |
getProperties()
Returning a Collection of all properties contained by the model. |
Collection |
getReifiedStatements()
Returning a Collection of all reified statements contained in the model. |
Resource |
getResource(int i)
|
Resource |
getResource(String URI)
Returns the resource with the specified URI. |
ArrayList |
getStatements()
Returns the statements comprising the model. |
int[] |
getStatistics()
|
boolean |
getverbose()
Indicates whether messages about the actions performed by the VRP will be reported. |
void |
infer()
To infer the type of the given classname for all instances of its subclasses (recursive). |
int |
printStatements()
Prints the statements of this model. |
void |
printStatistics()
Prints the statistic containing the number of triples, classes, properties, containers, refeid statements and resources to the output stream declared in Output. |
void |
setBaseURI(String bURI)
Set the base URI for the model. |
void |
setNamespaces(HashMap ns)
|
void |
setResourceRoot(boolean allClasses)
Sets as superclass the class rdfs:Resource, if a class has no superclasses |
void |
setverbose(boolean b)
Sets whether messages about the actions performed by the VRP will be reported. |
void |
solve_links()
|
| Methods inherited from class gr.forth.ics.vrp.corevrp.model.Resource |
getID, setID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public Existing existing
| Constructor Detail |
public Model(boolean init)
| Method Detail |
public void setverbose(boolean b)
setverbose in interface IModelpublic boolean getverbose()
getverbose in interface IModelpublic void setNamespaces(HashMap ns)
public void addStatement(String pred,
String subj,
Object o)
addStatement in interface IModelpublic Collection getNodes()
getNodes in interface IModelpublic boolean contains(String URI)
contains in interface IModelpublic Resource getResource(String URI)
getResource in interface IModelpublic Resource getResource(int i)
public Collection getClasses()
getClasses in interface IModelpublic Collection getAllMetaClasses()
public Collection getMetaClasses()
public Collection getMetaProperties()
public Collection getProperties()
getProperties in interface IModelpublic Collection getReifiedStatements()
getReifiedStatements in interface IModelpublic Collection getContainers()
getContainers in interface IModelpublic Collection getDataResources()
getDataResources in interface IModel
public boolean contains(String pred,
String sub,
String obj)
contains in interface IModel
public boolean contains(String pred,
String sub,
Literal obj)
contains in interface IModelpublic HashMap getNamespaces()
public void fetch_all(ArrayList ex_ns,
parser par)
fetch_all in interface IModelpublic void fetch()
fetch in interface IModelpublic void fetch(String URI)
fetch in interface IModelpublic void infer()
infer in interface IModelpublic ArrayList getStatements()
getStatements in interface IModelpublic int printStatements()
printStatements in interface IModelpublic int[] getStatistics()
getStatistics in interface IModelpublic void printStatistics()
printStatistics in interface IModelpublic String genSysID()
genSysID in interface IModelpublic void setBaseURI(String bURI)
setBaseURI in interface IModelpublic String getBaseURI()
getBaseURI in interface IModelpublic void dump()
dump in interface IModelpublic void solve_links()
public void castToMetaClass()
public void setResourceRoot(boolean allClasses)
public Model getModelPart(HashSet selectedNS)
|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||