@Override public Set<OWLClass> getClassesInSignature() { Set<OWLClass> result = new HashSet<OWLClass>(); for (OWLEntity ent : getSignature()) { if (ent.isOWLClass()) { result.add(ent.asOWLClass()); } } return result; }
@Override public Set<OWLObjectProperty> getObjectPropertiesInSignature() { Set<OWLObjectProperty> result = new HashSet<OWLObjectProperty>(); for (OWLEntity ent : getSignature()) { if (ent.isOWLObjectProperty()) { result.add(ent.asOWLObjectProperty()); } } return result; }
@Override public Set<OWLDataProperty> getDataPropertiesInSignature() { Set<OWLDataProperty> result = new HashSet<OWLDataProperty>(); for (OWLEntity ent : getSignature()) { if (ent.isOWLDataProperty()) { result.add(ent.asOWLDataProperty()); } } return result; }
@Override public Set<OWLDatatype> getDatatypesInSignature() { Set<OWLDatatype> result = new HashSet<OWLDatatype>(); for (OWLEntity ent : getSignature()) { if (ent.isOWLDatatype()) { result.add(ent.asOWLDatatype()); } } return result; }
public Set<OWLDataProperty> getDataPropertiesInSignature() { Set<OWLDataProperty> result = new HashSet<OWLDataProperty>(); for (OWLEntity ent : getSignature()) { if (ent.isOWLDataProperty()) { result.add(ent.asOWLDataProperty()); } } return result; }
public Set<OWLNamedIndividual> getIndividualsInSignature() { Set<OWLNamedIndividual> result = new HashSet<OWLNamedIndividual>(); for (OWLEntity ent : getSignature()) { if (ent.isOWLNamedIndividual()) { result.add(ent.asOWLNamedIndividual()); } } return result; }
public Set<OWLClass> getClassesInSignature() { Set<OWLClass> result = new HashSet<OWLClass>(); for (OWLEntity ent : getSignature()) { if (ent.isOWLClass()) { result.add(ent.asOWLClass()); } } return result; }
public Set<OWLObjectProperty> getObjectPropertiesInSignature() { Set<OWLObjectProperty> result = new HashSet<OWLObjectProperty>(); for (OWLEntity ent : getSignature()) { if (ent.isOWLObjectProperty()) { result.add(ent.asOWLObjectProperty()); } } return result; }
@Override public Set<OWLNamedIndividual> getIndividualsInSignature() { Set<OWLNamedIndividual> result = new HashSet<OWLNamedIndividual>(); for (OWLEntity ent : getSignature()) { if (ent.isOWLNamedIndividual()) { result.add(ent.asOWLNamedIndividual()); } } return result; }
/** * A convenience method that obtains the datatypes * that are in the signature of this object * @return A set containing the datatypes that are in the signature * of this object. */ public Set<OWLDatatype> getDatatypesInSignature() { Set<OWLDatatype> result = new HashSet<OWLDatatype>(); for(OWLEntity ent : getSignature()) { if(ent.isOWLDatatype()) { result.add(ent.asOWLDatatype()); } } return result; }