Thank you! +1 for the JUnit example code.
+1 for highlighting OntModel which has solved a number of other requirements. Dick Murray Technology Specialist Unit4 Business Software On 23 Aug 2011, at 10:46, "Ian Dickinson" <[email protected]> wrote: > Hi Dick, > > On 23/08/11 09:53, Dick Murray wrote: >> Hello all. >> > > [..] >> I'm using the following code to create a new model containing a >> filtered set of statements based on the language tag; >> >> Can I get an iterator over the statements which match a >> subject/predicate and language tag or do I need to do my own >> filtering..? > The JavaDoc on listStatements is not as clear as it could be. The lang tag is > only used in the case that the object is non-null: ie it can be used to > select for the particular language version of a given literal (foo@en as > opposed to foo@fr), but it can't be used to generically select all @en or all > @fr labels. However, all is not lost, I've provided some alternatives in the > attached test case. > > Hth, > Ian > > > > > -- > ____________________________________________________________ > Ian Dickinson Epimorphics Ltd, Bristol, UK > mailto:[email protected] http://www.epimorphics.com > cell: +44-7786-850536 landline: +44-1275-399069 > ------------------------------------------------------------ > Epimorphics Ltd. is a limited company registered in England > (no. 7016688). Registered address: Court Lodge, 105 High St, > Portishead, Bristol BS20 6PT, UK > > <LangTest.java>
