yordanterziev / jenabean

Automatically exported from code.google.com/p/jenabean
0 stars 1 forks source link

Subclassing information #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

Do you plan also to store also hierarchy of the classes, which are
instanciated in the Jena model.

What steps will reproduce the problem?
1. Compile the attached file (Test.java)
2. Observe the output

What is the expected output? 

I expected there will appear a statement:

:B rdfs:subClassOf :A .

What do you see instead?

All but not the statement.

@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix daml:    <http://www.daml.org/2001/03/daml+oil#> .

<http://thewebsemantic.com/javaclass>
      a       owl:AnnotationProperty .

<http://unimore.ecosystem.zombie.sensor/B/23894119>
      a       <http://unimore.ecosystem.zombie.sensor/B> .

<http://unimore.ecosystem.zombie.sensor/B>
      a       owl:Class ;
      <http://thewebsemantic.com/javaclass>
              "unimore.ecosystem.zombie.sensor.A$B" .

What version of the product are you using? On what operating system?

The last checkout from SVN

Best,

Maciej

Original issue reported on code.google.com by mgawine...@gmail.com on 19 May 2008 at 4:54

Attachments:

GoogleCodeExporter commented 8 years ago
No, I've not done that intentionally, although I'm always open to discussion.  
The
primary issue is that OWL allows multiple inheritance.  In order to keep it 
simple
I've focused the project on making it easy to assert new data, and pull 
specific info
back out for use in a java app.

You'll find, I believe, that the easiest and quickest way to have classification
hierarchies is either writing a little N3 and loading it first into your model, 
or
using and ontology editor.  I really sensed early on that a java class hierarchy
sometimes differs from the ideal OWL or RDFS hierarchy...two different worlds 
that
are difficult to bridge, so we're settling for mostly data.

But, again, if you're really into java like myself, it's more fun to just drive
everything from that point of view...so I think I'll begin adding this as an 
optional
feature.

Original comment by thewebse...@gmail.com on 6 Nov 2008 at 4:28