Never mind, solved it. All I had to do was call model.toString().

On Tue, Jun 18, 2013 at 11:03 AM, Kurt Landen <[email protected]>wrote:

> Sorry I wasn't very clear. By full path I mean the URI for example:
>
> static String personURI = "http://somewhere/JohnSmith";;
>
> By name I mean the name of the model. Something like what is returned by
> Dataset class' listNames() function. Except I only want the name of the
> current model that I am using.
>
> Is there any way to get either of those without previously knowing what
> they are?
>
> Thanks.
>
>
>
>
>
>
> On Tue, Jun 18, 2013 at 10:51 AM, Joshua TAYLOR <[email protected]>wrote:
>
>> On Tue, Jun 18, 2013 at 11:33 AM, Kurt Landen <[email protected]>
>> wrote:
>> > Say I have a com.hp.hpl.jena.rdf.model object. Is there any simple way
>> to
>> > get that model's name or full path. This is assuming that the model is
>> > already added to a dataset, and I don't know what the model's name or
>> path
>> > is.
>>
>> What exactly do you mean by the model's name or full path?  For
>> instance, if you create a model m with
>>
>>     Model m = ModelFactory.createDefaultModel();
>>
>> what would you expect as the name or full path?
>>
>> --
>> Joshua Taylor, http://www.cs.rpi.edu/~tayloj/
>>
>
>

Reply via email to