public class GraphModelDocument extends GraphNode
data, DB_ENTRY_EDGE_END, DB_ENTRY_EDGE_START, DB_ENTRY_EDGE_TYPE, DB_ENTRY_NODE_LABELS, DB_ENTRY_NODE_PROPERTIES, DB_ENTRY_NODE_SELF, dbEntry, TYPE_AUTHOR, TYPE_BIBENTRY, TYPE_COMMENT, TYPE_FILE, TYPE_INSTALLATION, TYPE_PLATFORM, TYPE_POST, TYPE_PUBLISHER, TYPE_REGISTERED, TYPE_TAG, TYPE_USER
Constructor and Description |
---|
GraphModelDocument(org.json.simple.JSONObject data,
GraphModel model)
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addSimulationDescription(GraphSedmlDocument simulation)
Adds the simulation description.
|
void |
createCombineArchive(File f,
String archiveName,
User user)
Creates an combine archive of this model.
|
String |
getArchiveName()
Gets the archive name.
|
void |
getCurationResultPic(List<Resource> resources)
Gets the reaction network.
|
Integer |
getDocId()
Gets the archive name.
|
String |
getDocUri()
Gets the URI to the document.
|
String |
getFileName()
Gets the file name.
|
GraphSedmlDocument |
getFirstSimulationDescription()
Gets the first simulation description.
|
GraphModel |
getModel()
Gets the model.
|
void |
getReactionNetworkPic(List<Resource> resources)
Gets the reaction network.
|
List<Resource> |
getResources()
Gets the resources.
|
boolean |
isCellML()
Checks if is cell ml.
|
boolean |
isSimulationDescription()
Checks if is simulation description.
|
List<Resource> |
retrieveAdditionalResources()
Gets the additional resources.
|
void |
retrieveModelFiles()
Retrieve model file.
|
String |
toString() |
getData, getFileUri, getId, getLabels, getNodeEntry, getRestProperties
public GraphModelDocument(org.json.simple.JSONObject data, GraphModel model)
data
- the datamodel
- the modelpublic GraphModel getModel()
public String getDocUri()
public String getFileName()
public void retrieveModelFiles() throws IOException, URISyntaxException
IOException
- the IO exceptionURISyntaxException
- the uRI syntax exceptionpublic void addSimulationDescription(GraphSedmlDocument simulation)
simulation
- the simulationpublic boolean isCellML()
public boolean isSimulationDescription()
public GraphSedmlDocument getFirstSimulationDescription()
public List<Resource> retrieveAdditionalResources() throws org.apache.http.client.ClientProtocolException, IOException, URISyntaxException
org.apache.http.client.ClientProtocolException
- the client protocol exceptionIOException
- Signals that an I/O exception has occurred.URISyntaxException
- the uRI syntax exceptionpublic void getCurationResultPic(List<Resource> resources) throws org.apache.http.client.ClientProtocolException, IOException, URISyntaxException
resources
- the resourcesorg.apache.http.client.ClientProtocolException
- the client protocol exceptionIOException
- Signals that an I/O exception has occurred.URISyntaxException
- the uRI syntax exceptionpublic void getReactionNetworkPic(List<Resource> resources) throws org.apache.http.client.ClientProtocolException, IOException, URISyntaxException
resources
- the resourcesorg.apache.http.client.ClientProtocolException
- the client protocol exceptionIOException
- Signals that an I/O exception has occurred.URISyntaxException
- the uRI syntax exceptionpublic void createCombineArchive(File f, String archiveName, User user) throws IOException, org.jdom2.JDOMException, ParseException, de.unirostock.sems.cbarchive.CombineArchiveException, TransformerException
f
- the file to write toarchiveName
- the archive nameuser
- the userIOException
- the IO exceptionorg.jdom2.JDOMException
- the JDOM exceptionParseException
- the parse exceptionde.unirostock.sems.cbarchive.CombineArchiveException
- the combine archive exceptionTransformerException
- the transformer exceptionpublic Integer getDocId()
public String getArchiveName()
Copyright © 2019 SEMS project @ University of Rostock. All rights reserved.