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

poke object graph through the REST API #54

Closed
wants to merge 1 commit into from
Closed

Conversation

cbeer
Copy link
Contributor

@cbeer cbeer commented May 3, 2013

This is just a thought exercise to poke SPARQL/UPDATE queries through the REST API and have them modify object properties. Obviously a lot of things wrong with this, but hey, it actually seems to (mostly) work.

cc: @ajs6f

import static org.slf4j.LoggerFactory.getLogger;

@Component
@Path("/rest/{path: .*}/fcr:graph")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ajs6f I couldn't get this to play nice as a part of the FedoraNodes routing.. it seemed like some of the IT requests were hitting the rdf-producing endpoints instead of the object profile one..

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea what FedoraNodes is/does, so I'll start there. More soon.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, FedoraNodes seems to be the endpoint formerly known as "fcr:describe". It's not clear to me why there's any difficulty-- you're not doing anything that plenty of other working endpoints aren't doing. What exactly are the paths that are failing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this is a question for @barmintor then..

When I tried to put this method in FedoraNodes, several of the integration tests (perhaps all of them?) that tried to get the ObjectProfile or DatastreamProfile XML/JSON responses were getting this response instead. I assume in the absence of an Accept header, JAX-RS magically chooses a response, and ended up choosing wrong.

Maybe this isn't a problem in the long term (if we kill of those profile responses), but was more than I wanted to bite off..

@cbeer
Copy link
Contributor Author

cbeer commented May 9, 2013

merged separately.

@cbeer cbeer closed this May 9, 2013
@cbeer cbeer deleted the rdf-all-the-things branch May 9, 2013 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants