Hello jena folks,
We have a system that translates OWL into our own XML language and it
uses Jena to do this.
We would like to write unit tests for our translation process so that we
can verify our code correctness. To do this, we would supply Jena
domain objects (Resource, Statement, etc) to our code, and then verify
that the objects that were returned are what we expected, given the
input of a particular Jena object.
For example: We have a factory that constructs an object given a
Restriction. The test would be to supply a Jena Restriction that is a
datatype restriction and then check that what our code returned is
appropriate for a datatype Restriction. However, we need to
programmatically create Jena resources (such as Restriction) and be able
to make it a datatype restriction. They want the resources to be
standalone and with the minimal statements that we are able to specify.
We don't want to have to make an OWL file to do this. Do you have any
suggestions?
thanks!
-thomas
- making unit tests with jena Thomas Marsh
-