From 558a1d7e5f28d2a3fa1a9c7fa4a0e43db672dbb6 Mon Sep 17 00:00:00 2001 From: Stian Soiland-Reyes Date: Thu, 23 May 2013 21:49:35 +0100 Subject: [PATCH] get URL for orcID not orcIDID --- .../java/org/orcid/api/common/writer/RDFMessageBodyWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);