Modifier and Type | Field and Description |
---|---|
static String[] |
CA_RESTRICTIONS
file name restrictions for combine archives.
|
protected de.unirostock.sems.cbarchive.CombineArchive |
combineArchive
The combine archive.
|
protected List<CaRoNotification> |
notifications
The notifications.
|
static org.jdom2.Namespace |
RDF_NAMESPACE
The RDF namespace.
|
protected org.apache.taverna.robundle.Bundle |
researchObject
The research object.
|
static String[] |
RO_RESTRICTIONS
file name restrictions for research objects.
|
protected File |
sourceFile
The source file.
|
static URI |
URI_BF_MAIN_ENTRY
The annotation to indicate a main entry.
|
static URI |
URI_CA_RO_CONV
The annotation to indicate that this was converted.
|
static URI |
URI_MAIN_ENTRY
The annotation to indicate main entries.
|
static URI |
URI_OMEX_META
The annotation to indicate omex meta.
|
static URI |
URI_RO_CA_CONV
The annotation to indicate that this was converted.
|
static URI |
URI_RO_CONV_ANNOTATION
The annotation to indicate it was an RO annotation.
|
static URI |
URI_RO_COPY_ANNOTATION
The annotation to indicate it was an annotation referenced in the RO.
|
static URI |
URI_TURTLE_MIME
The uri turtle file format.
|
Constructor and Description |
---|
CaRoConverter(File sourceFile)
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static de.unirostock.sems.cbarchive.meta.omex.VCard |
agentToVCard(org.apache.taverna.robundle.manifest.Agent agent)
Convert an RO agent to a CA vcard.
|
protected abstract boolean |
closeSourceContainer()
Open the source container.
|
protected abstract boolean |
convert()
Convert the container.
|
boolean |
convertTo(File target)
Convert this container to
target . |
List<CaRoNotification> |
getNotifications()
Gets the notifications occured during the conversion.
|
boolean |
hasErrors()
Checks for errors.
|
boolean |
hasWarnings()
Checks for warnings.
|
protected abstract boolean |
openSourceContainer()
Open the source container.
|
static boolean |
sameVcard(de.unirostock.sems.cbarchive.meta.omex.VCard a,
de.unirostock.sems.cbarchive.meta.omex.VCard b)
Compare two VCards.
|
protected static org.apache.taverna.robundle.manifest.Agent |
vcardToAgent(de.unirostock.sems.cbarchive.meta.omex.VCard vcard,
List<CaRoNotification> notifications)
Convert a CA vcard to an RO agent.
|
protected abstract boolean |
write(File target)
Write the container.
|
public static final String[] RO_RESTRICTIONS
public static final String[] CA_RESTRICTIONS
public static org.jdom2.Namespace RDF_NAMESPACE
public static URI URI_TURTLE_MIME
public static URI URI_OMEX_META
public static URI URI_MAIN_ENTRY
public static URI URI_BF_MAIN_ENTRY
public static URI URI_RO_CONV_ANNOTATION
public static URI URI_RO_COPY_ANNOTATION
public static URI URI_CA_RO_CONV
public static URI URI_RO_CA_CONV
protected File sourceFile
protected de.unirostock.sems.cbarchive.CombineArchive combineArchive
protected org.apache.taverna.robundle.Bundle researchObject
protected List<CaRoNotification> notifications
public CaRoConverter(File sourceFile)
sourceFile
- the source filepublic boolean hasErrors()
public boolean hasWarnings()
public List<CaRoNotification> getNotifications()
protected abstract boolean openSourceContainer()
protected abstract boolean closeSourceContainer()
protected abstract boolean convert()
protected abstract boolean write(File target)
target
- the target file to write topublic boolean convertTo(File target)
target
.target
- the target fileprotected static de.unirostock.sems.cbarchive.meta.omex.VCard agentToVCard(org.apache.taverna.robundle.manifest.Agent agent)
agent
- the agentprotected static org.apache.taverna.robundle.manifest.Agent vcardToAgent(de.unirostock.sems.cbarchive.meta.omex.VCard vcard, List<CaRoNotification> notifications)
vcard
- the vcardnotifications
- the notificationspublic static boolean sameVcard(de.unirostock.sems.cbarchive.meta.omex.VCard a, de.unirostock.sems.cbarchive.meta.omex.VCard b)
a
- the first VCardb
- the second VCardsCopyright © 2018. All rights reserved.