|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectse.kmr.scam.rdf.util.SubModel
Helper for extracting/manipulating sub-models from a model.
Title:
Description:
Copyright: Copyright (c) 2002
Company:
| Field Summary | |
static int |
FULL
|
static int |
LOCAL
|
protected static org.apache.log4j.Category |
LOG
Log4j-logger |
static int |
MAX
Maximum recommended depth to avoid "infinite" loops. |
static int |
SINGLE
|
| Constructor Summary | |
SubModel()
|
|
| Method Summary | |
static Statement |
duplicate(Model model,
Statement stm)
Create and add a duplicate of the branch marked by stm. |
static Model |
getHierarchy(Model model,
Model buffer,
Resource res,
int itemDepth,
int resDepth)
Retrieve sub-hierarchy from res:s point of view. |
static Model |
getModel(Model model,
Model buffer,
Resource res)
Retrieve local sub-model from res:s point of view. |
static Model |
getModel(Model model,
Model buffer,
Resource res,
int depth)
Retrieve sub-model from res:s point of view. |
static void |
main(String[] args)
|
static void |
remove(Model model,
Resource res)
Remove resource and its sub-model from model |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LOCAL
public static final int SINGLE
public static final int FULL
public static final int MAX
protected static org.apache.log4j.Category LOG
| Constructor Detail |
public SubModel()
| Method Detail |
public static Model getModel(Model model,
Model buffer,
Resource res)
throws RDFException
res:s point of view.
model - Source Modelbuffer - Buffer-modelres - "Root"
buffer
RDFException - Description of the ExceptiongetModel(Model, Model, Resource, int)
public static Model getModel(Model model,
Model buffer,
Resource res,
int depth)
throws RDFException
res:s point of view.
model - Source Modelbuffer - Buffer-modelres - "Root"depth - traverse-depth of Resource (Metadata)
buffer
RDFException - Description of the Exception
public static Model getHierarchy(Model model,
Model buffer,
Resource res,
int itemDepth,
int resDepth)
throws RDFException
res:s point of view. res
should be an IMSCP Container.
model - Source Modelbuffer - Buffer-modelres - "Root"itemDepth - traverse-depth of Hierarchy/Items (Organization)resDepth - traverse-depth of Resource (Metadata)
buffer
RDFException - Description of the Exception
public static void remove(Model model,
Resource res)
throws RDFException
model
model - Modelres - Resource to remove
RDFException
public static Statement duplicate(Model model,
Statement stm)
throws RDFException
stm. If the
subject of that statement is an RDF-Container the duplicate will be
inserted at current ordinal+1. Values (leaf-nodes) are NOT duplicated.
Language of duplicated (empty) Literals are preserved.
model - Modelstm - Statement of branch to be duplicated.
RDFExceptionpublic static void main(String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||