You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Joakim Soderberg <so...@gmail.com> on 2014/03/31 02:15:29 UTC
named model
Hi,
I hear that using named models are best practice. But I can't find any
examples in the new Jena tutorials. Would it be to recommendable to keep a
reference to the data set and then create a named model using:
Dataset ds = TDBFactory.createDataset("datase/t");
Model model = dataset.getNamedModel("namedModel");
or is it better to use Model Maker?
Re: named model
Posted by Andy Seaborne <an...@apache.org>.
On 31/03/14 01:15, Joakim Soderberg wrote:
> Hi,
> I hear that using named models are best practice. But I can't find any
> examples in the new Jena tutorials. Would it be to recommendable to keep a
> reference to the data set and then create a named model using:
>
> Dataset ds = TDBFactory.createDataset("datase/t");
> Model model = dataset.getNamedModel("namedModel");
>
> or is it better to use Model Maker?
>
For datasets, use dataset.getNamedModel (ModelMakers are more for
creating specific interesting models and don't tie to datasets).
Andy