@Override @Nullable public OWLObjectProperty getOWLObjectProperty(String name) { if (objectPropertyNames.contains(name)) { return df.getOWLObjectProperty(getIRI(name)); } return null; }
@Override @Nullable public OWLAnnotationProperty getOWLAnnotationProperty(String name) { if (annotationPropertyNames.contains(name)) { return df.getOWLAnnotationProperty(getIRI(name)); } return null; } }
@Override @Nullable public OWLNamedIndividual getOWLIndividual(String name) { if (individualNames.contains(name)) { return df.getOWLNamedIndividual(getIRI(name)); } return null; }
@Override @Nullable public OWLObjectProperty getOWLObjectProperty(String name) { if (objectPropertyNames.contains(name)) { return df.getOWLObjectProperty(getIRI(name)); } return null; }
@Override @Nullable public OWLDatatype getOWLDatatype(String name) { if (dataTypeNames.contains(name)) { return df.getOWLDatatype(getIRI(name)); } return null; }
@Override @Nullable public OWLNamedIndividual getOWLIndividual(String name) { if (individualNames.contains(name)) { return df.getOWLNamedIndividual(getIRI(name)); } return null; }
@Override @Nullable public OWLDatatype getOWLDatatype(String name) { if (dataTypeNames.contains(name)) { return df.getOWLDatatype(getIRI(name)); } return null; }
@Override @Nullable public OWLAnnotationProperty getOWLAnnotationProperty(String name) { if (annotationPropertyNames.contains(name)) { return df.getOWLAnnotationProperty(getIRI(name)); } return null; } }
@Override @Nullable public OWLClass getOWLClass(String name) { if ("Thing".equals(name) || "owl:Thing".equals(name)) { return df.getOWLThing(); } else if ("Nothing".equals(name) || "owl:Nothing".equals(name)) { return df.getOWLNothing(); } else if (classNames.contains(name)) { return df.getOWLClass(getIRI(name)); } return null; }
@Override @Nullable public OWLClass getOWLClass(String name) { if ("Thing".equals(name) || "owl:Thing".equals(name)) { return df.getOWLThing(); } else if ("Nothing".equals(name) || "owl:Nothing".equals(name)) { return df.getOWLNothing(); } else if (classNames.contains(name)) { return df.getOWLClass(getIRI(name)); } return null; }
private OWLDataProperty getOWLDataProperty(String name) { OWLDataProperty prop = checker.getOWLDataProperty(name); if (prop == null && dataPropertyNames.contains(name)) { prop = df.getOWLDataProperty(getIRI(name)); } if (prop == null) { throw new ExceptionBuilder().withData().build(); } return prop; }
private OWLAnnotationProperty getOWLAnnotationProperty(String name) { OWLAnnotationProperty prop = checker.getOWLAnnotationProperty(name); if (prop == null && annotationPropertyNames.contains(name)) { prop = df.getOWLAnnotationProperty(getIRI(name)); } if (prop == null) { throw new ExceptionBuilder().withAnn().build(); } return prop; }
private OWLDatatype getOWLDatatype(String name) { OWLDatatype dt = checker.getOWLDatatype(name); if (dt == null && dataTypeNames.contains(name)) { dt = df.getOWLDatatype(getIRI(name)); } if (dt == null) { throw new ExceptionBuilder().withDt().build(); } return dt; }
private OWLNamedIndividual getOWLNamedIndividual(String name) { OWLNamedIndividual ind = checker.getOWLIndividual(name); if (ind == null && individualNames.contains(name)) { ind = df.getOWLNamedIndividual(getIRI(name)); } if (ind == null) { throw new ExceptionBuilder().withInd().build(); } return ind; }
private OWLDatatype getOWLDatatype(String name) { OWLDatatype dt = checker.getOWLDatatype(name); if (dt == null && dataTypeNames.contains(name)) { dt = df.getOWLDatatype(getIRI(name)); } if (dt == null) { throw new ExceptionBuilder().withDt().build(); } return dt; }
private OWLObjectProperty getOWLObjectProperty(String name) { OWLObjectProperty prop = checker.getOWLObjectProperty(name); if (prop == null && objectPropertyNames.contains(name)) { prop = df.getOWLObjectProperty(getIRI(name)); } if (prop == null) { throw new ExceptionBuilder().withObject().build(); } return prop; }
private OWLObjectProperty getOWLObjectProperty(String name) { OWLObjectProperty prop = checker.getOWLObjectProperty(name); if (prop == null && objectPropertyNames.contains(name)) { prop = df.getOWLObjectProperty(getIRI(name)); } if (prop == null) { throw new ExceptionBuilder().withObject().build(); } return prop; }
private OWLAnnotationProperty getOWLAnnotationProperty(String name) { OWLAnnotationProperty prop = checker.getOWLAnnotationProperty(name); if (prop == null && annotationPropertyNames.contains(name)) { prop = df.getOWLAnnotationProperty(getIRI(name)); } if (prop == null) { throw new ExceptionBuilder().withAnn().build(); } return prop; }
private OWLNamedIndividual getOWLNamedIndividual(String name) { OWLNamedIndividual ind = checker.getOWLIndividual(name); if (ind == null && individualNames.contains(name)) { ind = df.getOWLNamedIndividual(getIRI(name)); } if (ind == null) { throw new ExceptionBuilder().withInd().build(); } return ind; }
private OWLClass getOWLClass(String name) { OWLClass cls = checker.getOWLClass(name); if (cls == null && classNames.contains(name)) { cls = df.getOWLClass(getIRI(name)); } if (cls == null) { throw new ExceptionBuilder().withKeyword(potentialKeywords).withClass().build(); } return cls; }