> Hello > I have a text file, having more than twenty Jena rules. Usually we need > SPARQL queries to execute and display the inference results. > > For my twenty rules, I need more or less ten queries, so what will be the > sequence and proper way to use SPARQL queries? What means "query for a rule"? Rules are used to infer(generate) additional data based on existing data.
1) Load all rules into a the GenericRuleReasoner and apply it on the original data -> you get a new model Reasoner reasoner = new GenericRuleReasoner(Rule.parseRules(rules)); InfModel inf = ModelFactory.createInfModel(reasoner, rawData); 2) execute the SPARQL query against the new model which contains all the data Lorenz > I have some inverse property rules, symmetric, transitive and most are Jena > generic rules used in the text file. > > Thanks a lot. > -- Lorenz Bühmann AKSW group, University of Leipzig Group: http://aksw.org - semantic web research center