Re: How to import instances and its corresponding property values from database to an ontology

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/How-to-import-instances-and-its-corresponding-property-values-from-database-to-an-ontology-tp387p405.html

Hi,

I think you can use a normal DataProperty (non Inverse functional). Inverse functional properties provide no particular optimization, and no check -- they are only used for reasoning purpose in OWL.

> Also, In my example why does it create a object property as well as a
> datatype property when i create a
> Inverse Functional Property since you said they are disjoint
> implicitely.Also it creates a class with name customerNumber.

Inheriting from both ObjectProperty and DataProperty is not supported, and thus anything may occur :)

Best regards,
Jean-Baptiste Lamy
MCF, LIMICS, Université Paris 13

> Hi Jiba,
>
> Thank you for the response.The str is wrong on my part it has to be an
> integer since its a customer number.
> But I want to use an Inverse functional property for customer number since
> its a Primary key?
>
> and since Inverse Functional Property is a subclass of object property it
> will create a customerNumber object property.
>
> I read some research papers which mentioned that for primary keys use
> inverse functional property.
> What do you think is the best way to express primary keys in ontology?
>
> Also, In my example why does it create a object property as well as a
> datatype property when i create a
> Inverse Functional Property since you said they are disjoint
> implicitely.Also it creates a class with name customerNumber.
>
>
> Regards,
> Jui
>
>
>
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://owlready.8326.n8.nabble.com/How-to-import-instances-and-its-corresponding-property-values-from-database-to-an-ontology-tp387p402.html
> To start a new topic under Owlready, email [hidden email]
> To unsubscribe from Owlready, visit