Re: Getting classes from an ontology
Hi, Andy - Answers inline. On May 3, 2014, at 4:53 AM, Andy Seaborne wrote: On 05/03/14 00:02, Cindy A McMullen wrote: Unfortunately, we're using an older version of Jena (2.7.2) for compatibility with the Oracle Jena adapter. I see more recent versions have these methods on OntModel: listClasses() listDatatypeProperties() and so on. How can I do the equivalent using Jena 2.7.2? Those exist in my copies of jena 2.7.2 (and earlier as well). I don't see them. Which jars do you have? /Users/cindymc/dev/discovery:$ find . -name *jena*.jar ./_deps/jena-arq-2.9.2.jar ./_deps/jena-core-2.7.2.jar ./_deps/jena-iri-0.9.2.jar /Users/cindymc/dev/discovery:$ find . -name *jena*.jar | xargs grep listClasses (Your other choice is to look at the source code for a later version and see what the code does then provide the same functionality). Andy Thanks - -- Cindy
Re: Getting classes from an ontology
On 05/05/14 16:49, Cindy A McMullen wrote: Hi, Andy - Answers inline. On May 3, 2014, at 4:53 AM, Andy Seaborne wrote: On 05/03/14 00:02, Cindy A McMullen wrote: Unfortunately, we're using an older version of Jena (2.7.2) for compatibility with the Oracle Jena adapter. I see more recent versions have these methods on OntModel: listClasses() listDatatypeProperties() and so on. How can I do the equivalent using Jena 2.7.2? Those exist in my copies of jena 2.7.2 (and earlier as well). I don't see them. Which jars do you have? jena-core /Users/cindymc/dev/discovery:$ find . -name *jena*.jar ./_deps/jena-arq-2.9.2.jar ./_deps/jena-core-2.7.2.jar ./_deps/jena-iri-0.9.2.jar /Users/cindymc/dev/discovery:$ find . -name *jena*.jar | xargs grep listClasses jar files are compressed - you can't grep them for strings. You'll need to unzip jena-core-2.7.2-sources.jar then grep the file tree Andy (Your other choice is to look at the source code for a later version and see what the code does then provide the same functionality). Andy Thanks - -- Cindy
Re: Getting classes from an ontology
On 05/03/14 00:02, Cindy A McMullen wrote: Unfortunately, we're using an older version of Jena (2.7.2) for compatibility with the Oracle Jena adapter. I see more recent versions have these methods on OntModel: listClasses() listDatatypeProperties() and so on. How can I do the equivalent using Jena 2.7.2? Those exist in my copies of jena 2.7.2 (and earlier as well). (Your other choice is to look at the source code for a later version and see what the code does then provide the same functionality). Andy Thanks - -- Cindy