@Override public void visit(OWLClass desc) { if (!done && !processedClasses.contains(desc)) { processedClasses.add(desc); Set<OWLClassExpression> set = desc.getSuperClasses(onts); for (OWLClassExpression s : set) { if (s.equals(desc)) { break; } else if (!done && !(s.isAnonymous() || s.asOWLClass().isBuiltIn())) s.asOWLClass().accept(this); } } }
protected void reservedForClass(OWLClass ce) { if (!ce.isBuiltIn() && ce.getIRI().isReservedVocabulary()) { violations.add(new UseOfReservedVocabularyForClassIRI(getCurrentOntology(), getCurrentAxiom(), ce)); } }
protected void reservedForClass(OWLClass ce) { if (!ce.isBuiltIn() && ce.getIRI().isReservedVocabulary()) { violations.add(new UseOfReservedVocabularyForClassIRI(getCurrentOntology(), getCurrentAxiom(), ce)); } }
protected void reservedForClass(OWLClass ce) { if (!ce.isBuiltIn() && ce.getIRI().isReservedVocabulary()) { violations.add(new UseOfReservedVocabularyForClassIRI(getCurrentOntology(), getCurrentAxiom(), ce)); } }
protected void undeclaredClass(OWLClass ce) { if (!ce.isBuiltIn() && !ce.getIRI().isReservedVocabulary() && !getCurrentOntology().isDeclared(ce, INCLUDED)) { violations.add(new UseOfUndeclaredClass(getCurrentOntology(), getCurrentAxiom(), ce)); } }
protected void undeclaredClass(OWLClass ce) { if (!ce.isBuiltIn() && !ce.getIRI().isReservedVocabulary() && !getCurrentOntology().isDeclared(ce, INCLUDED)) { violations.add(new UseOfUndeclaredClass(getCurrentOntology(), getCurrentAxiom(), ce)); } }
protected void undeclaredClass(OWLClass ce) { if (!ce.isBuiltIn() && !ce.getIRI().isReservedVocabulary() && !getCurrentOntology().isDeclared(ce, INCLUDED)) { violations.add(new UseOfUndeclaredClass(getCurrentOntology(), getCurrentAxiom(), ce)); } }
@Override public synchronized Collection<IConcept> getParents() { Set<IConcept> concepts = new HashSet<>(); synchronized (_owl) { Set<OWLClassExpression> set = _owl.getSuperClasses(_manager.manager .getOntologies()); for (OWLClassExpression s : set) { if (s.equals(_owl)) { KLAB.error("self-referential inheritance for " + this); break; } else if (!(s.isAnonymous() || s.asOWLClass().isBuiltIn())) concepts.add(new Concept(s.asOWLClass(), _manager, _manager .getConceptSpace(s.asOWLClass().getIRI()))); } } return concepts; }
public Object visit(OWLClass desc) { if (!desc.isBuiltIn()) { if (desc.getIRI().isReservedVocabulary()) { profileViolations.add(new UseOfReservedVocabularyForClassIRI(getCurrentOntology(), getCurrentAxiom(), desc)); } } if (!desc.isBuiltIn() && !getCurrentOntology().isDeclared(desc, true)) { profileViolations.add(new UseOfUndeclaredClass(getCurrentOntology(), getCurrentAxiom(), desc)); } if (getCurrentOntology().containsDatatypeInSignature(desc.getIRI())) { profileViolations.add(new DatatypeIRIAlsoUsedAsClassIRI(getCurrentOntology(), getCurrentAxiom(), desc.getIRI())); } return null; }
OWLDatatype dt = factory.getOWLDatatype(editedObject); boolean classFound = cls.isBuiltIn(); boolean datatypeFound = dt.isBuiltIn();
OWLDatatype dt = factory.getOWLDatatype(editedObject); boolean classFound = cls.isBuiltIn(); boolean datatypeFound = dt.isBuiltIn();
OWLDatatype dt = factory.getOWLDatatype(editedObject); boolean classFound = cls.isBuiltIn(); boolean datatypeFound = dt.isBuiltIn();