That's better than what I was doing. Thanks for pointing me in the right
direction.


On Tue, Jun 18, 2013 at 11:39 AM, Andy Seaborne <[email protected]> wrote:

> Kurt,
>
> Models don't have names.  Models in a dataset have a name in that dataset
> - it's not a feature of the model itself.
>
>         Andy
>
>
> On 18/06/13 17:21, Kurt Landen wrote:
>
>> 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