I used like this *OntProperty favleague=model.getOntProperty(ns+ "FavioriteLeague");* Then I wrote this rule:
(?x http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.semanticweb.org/soccer#Team) " + "( ?x http://www.semanticweb.org/soccer#FACupGoals ?goals )" + "greaterThan(?goals,30) + " -> (?x http://www.semanticweb.org/soccer#FavioriteLeague http://www.semanticweb.org/soccer#FACup )]"; //FACupe is resource in the ontology: Then *inf.listStatements(null,favcat,(RDFNode)null);* I think the problem is not in typo because I run similar rule for another data property FavioriteStadium and it also saves in Annotation area. On Wed, Jan 11, 2017 at 6:31 PM, Chris Dollin <[email protected]> wrote: > > > On 11/01/17 15:15, neha gupta wrote: > >> Even this not works >> >> inf.listStatements(null,favleague,(RDFNode)null); >> >> Gives the result but in Annotation area of Protege >> > > COMPLETE MINIMAL EXAMPLE, please. You have so many > errors & omissions in the code you show us we can't > tell which one is the one you're asking about. > > If Protege is putting things in the annotation area > I'd guess that means the thing isn't declared as either > a DataProperty or an ObjectProperty. Given your erratic > spelling that's quite likely. > > > Chris > > -- > "He could not weigh up which was worse and so tried not to think about > either." > /The Spellgrinder's > Apprentice/ > > Epimorphics Ltd, http://www.epimorphics.com > Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 > 6PT > Epimorphics Ltd. is a limited company registered in England (number > 7016688) >
