On 18/10/13 09:24, Wang Dongsheng wrote:
Then there is no way to give a name when load the data in java code?

Graphs/model don't have names - the slots in the dataset has the name. The same graph can be in a dataset multiple times.

Model m = dataset.getNamedModel(...)
GraphTDB g = (GraphTDB)m.getGraph()
TDBLoader.load(g,....)

loads into a named graph of the dataset

        Andy


Anyway, thank you for answering! It helps too :)

On Fri, Oct 18, 2013 at 3:38 PM, Andy Seaborne <[email protected]> wrote:
On 18/10/13 03:06, Wang Dongsheng wrote:

HI,
    It's good to use
TDBLoader.load(TDBInternal.getBaseDatasetGraphTDB(datasetGraph),file,
false); to load large TTL files into TDB.
     But, I want to name the graph, maybe something liked
"dataset.addNamedModel(graphName, Model)"  As we know, this method is
slow and limited to fast and large file importing.
     Is there any similar function for the TDBLoader cass that I can
name a graphName?

Thanks in advance~!




TDBLoader.load(GraphTDB,....)

If you just want to load the data, it's easier to do it from the command
line with "tdbloader --graph=IRI"

         Andy


Reply via email to