public static void setPathToPerson(Person person, String orcid) { if (person != null) { person.setPath(PERSON.replace("{orcid}", orcid)); if (person.getAddresses() != null) { setPathToAddresses(person.getAddresses(), orcid); } if (person.getBiography() != null) { setPathToBiography(person.getBiography(), orcid); } if (person.getEmails() != null) { setPathToEmail(person.getEmails(), orcid); } if (person.getExternalIdentifiers() != null) { setPathToExternalIdentifiers(person.getExternalIdentifiers(), orcid); } if (person.getKeywords() != null) { setPathToKeywords(person.getKeywords(), orcid); } if (person.getOtherNames() != null) { setPathToOtherNames(person.getOtherNames(), orcid); } if (person.getResearcherUrls() != null) { setPathToResearcherUrls(person.getResearcherUrls(), orcid); } } }
private Individual describePerson(Record record, OntModel m) { String orcidUri = record.getOrcidIdentifier().getUri(); Individual person = m.createIndividual(orcidUri, FOAF.Person); person.addRDFType(PROV.Person); if (record.getPerson() == null) { return person; } describePersonalDetails(record.getPerson().getName(), person, m); describeContactDetails(record.getPerson(), person, m); describeBiography(record.getPerson().getBiography(), person, m); describeResearcherUrls(record.getPerson().getResearcherUrls(), person, m); return person; }
if (person.getBiography() != null) { if (this.isNewMetadata("biography", person.getBiography().getContent())) { this.addOtherMetadata("biography", person.getBiography().getContent());
theBiography = this.getBiography(); strategy.appendField(locator, this, "biography", buffer, theBiography);
if (person.getBiography() != null) { try { checkAndFilter(orcid, person.getBiography(), READ_BIO_REQUIRED_SCOPE, true); } catch (Exception e) { person.setBiography(null);