|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openscience.cdk.libio.jena.Convertor
public class Convertor
Helper class that converts a CDK IChemObject into RDF using a
Jena model and the CDK data model ontology.
| Constructor Summary | |
|---|---|
Convertor()
|
|
| Method Summary | |
|---|---|
static IMolecule |
model2Molecule(com.hp.hpl.jena.rdf.model.Model model,
IChemObjectBuilder builder)
Converts a Model into an IMolecule using the given IChemObjectBuilder. |
static com.hp.hpl.jena.rdf.model.Model |
molecule2Model(IMolecule molecule)
Converts a IMolecule into a Model representation using the CDK OWL. |
static com.hp.hpl.jena.rdf.model.Resource |
order2Resource(IBond.Order order)
Create the Resource matching the given IBond.Order. |
static IBond.Order |
resource2Order(com.hp.hpl.jena.rdf.model.Resource rdfOrder)
Converts a Resource object into the matching IBond.Order. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Convertor()
| Method Detail |
|---|
public static com.hp.hpl.jena.rdf.model.Model molecule2Model(IMolecule molecule)
IMolecule into a Model representation using the CDK OWL.
molecule - IMolecule to serialize into a RDF graph.
IMolecule.public static IBond.Order resource2Order(com.hp.hpl.jena.rdf.model.Resource rdfOrder)
Resource object into the matching IBond.Order.
rdfOrder - Resource for which the matching IBond.Order should be given.
IBond.Order.public static com.hp.hpl.jena.rdf.model.Resource order2Resource(IBond.Order order)
Resource matching the given IBond.Order.
order - bond order to return the matching Resource for.
Resource.
public static IMolecule model2Molecule(com.hp.hpl.jena.rdf.model.Model model,
IChemObjectBuilder builder)
Model into an IMolecule using the given IChemObjectBuilder.
model - RDF graph to deserialize into an IMolecule.builder - IChemObjectBuilder used to create new IChemObjects.
IMolecule deserialized from the RDF graph.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||