Skip to content

Commit

Permalink
Merge pull request #235 from stain/dev-rdf
Browse files Browse the repository at this point in the history
RDF support for orcid - FOAF profile
  • Loading branch information
rcpeters committed Jun 6, 2013
2 parents 490ab76 + 6a930f6 commit 98cd4c6
Show file tree
Hide file tree
Showing 14 changed files with 3,844 additions and 9 deletions.
4 changes: 4 additions & 0 deletions orcid-api-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
</dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-core</artifactId>
</dependency>

<!-- Test dependencies -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ public class OrcidApiConstants {

public static final String ORCID_XML = "application/orcid+xml; qs=3";
public static final String ORCID_JSON = "application/orcid+json; qs=2";
public static final String TEXT_TURTLE = "text/turtle; qs=3";
public static final String TEXT_TURTLE_UTF8 = "text/turtle; charset=utf8; qs=3";
public static final String TEXT_N3 = "text/n3; qs=2";
public static final String TEXT_N3_UTF8 = "text/n3; charset=utf8; qs=2";

public static final String APPLICATION_RDFXML = "application/rdf+xml; qs=2";
public static final String VND_ORCID_XML = "application/vnd.orcid+xml; qs=5";
public static final String VND_ORCID_JSON = "application/vnd.orcid+json; qs=4";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,33 @@ public interface OrcidApiService<T> {
@Path(BIO_PATH)
T viewBioDetailsJson(@PathParam("orcid") String orcid);

/**
* GETs the RDF/XML representation of the ORCID record containing only the
* Biography details
*
* @param orcid
* the ORCID that corresponds to the user's record
* @return the RDF/XML representation of the ORCID record
*/
@GET
@Produces(value = { APPLICATION_RDFXML })
@Path(BIO_PATH)
T viewBioDetailsRdf(@PathParam("orcid") String orcid);


/**
* GETs the RDF Turtle representation of the ORCID record containing only the
* Biography details
*
* @param orcid
* the ORCID that corresponds to the user's record
* @return the RDF Turtle representation of the ORCID record
*/
@GET
@Produces(value = { TEXT_N3, TEXT_TURTLE })
@Path(BIO_PATH)
T viewBioDetailsTurtle(@PathParam("orcid") String orcid);

/**
* GETs the HTML representation of the ORCID external identifiers
*
Expand Down
Loading

0 comments on commit 98cd4c6

Please sign in to comment.