Search the web
Sign In
New User? Sign Up
jena-dev · Jena Developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Having problems listing property values from OWL ontology   Message List  
Reply | Forward Message #18837 of 42510 |
Hi,

Listing property values from RDF ontologies works fine with:

StmtIterator itr = instance.listProperties(property);

But I'm still having problems performing this action on OWL ontologies
as I'm getting no property value listed. I've used KA.OWL and expanded
it with one instance:

<owl:Thing rdf:ID="TheTimes"/>

<owl:Thing rdf:about="#TheTimes">
<rdf:type rdf:resource="#Journal"/>
<isAbout rdf:resource="#ResearchTopic"/>
<year rdf:datatype="integer">1998</year>
</owl:Thing>

I'm not sure wether this instance has been declared properly!?

Many thanks in advance for any help.

Best regards,
Wolf






Mon Oct 10, 2005 12:48 pm

rlvel137
Offline Offline
Send Email Send Email

Forward
Message #18837 of 42510 |
Expand Messages Author Sort by Date

Hi, Listing property values from RDF ontologies works fine with: StmtIterator itr = instance.listProperties(property); But I'm still having problems performing...
rlvel137
Offline Send Email
Oct 10, 2005
12:49 pm

You might have to change: <year rdf:datatype="integer">1998</year> to: <year rdf:datatype="http://www.w3.org/2001/XMLSchema#int">1998</year> Thanks, Jessie ......
jessicabrown153
Offline Send Email
Oct 10, 2005
3:51 pm

Hi Jessica, Thanks a lot for your suggestion! It works, when using Pellet-1.2, but does not work with Pellet-1.3-beta. Pellet-1.2 is listing the property...
rlvel137
Offline Send Email
Oct 11, 2005
9:43 am

... Not quite sure what you mean here. Looking at that URL it does not have an xml:base declared so if you copy that document to a local file then you must...
Dave Reynolds
derihy
Offline Send Email
Oct 11, 2005
12:37 pm

Hi Dave, Thanks for your comment! I've stored KA.OWL locally at: /home/models/ka.owl. Performing different actions like: listClasses() listSuperClasses() ...
rlvel137
Offline Send Email
Oct 12, 2005
10:46 am

... As I've already said this is because the file does not have an xml:base declared so loading it from another location changes the results of resolving the...
Dave Reynolds
derihy
Offline Send Email
Oct 12, 2005
7:40 pm

Hi Dave, Thanks for your reply and the insight given! ... YES, this lists ALL URIs in the form: http://protege.stanford.edu/plugins/owl/owl-library/ka.owl# How...
rlvel137
Offline Send Email
Oct 13, 2005
12:43 pm

... Well the best solution is to change the file (my option 1) to define an xml:base so your code doesn't need to do this. Since that file does define a...
Dave Reynolds
derihy
Offline Send Email
Oct 13, 2005
1:03 pm

Hi Dave, If I understood you well, I've set xml:base to: http://protege.stanford.edu/plugins/owl/owl-library/ka.owl# In fact, then it works all as desired! ...
rlvel137
Offline Send Email
Oct 14, 2005
1:07 pm

... One more note. With OntDocumentManager option (3 was it?) you can put the mapping configuration into a configuration file. Dave...
Dave Reynolds
derihy
Offline Send Email
Oct 13, 2005
2:15 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help