|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kmr.scam.rdf.util.Import
Helper for importing RDF. Primarily to be used for IMS Content Packaging
models.
An insertionpoint is the object from IMSCP.manifest pointed by
SCAM.include.
Title:
Description:
Copyright: Copyright (c) 2002
Company:
Field Summary | |
protected static org.apache.log4j.Category |
LOG
Log4j-logger |
Constructor Summary | |
Import()
|
Method Summary | |
static Resource |
importResource(Model dest,
Model src,
Resource res)
Standard import of a resource (non-IMS Container). |
static Resource |
importSubItem(Model dest,
Model src,
Resource iPoint,
Resource item)
Import a sub-item from one model to another. |
static Model |
IMSCP(Model dest,
Model src)
Method for importing IMS Content Packaging models. |
static void |
main(String[] args)
|
static Model |
simple(Model dest,
Model src)
Method for importing metadata. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Category LOG
Constructor Detail |
public Import()
Method Detail |
public static Model IMSCP(Model dest, Model src) throws RDFException
"RDF Syntax:"
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:imscp='http://www.imsproject.org/xsd/ims_cp_rootv1p1#' xmlns:scam='http://kmr.nada.kth.se/scam#'> <rdf:Description rdf:about='http://ulldb.ull.uu.se:8080/jand/manifest'> <rdf:type rdf:resource='http://www.imsproject.org/xsd/ims_cp_rootv1p1#manifest'/> <scam:include rdf:resource='http://ulldb.ull.uu.se:8080/jand/hierarchy/1'/> <scam:include rdf:resource='http://www.unt.se'/> </rdf:Description> <!-- This resource is an IMS Container -> IMSCP import --> <!-- If .../hierarchy/1 exist at destination, all the children (../item/99) will be inserted there --> <!-- If it does not exist, it will be inserted in a default IMS Container --> <rdf:Description rdf:about='http://ulldb.ull.uu.se:8080/jand/hierarchy/1'> <rdf:type rdf:resource='http://www.imsproject.org/xsd/ims_cp_rootv1p1#item'/> <rdf:_1 rdf:resource='http://ulldb.ull.uu.se:8080/jand/item/99'/> </rdf:Description> <!-- If this resource exist in destination, it will be replaced by this new sub-model (same ordinal at parent) --> <!-- Otherwise it will be inserted last --> <rdf:Description rdf:about='http://ulldb.ull.uu.se:8080/jand/item/99'> <rdf:type rdf:resource='http://www.imsproject.org/xsd/ims_cp_rootv1p1#item'/> <imscp:content rdf:resource='http://www.unt.se'/> <!-- Metadata --> </rdf:Description> <!-- Non-IMS Container -> basic import (replace or add) --> <rdf:Description rdf:about='http://www.unt.se'> <!-- Metadata --> </rdf:Description> ... ... </rdf:RDF>
dest
- Destination modelsrc
- Source Model
dest
RDFException
public static Model simple(Model dest, Model src) throws RDFException
dest
- Destination modelsrc
- Source Model
dest
RDFException
public static Resource importSubItem(Model dest, Model src, Resource iPoint, Resource item) throws RDFException
dest
- Destination modelsrc
- Source modeliPoint
- "Parent" (IMSCP Container)item
- "Child"
RDFException
public static Resource importResource(Model dest, Model src, Resource res) throws RDFException
dest
- Destination modelsrc
- Source modelres
- Resource
RDFException
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |