0
votes

I'm new at OWL-API. I need to represent an intersection of N concepts So, intersectionOf (C1, C2, ..... CN). IntersectionOf has two arguments, but how can I do the general purpose solution? Is it good enough to build an HashSet and then put it into the arguments?

2

2 Answers

0
votes

OWLDataFactory has methods for obtaining an intersection that accept collections - usually sets- of class expressions. I believe that's what you're after.

0
votes

Just like Ignazio said, but with code:

Java Code: OWLDataFactory factory = manager.getOWLDataFactory(); Set<OWLClassExpression> mySet = new HashSet<OWLClassExpression>(); factory.getOWLObjectIntersectionOf(mySet);

HTH