Re: resource rdfs label

2016-04-28 Thread Lorenz B.
You can only get the rdfs:label if it's contained in the dataset. Otherwise you would have to extract the URI fragment resp. what's behind the '/' . 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_bo

Re: resource rdfs label

2016-04-25 Thread Martynas Jusevičius
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 wrote: > This is my Jena

resource rdfs label

2016-04-25 Thread mehmet mehmet
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)