Skip to main content

alphaWorks  >  Forums  >  IBM Integrated Ontology Development Toolkit  >  developerWorks

tutorial for EODM 0.9.1    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 2 - Pages: 1 - Last Post: Jul 19, 2008 3:43 PM Last Post By: Jeremy Caine Threads: [ Previous | Next ]
Ian_Scott

Posts: 3
Registered: Mar 07, 2008 09:19:32 AM
tutorial for EODM 0.9.1
Posted: Mar 09, 2008 04:24:46 PM
 
Click to report abuse...   Click to reply to this thread Reply
Hi all,

I admit I am a complete noob when it comes to EODM. I have downloaded v0.9.1 from the Eclipse site - it being the latest version.

Can someone please help me get started with coding a simple RDF/OWL structure in memory using the API?

I notice that to create an OWLOntology you now need to use...

OWLOntology createOWLOntology(OWLGraph graph,
URIReference uriRef)

What I don't know is how I should initialise a "graph" and "uriRef"..!

Any pointers would be much appreciated. Any example code out there? p.s. The default constructor is no longer available in v0.9.1...

Thanks in advance...
zhanglei

Posts: 10
Registered: Jun 08, 2006 10:35:19 PM
Re: tutorial for EODM 0.9.1
Posted: Mar 20, 2008 12:09:27 AM   in response to: Ian_Scott in response to: Ian_Scott's post
 
Click to report abuse...   Click to reply to this thread Reply
You can just call createOWLGraph(...) to create a OWL graph. Currently, we do not have written example code yet. You can look at the TestEODMModel.java in the org.eclipse.eodm.tests.precheckin package for how we use the API in some test code.
Jeremy Caine

Posts: 12
Registered: Dec 17, 2004 07:14:27 AM
Re: tutorial for EODM 0.9.1
Posted: Jul 19, 2008 03:43:18 PM   in response to: zhanglei in response to: zhanglei's post
 
Click to report abuse...   Click to reply to this thread Reply
This is not a good answer.

I think this release needs some more focus and support.

Please give more information on how to find the package org.eclipse.eodm.tests.precheckin and therefore the test code you refer to.

The EODM 0.9.1 release has out of date documentation. The package structure has changed and the examples are equally out of date.

Take CreateAndManipulateOWLExample.java that comes in the IODT-1.5.zip it shows

// obtain the RDFS factory and Create the ontology
OWLFactory factory = OWLFactory.eINSTANCE;
ontology = factory.createOWLOntology();
ontology.setLocalName("TestOntology");

This calling style is no longer valid, hence the post about how to createOWLGraph using the new 0.9.1 structure.

Point your RSS reader here for a feed of the latest messages in all forums