You should not be looking at the URI as a label.

How did you try rdfs:label? Something like this should work:

SELECT *
WHERE
{
  ?x tre:has_boss tre:Good ;
    rdfs:label ?label .
}

Needs tre: and rdfs: PREFIXes of course.

On Mon, Apr 25, 2016 at 5:33 PM, mehmet mehmet <mehmettw...@gmail.com> wrote:
> This is my Jena query
>
> "SELECT * " + "WHERE {"  ?x tre:has_boss tre:Good." + "}" ;
>
> IT gives me correct answer but in URI form
>
> www.semanticweb/myontology/IT_Manager
>
> *I want just IT_Manager. I tried rdfs:label but does not work.*
>
> (IT_Manager is a resource object in my ontology)

Reply via email to