private Set<OWLAnnotation> getXRefAnnotations(Matcher matcher) { Set<OWLAnnotation> annotations = new HashSet<OWLAnnotation>(); String xrefs = matcher.group(XREF_GROUP); if (xrefs != null) { StringTokenizer tokenizer = new StringTokenizer(xrefs, ","); while(tokenizer.hasMoreTokens()) { String xref = tokenizer.nextToken(); OWLAnnotation xrefAnnotation = getConsumer().parseXRef(xref); annotations.add(xrefAnnotation); } } return annotations; }
private Set<OWLAnnotation> getXRefAnnotations(Matcher matcher, OWLDataFactory df) { Set<OWLAnnotation> annotations = new HashSet<OWLAnnotation>(); String xrefs = matcher.group(XREF_GROUP); if (xrefs != null) { StringTokenizer tokenizer = new StringTokenizer(xrefs, ","); while(tokenizer.hasMoreTokens()) { String xrefValue = tokenizer.nextToken(); OWLAnnotation xrefAnnotation = getConsumer().parseXRef(xrefValue); annotations.add(xrefAnnotation); } } return annotations; }
private Set<OWLAnnotation> getXRefAnnotations(Matcher matcher) { Set<OWLAnnotation> annotations = new HashSet<OWLAnnotation>(); String xrefs = matcher.group(XREF_GROUP); if (xrefs != null) { StringTokenizer tokenizer = new StringTokenizer(xrefs, ","); while(tokenizer.hasMoreTokens()) { String xrefValue = tokenizer.nextToken(); OWLAnnotation xrefAnnotation = getConsumer().parseXRef(xrefValue); annotations.add(xrefAnnotation); } } return annotations; }
private Set<OWLAnnotation> getXRefAnnotations(Matcher matcher, OWLDataFactory df) { Set<OWLAnnotation> annotations = new HashSet<OWLAnnotation>(); String xrefs = matcher.group(XREF_GROUP); if (xrefs != null) { StringTokenizer tokenizer = new StringTokenizer(xrefs, ","); while(tokenizer.hasMoreTokens()) { String xref = tokenizer.nextToken(); OWLAnnotation xrefAnnotation = getConsumer().parseXRef(xref); annotations.add(xrefAnnotation); } } return annotations; }
public void handle(String currentId, String value, String qualifierBlock, String comment) { if (currentId == null) { return; } OWLAnnotation xrefAnnotation = getConsumer().parseXRef(value); IRI subject = getIRIFromOBOId(currentId); OWLAnnotationAssertionAxiom ax = getDataFactory().getOWLAnnotationAssertionAxiom(xrefAnnotation.getProperty(), subject, xrefAnnotation.getValue()); applyChange(new AddAxiom(getOntology(), ax)); if(getConsumer().isTypedef() && xrefAnnotation.getValue() instanceof IRI) { IRI xrefIRI = (IRI) xrefAnnotation.getValue(); String typedefId = getConsumer().getCurrentId(); getConsumer().addSymbolicIdMapping(typedefId, xrefIRI); } }
@Override public void handle(String currentId, String value, String qualifierBlock, String comment) { if (currentId == null) { return; } OWLAnnotation xrefAnnotation = getConsumer().parseXRef(value); IRI subject = getIRIFromOBOId(currentId); OWLAnnotationAssertionAxiom ax = getDataFactory().getOWLAnnotationAssertionAxiom(xrefAnnotation.getProperty(), subject, xrefAnnotation.getValue()); applyChange(new AddAxiom(getOntology(), ax)); if(getConsumer().isTypedef() && xrefAnnotation.getValue() instanceof IRI) { IRI xrefIRI = (IRI) xrefAnnotation.getValue(); String typedefId = getConsumer().getCurrentId(); getConsumer().addSymbolicIdMapping(typedefId, xrefIRI); } }