private Set<OWLAnnotation> parseAnnotations() { String next = peekToken(); Set<OWLAnnotation> annotations = Collections.emptySet(); if (ANNOTATIONS.matches(next)) { consumeToken(); annotations = parseAnnotationList(); } return annotations; }
private Set<OWLAnnotation> parseAnnotations() { String next = peekToken(); Set<OWLAnnotation> annotations = Collections.emptySet(); if (ANNOTATIONS.matches(next)) { consumeToken(); annotations = parseAnnotationList(); } return annotations; }
private Set<OWLAnnotation> parseAnnotations() { String next = peekToken(); Set<OWLAnnotation> annotations = Collections.emptySet(); if (ANNOTATIONS.matches(next)) { consumeToken(); annotations = parseAnnotationList(); } return annotations; }
private Set<OWLAnnotation> parseAnnotations() { String next = peekToken(); Set<OWLAnnotation> annotations = Collections.emptySet(); if (ANNOTATIONS.matches(next)) { consumeToken(); annotations = parseAnnotationList(); } return annotations; }
private Set<OntologyAxiomPair> parseAnnotations(OWLAnnotationSubject s) { String header = consumeToken(); if (!ANNOTATIONS.matches(header)) { throw new ExceptionBuilder().withKeyword(ANNOTATIONS).build(); } Set<OWLOntology> onts = getOntologies(); Set<OntologyAxiomPair> pairs = new HashSet<>(); Set<OWLAnnotation> annos = parseAnnotationList(); for (OWLOntology ont : onts) { for (OWLAnnotation anno : annos) { if (getOntologyLoaderConfiguration().isLoadAnnotationAxioms()) { pairs.add( new OntologyAxiomPair(ont, df.getOWLAnnotationAssertionAxiom(s, anno))); } } } return pairs; }
private Set<OntologyAxiomPair> parseAnnotations(OWLAnnotationSubject s) { String header = consumeToken(); if (!ANNOTATIONS.matches(header)) { throw new ExceptionBuilder().withKeyword(ANNOTATIONS).build(); } Set<OWLOntology> onts = getOntologies(); Set<OntologyAxiomPair> pairs = new HashSet<>(); Set<OWLAnnotation> annos = parseAnnotationList(); for (OWLOntology ont : onts) { for (OWLAnnotation anno : annos) { if (getOntologyLoaderConfiguration().isLoadAnnotationAxioms()) { pairs.add( new OntologyAxiomPair(ont, df.getOWLAnnotationAssertionAxiom(s, anno))); } } } return pairs; }
private Set<OntologyAxiomPair> parseAnnotations(OWLAnnotationSubject s) { String header = consumeToken(); if (!ANNOTATIONS.matches(header)) { throw new ExceptionBuilder().withKeyword(ANNOTATIONS).build(); } Set<OWLOntology> onts = getOntologies(); Set<OntologyAxiomPair> pairs = new HashSet<>(); Set<OWLAnnotation> annos = parseAnnotationList(); for (OWLOntology ont : onts) { for (OWLAnnotation anno : annos) { if (getOntologyLoaderConfiguration().isLoadAnnotationAxioms()) { pairs.add( new OntologyAxiomPair(ont, df.getOWLAnnotationAssertionAxiom(s, anno))); } } } return pairs; }
private Set<OntologyAxiomPair> parseAnnotations(OWLAnnotationSubject s) { String header = consumeToken(); if (!ANNOTATIONS.matches(header)) { throw new ExceptionBuilder().withKeyword(ANNOTATIONS).build(); } Set<OWLOntology> onts = getOntologies(); Set<OntologyAxiomPair> pairs = new HashSet<>(); Set<OWLAnnotation> annos = parseAnnotationList(); for (OWLOntology ont : onts) { for (OWLAnnotation anno : annos) { if (getOntologyLoaderConfiguration().isLoadAnnotationAxioms()) { pairs.add( new OntologyAxiomPair(ont, df.getOWLAnnotationAssertionAxiom(s, anno))); } } } return pairs; }
} else if (ANNOTATIONS.matches(section)) { consumeToken(); annotations.addAll(parseAnnotationList()); } else if (eof(section)) { break;
} else if (ANNOTATIONS.matches(section)) { consumeToken(); annotations.addAll(parseAnnotationList()); } else if (eof(section)) { break;
} else if (ANNOTATIONS.matches(section)) { consumeToken(); annotations.addAll(parseAnnotationList()); } else if (eof(section)) { break;
} else if (ANNOTATIONS.matches(section)) { consumeToken(); annotations.addAll(parseAnnotationList()); } else if (eof(section)) { break;