diff --git a/orcid-api-common/src/main/java/org/orcid/api/common/writer/RDFMessageBodyWriter.java b/orcid-api-common/src/main/java/org/orcid/api/common/writer/RDFMessageBodyWriter.java index 5772abaa4c9..754000e89cb 100644 --- a/orcid-api-common/src/main/java/org/orcid/api/common/writer/RDFMessageBodyWriter.java +++ b/orcid-api-common/src/main/java/org/orcid/api/common/writer/RDFMessageBodyWriter.java @@ -145,7 +145,7 @@ public void writeTo(OrcidMessage xml, Class type, Type genericType, Annotatio // TODO: Load FOAF locally, and cached m.setDynamicImports(true); OrcidProfile orcidProfile = xml.getOrcidProfile(); - String profileUri = orcidProfile.getOrcid().getValue(); + String profileUri = orcidProfile.getOrcidId(); Ontology ont = m.createOntology(profileUri + "#"); ont.addImport(m.createResource(FOAF_0_1)); m.setNsPrefix("foaf", FOAF_0_1);