|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eaglei.datatools.jena.EIInstanceFactory
public class EIInstanceFactory
| Field Summary | |
|---|---|
static EIInstanceFactory |
INSTANCE
|
| Method Summary | |
|---|---|
com.hp.hpl.jena.rdf.model.Model |
convertToJenaModel(org.eaglei.model.EIInstance instance)
|
org.eaglei.model.EIInstance |
create(org.eaglei.model.EIURI instanceUri,
com.hp.hpl.jena.rdf.model.Model model)
Create an EIInstance from a Jena model, with a given instanceUri |
org.eaglei.model.EIInstance |
create(org.eaglei.model.EIURI instanceUri,
java.lang.String rdf,
java.lang.String lang)
Create an EIInstance from an RDF String serialization in one of the RDF languages supported by Jena |
java.util.List<org.eaglei.model.EIInstance> |
create(com.hp.hpl.jena.rdf.model.Model model)
Batch creation of a list of EIInstances from a model |
java.util.List<org.eaglei.model.EIInstance> |
create(com.hp.hpl.jena.query.ResultSet resultSet)
Create method for abridged EIInstances (label, type, owner, WFState, creation date) |
org.eaglei.model.EIInstance |
createEmpty(org.eaglei.model.EIURI typeUri,
org.eaglei.model.EIEntity instanceEntity)
Create an EIInstance with no properties other than an eiType (at least one type must be set) |
static EIInstanceFactory |
getInstance()
|
java.lang.String |
serialize(org.eaglei.model.EIInstance instance,
java.lang.String lang)
Serialize an EInstance into an RDF language |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final EIInstanceFactory INSTANCE
| Method Detail |
|---|
public static EIInstanceFactory getInstance()
public java.lang.String serialize(org.eaglei.model.EIInstance instance,
java.lang.String lang)
instance - lang - - one of the RDF languages supported by Jena; predefined values are
"RDF/XML", "RDF/XML-ABBREV", "N-TRIPLE", "TURTLE", (and "TTL") and "N3". The default value, represented by null is "RDF/XML".
public com.hp.hpl.jena.rdf.model.Model convertToJenaModel(org.eaglei.model.EIInstance instance)
public org.eaglei.model.EIInstance create(org.eaglei.model.EIURI instanceUri,
java.lang.String rdf,
java.lang.String lang)
instanceUri - - the instance uri (all the triples in the rdf parameter should have it as subject)rdf - lang -
public org.eaglei.model.EIInstance createEmpty(org.eaglei.model.EIURI typeUri,
org.eaglei.model.EIEntity instanceEntity)
typeUri - - type of the EInstance; if more than one, add can be usedinstanceEntity - - entity containing the instance Uri and its label
public org.eaglei.model.EIInstance create(org.eaglei.model.EIURI instanceUri,
com.hp.hpl.jena.rdf.model.Model model)
instanceUri - - the instance uri (all the triples in the model should have it as subject)model -
public java.util.List<org.eaglei.model.EIInstance> create(com.hp.hpl.jena.rdf.model.Model model)
model -
public java.util.List<org.eaglei.model.EIInstance> create(com.hp.hpl.jena.query.ResultSet resultSet)
resultSet -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||