.append(dep.getFrom().getId()).append(")"); for (final ExternalRef ref : term.getExternalRefs()) { out.append(", ").append(ref.getResource()).append(' ').append(ref.getReference());
for (ExternalRef externalRef : term.getExternalRefs()) { this.externalReferences.add(new ExternalRef(externalRef));
private static List<ExternalRef> getRefs(final Object annotation) { List<ExternalRef> refs = ImmutableList.of(); if (annotation instanceof Term) { refs = ((Term) annotation).getExternalRefs(); } else if (annotation instanceof Entity) { refs = ((Entity) annotation).getExternalRefs(); } else if (annotation instanceof Predicate) { refs = ((Predicate) annotation).getExternalRefs(); } else if (annotation instanceof Role) { refs = ((Role) annotation).getExternalRefs(); } else if (annotation instanceof Opinion) { refs = ((Opinion) annotation).getExternalRefs(); } else if (annotation instanceof OpinionExpression) { refs = ((OpinionExpression) annotation).getExternalRefs(); } else if (annotation instanceof OpinionTarget) { refs = ((OpinionTarget) annotation).getExternalRefs(); } else if (annotation instanceof OpinionHolder) { refs = ((OpinionHolder) annotation).getExternalRefs(); } else { throw new IllegalArgumentException("Unsupported annotation object: " + annotation); } return refs; }
for (ExternalRef externalRef : term.getExternalRefs()) { this.externalReferences.add(new ExternalRef(externalRef));
for (final ExternalRef ref : head.getExternalRefs()) { final URI typeURI = mintRefURI(ref.getResource(), ref.getReference()); if (ref.getResource().equals(NAFUtils.RESOURCE_SUMO)) {
boolean hasSynset = false; boolean hasSST = false; for (final ExternalRef ref : term.getExternalRefs()) { hasBBN |= RESOURCE_BBN.equalsIgnoreCase(ref.getResource()); hasSynset |= RESOURCE_WN_SYNSET.equalsIgnoreCase(ref.getResource());
for (final ExternalRef ref : head.getExternalRefs()) { if ("SUMO".equals(ref.getResource())) { final URI conceptURI = ValueFactoryImpl.getInstance().createURI(
List<ExternalRef> externalReferences = term.getExternalRefs(); if (externalReferences.size() > 0) { Element externalReferencesElem = externalReferencesToDOM(externalReferences);
List<ExternalRef> externalReferences = term.getExternalRefs(); if (externalReferences.size() > 0) { Element externalReferencesElem = externalReferencesToDOM(externalReferences);