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'ed serialization #465

Closed
wants to merge 1 commit into from
Closed

RDF'ed serialization #465

wants to merge 1 commit into from

Conversation

giuliah
Copy link
Contributor

@giuliah giuliah commented Sep 11, 2014

No description provided.

@@ -132,6 +135,13 @@ private void addNodeStatements(final FedoraResource resource, final UriInfo uriI
FedoraExport.class).queryParam("format", key)
.buildFromMap(pathMap).toASCIIString());
model.add(s, HAS_SERIALIZATION, format);

//RDF the serialization
final Resource jcrXML = createResource(REPOSITORY_NAMESPACE + "jcrXml");
Copy link

Choose a reason for hiding this comment

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

The pattern looks good, but each serialization in this for-loop should provide its own details. Your implementation is hard-coded for jcr/xml serialization.

The variable "jcrXML" should probably be:

createResource(REPOSITORY_NAMESPACE + <key>);

Each "serializer" should provide its own "label" (i.e. "JCR/XML").
The subject (formatJcrXML) in the final model.add() should be the "format" resource.

@awoods
Copy link

awoods commented Nov 9, 2015

Closed due to age of PR.

@awoods awoods closed this Nov 9, 2015
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