I want to check whether a property is functional or not. I tried:
ASK {
pz:isBase owl:isInverseFunctional .
}
but it is a syntax error. How can I check whether a property is functional?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try:
To explain: the patterns that RDF represents, and which SPARQL queries, are triples of
subject predicate object, or in other words a binary predicate. You’re thinking of a unary predicateisInverseFunctional(), but RDF doesn’t do unary predicates. Instead, that kind of type or sortal information is encoded as a binary predicate with a special predicaterdf:type, which you can think of asisKindOforis member of the class.So, to discover whether a resource denoting a particular predicate in your domain model is an inverse functional property, you ask whether that resource is in the class of, i.e. has
rdf:typethe class of all inverse functional properties orowl:InverseFunctionalProperty.