public class Convertor extends Object
IChemObject
into RDF using a
Jena model and the CDK data model ontology.Constructor and Description |
---|
Convertor() |
Modifier and Type | Method and Description |
---|---|
static IAtomContainer |
model2Molecule(com.hp.hpl.jena.rdf.model.Model model,
IChemObjectBuilder builder)
|
static com.hp.hpl.jena.rdf.model.Model |
molecule2Model(IAtomContainer molecule)
Converts a
IAtomContainer 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 . |
public static com.hp.hpl.jena.rdf.model.Model molecule2Model(IAtomContainer molecule)
IAtomContainer
into a Model
representation using the CDK OWL.molecule
- IAtomContainer
to serialize into a RDF graph.IAtomContainer
.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 IAtomContainer model2Molecule(com.hp.hpl.jena.rdf.model.Model model, IChemObjectBuilder builder)
model
- RDF graph to deserialize into an IAtomContainer
.builder
- IChemObjectBuilder
used to create new IChemObject
s.IAtomContainer
deserialized from the RDF graph.Copyright © 2017. All Rights Reserved.