how do I extract (or know) the cardinality of a relationship property using Jena? I know when I haven't cardinality in my file owl, the cardinality is "many" to a particular class. Could anyone give me an example of using getCardinality. Is this the best way?
asked 19 Apr '11, 08:52
The getCardinality(rel) method will get you the cardinality of relation in the context of a particular resource. However, it sounds like you want to get the cardinality of a relation in the context of all individuals that participate in the relation, in which case you'd want to write something like this:
answered 19 Apr '11, 09:57