On 11/01/17 10:54, neha gupta wrote:
I used this to execute the rule
for (Iterator i = inf.listResourcesWithProperty(RDF.type,
favioriteleague); i.hasNext();)
{
inf.listStatements(null,RDF.type, "FavioriteLeague");
}
I think the problem is here in the code.
Well, there's certainly a problem in this incomplete snippet
of code.
The object of an RDF.type statement isn't going to be a literal
(or, if it is, you will have different problems somewhere else).
So the listStatements will produce no answers. Ever.
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)