How to load OntModel object from Model using specific IRI

1 view
Skip to first unread message

Yadav Virendra

unread,
Feb 26, 2013, 1:55:58 PM2/26/13
to sta...@clarkparsia.com
Hi,

How to load OntModel object from Model using specific IRI.

using the stardog connection object I got Model object but want to know how to load OntModel using the model for a specific IRI rather than loading the whole Model object.

Thanks..

Mike Grove

unread,
Feb 26, 2013, 2:03:58 PM2/26/13
to stardog
I'm not sure what you're trying to do.  You'll have to be a little more clear about what you're doing and what you're trying to achieve.

Generally, we don't support OntModel; it's not required, if you specify reasoning when you connect to your Stardog database, the Model will reflect that configuration, ie your query answers will reflect the reasoning level you provided.

If you are looking to access OntModel specific functions, such as listClasses, that is not something we currently support, but may consider in the future.

Cheers,

Mike
 

Thanks..

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
 
 

Yadav Virendra

unread,
Feb 26, 2013, 2:19:39 PM2/26/13
to sta...@clarkparsia.com
Hey Mike,

Thanks..

My point arises when the data in tupple store is going to be huge then the model configuration object in java may fail to load object in the heap memory. correct me if I am wrong.
I am eagerly looking forward to the ontModel related function such as listClasses, listStatement and OntClass etc...

I will be cool to have ad hock features like these.

:)

Mike Grove

unread,
Feb 26, 2013, 2:34:33 PM2/26/13
to stardog
On Tue, Feb 26, 2013 at 2:19 PM, Yadav Virendra <y.vir...@gmail.com> wrote:
Hey Mike,

Thanks..

My point arises when the data in tupple store is going to be huge then the model configuration object in java may fail to load object in the heap memory.

If you are planning on data at that scale, you should be using a Stardog disk-based database, rather than an in-memory database.
 
correct me if I am wrong.
I am eagerly looking forward to the ontModel related function such as listClasses, listStatement and OntClass etc...

You probably don't need any of those features unless you are building an ontology editor.  Those functions tend to be more for manipulating your tbox (the ontology) rather than building an application based on semantic technologies.  Use Protege or a similar tool for working with your ontology and add that to Stardog as needed.  It will be easier to visualize and manipulate an ontology in a GUI than in a programmatic API, especially one as un-OWL centric as OntModel.

Also, listStatement is supported by the Model interface, but is generally a bad idea.  If you have a big database, that's going to be slow and/or a memory hog.

Cheers,

Mike
Reply all
Reply to author
Forward
0 new messages