|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.larkc.core.data.DataFactoryImpl
public class DataFactoryImpl
This is a dummy factory to abstract ORDI creation specifics.
Field Summary | |
---|---|
static long |
REFERENCE_TYPES_CACHE_TIME
|
static java.lang.String |
REFERENCE_TYPES_CACHE_TIME_PROP
|
Fields inherited from interface eu.larkc.core.data.DataFactory |
---|
INSTANCE, LARKC_NS |
Method Summary | |
---|---|
AttributeValueMap |
createAttributeValueList(SetOfStatements rdf)
TODO Describe the purpose of this method. |
AttributeValueMap |
createAttributeValueList(SetOfStatements rdf,
org.openrdf.model.URI invocationID)
------ Methods to handle arguments as Attribute/value lists. |
RdfGraph |
createRdfGraph(java.lang.Iterable<org.openrdf.model.Statement> sts,
org.openrdf.model.URI graph)
Creates a RDF graph that will be passed by value. |
RdfGraph |
createRdfGraph(SetOfStatements rdf)
NEW METHODS |
RdfGraph |
createRdfGraph(SetOfStatements rdf,
org.openrdf.model.URI invocationID)
Create RdfGraph from RDF data. |
RdfStoreConnection |
createRdfStoreConnection()
Creates a connection to local storage. |
RdfGraph |
createRemoteRdfGraph(org.openrdf.model.URI uri)
Creates RDF graph from a remote location. |
SPARQLEndpoint |
createSPARQLEndpoint(org.openrdf.model.URI uri)
Create a connection to remote SPARQL endpoint. |
SPARQLQuery |
createSPARQLQuery(SetOfStatements rdf)
Create SPARQLQuery from RDF data. |
SPARQLQuery |
createSPARQLQuery(SetOfStatements rdf,
org.openrdf.model.URI invocationID)
Create SPARQLQuery from RDF data. |
SPARQLQuery |
createSPARQLQuery(java.lang.String query)
Create a SPARQL query from a string |
SPARQLQuery |
createSPARQLQuery(java.lang.String query,
java.lang.String ns,
org.openrdf.model.URI label)
Creates a SPARQL query from a string to be executed against a specific labeled group. |
SPARQLQuery |
createSPARQLQuery(java.lang.String query,
org.openrdf.model.URI label)
Creates a SPARQL query from a string to be executed against a specific labeled group. |
VariableBinding |
createVariableBinding(SetOfStatements rdf)
TODO Describe the purpose of this method. |
VariableBinding |
createVariableBinding(SetOfStatements rdf,
org.openrdf.model.URI invocationID)
TODO Describe the purpose of this method. |
VariableBindingBase |
createVariableBindingBase(SetOfStatements sts)
TODO Gets VariableBindings for the SetOfStatements FIXME: This is using the cheating object store |
static DataFactoryImpl |
getInstance()
|
SetOfStatements |
parseGraph(java.io.File file,
java.lang.String nameSpace)
TODO Describe the purpose of this method. |
RdfGraph |
setNamedGraph(SetOfStatements input,
org.openrdf.model.URI newName)
Sets the name of the graph for the given SetOfStatements. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String REFERENCE_TYPES_CACHE_TIME_PROP
public static long REFERENCE_TYPES_CACHE_TIME
Method Detail |
---|
public static DataFactoryImpl getInstance()
public VariableBindingBase createVariableBindingBase(SetOfStatements sts)
sts
-
public RdfGraph createRdfGraph(java.lang.Iterable<org.openrdf.model.Statement> sts, org.openrdf.model.URI graph)
createRdfGraph
in interface DataFactory
graph
- name (may be null)sts
- collection of the statements
public RdfGraph createRemoteRdfGraph(org.openrdf.model.URI uri)
createRemoteRdfGraph
in interface DataFactory
uri
- to be resolved
public RdfStoreConnection createRdfStoreConnection()
createRdfStoreConnection
in interface DataFactory
public SPARQLEndpoint createSPARQLEndpoint(org.openrdf.model.URI uri)
createSPARQLEndpoint
in interface DataFactory
uri
-
public SPARQLQuery createSPARQLQuery(java.lang.String query)
DataFactory
createSPARQLQuery
in interface DataFactory
query
- to be parsed
public SPARQLQuery createSPARQLQuery(java.lang.String query, org.openrdf.model.URI label)
DataFactory
createSPARQLQuery
in interface DataFactory
query
- to be parsedlabel
- labeled group to be used (may be null)
public SPARQLQuery createSPARQLQuery(java.lang.String query, java.lang.String ns, org.openrdf.model.URI label)
DataFactory
createSPARQLQuery
in interface DataFactory
query
- to be parsedns
- default namespace to be used in the expansion of the short
qname in querylabel
- labeled group to be used (may be null)
public RdfGraph createRdfGraph(SetOfStatements rdf)
createRdfGraph
in interface DataFactory
public RdfGraph createRdfGraph(SetOfStatements rdf, org.openrdf.model.URI invocationID)
DataFactory
createRdfGraph
in interface DataFactory
public SPARQLQuery createSPARQLQuery(SetOfStatements rdf)
DataFactory
createSPARQLQuery
in interface DataFactory
public SPARQLQuery createSPARQLQuery(SetOfStatements rdf, org.openrdf.model.URI invocationID)
DataFactory
createSPARQLQuery
in interface DataFactory
public AttributeValueMap createAttributeValueList(SetOfStatements rdf, org.openrdf.model.URI invocationID)
createAttributeValueList
in interface DataFactory
public AttributeValueMap createAttributeValueList(SetOfStatements rdf)
DataFactory
createAttributeValueList
in interface DataFactory
public VariableBinding createVariableBinding(SetOfStatements rdf)
DataFactory
createVariableBinding
in interface DataFactory
public VariableBinding createVariableBinding(SetOfStatements rdf, org.openrdf.model.URI invocationID)
DataFactory
createVariableBinding
in interface DataFactory
public RdfGraph setNamedGraph(SetOfStatements input, org.openrdf.model.URI newName)
DataFactory
setNamedGraph
in interface DataFactory
public SetOfStatements parseGraph(java.io.File file, java.lang.String nameSpace) throws org.openrdf.rio.RDFParseException, org.openrdf.rio.RDFHandlerException, java.io.FileNotFoundException, java.io.IOException
DataFactory
parseGraph
in interface DataFactory
org.openrdf.rio.RDFParseException
org.openrdf.rio.RDFHandlerException
java.io.FileNotFoundException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |