I tried all of Specs but I allways get wrong effect in load owl file.
Can you help me more ?

Lukas

Dne 31.5.2015 v 18:24 Andy Seaborne napsal(a):
On 31/05/15 10:23, Lukáš Figura wrote:
I set my OntModel this way:

OntModel ontModel = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);

Path input = Paths.get(pathToOWL);

ontModel.read(input.toUri().toString());

pathToOWL is way in my computer to owl file.

OntModelSpec javadoc =>
"""
OWL_MEM
A specification for OWL models that are stored in memory and do no additional entailment reasoning
"""

so no reasoning applied.

It will be easier to see a complete, minimal example along with the results you expect and the result you obtains.

    Andy


Lukas

Dňa 31.5.2015 o 11:05 Andy Seaborne napísal(a):
Lukáš,

How are you setting up the OntModel?  The javadoc for
listDeclaredProperties says:

OWL_MEM
A specification for OWL models that are stored in memory and do no additional entailment reasoning
"""
This method may therefore return complete results only in models that
have an attached reasoner.
"""

    Andy

On 26/05/15 15:27, Lukáš Figura wrote:
Resended message. I replied to the confirmation message.

Hello,

i need help with get restriction of specific OntClass...
I get list of OntClass this way: ontModel.listNamedClasses()
but when I call listDeclaredProperties(true) on specific OntClass I dont
restrictions of Class...

Should you help me ?
I add my owl file to this email.

Thanks for help.

Lukas

Dňa 26.5.2015 o 16:22 Andy Seaborne napísal(a):
Hi there,

You don't seem to be subscribed to the list, at least not with this
email address, or you sent the message before you had replied to the
confirmation message.  Your message was bounced to the moderator.

To subscribe, send email to [email protected] and reply
to the confirmation.  You won't necessarily see replies otherwise.

Once subscribed, please resend your message.

http://jena.apache.org/help_and_support/index.html

    Andy

On 26/05/15 15:12, Lukáš Figura wrote:
Hello,

i need help with get restriction of specific OntClass...
I get list of OntClass this way: ontModel.listNamedClasses()
but when I call listDeclaredProperties(true) on specific OntClass I
dont restrictions of Class...

Should you help me ?
I add my owl file to this email.

Thanks for help.

Lukas







Reply via email to