Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDF support for orcid - FOAF profile #235

Merged
merged 1 commit into from
Jun 6, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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