fcrepo-exts / fcrepo-java-client Goto Github PK
View Code? Open in Web Editor NEWA Fedora 4 client library written in Java.
License: Apache License 2.0
A Fedora 4 client library written in Java.
License: Apache License 2.0
Currently the client doesn't provide a way to add the following allowed headers:
I would like to add support for all of the headers expected for basic object creation or retrieval.
In terms of implementation, the approach so far has been additional parameters to the post/put/get/patch methods, which may get unwieldy with the full set of options. I would favor a method override of the form:
public FcrepoResponse post(final URI url, final InputStream body, final Map headers)
Possibly with restrictions in each method so that it can only set allowed headers, but that may be iffy since some methods cover multiple endpoints with different headers allowed.
I'm not all that informed about camel, but I believe this would work there too?
Clone methods would allow a builder to be partially constructed and then cloned for reuse over several request-responses
It is unclear whom is responsible for managing HTTP connections that are created by the FcrepoClient on behalf of the user. Presumably the FcrepoClient is, but in my environment I'm running across the following issues:
A PR demonstrating the issue follows.
I try to create a new container with properties using json-ld file.
If i add json-ld file i always get 400 issue.
If file is empty, it creates an empty container without properties.
File file = new File("test.json");
try (FcrepoResponse response = new PostBuilder(uri, client).slug("test")
.body(file, "text/turtle").filename("test")
.perform();) {
URI location = response.getLocation();
System.out.println(response.getStatusCode());
Here small json-ld file
{
"@context": "https://json-ld.org/contexts/person.jsonld",
"@id": "http://dbpedia.org/resource/John_Lennon",
"name": "John Lennon",
"born": "1940-10-09"
}
If it's not possible to use json-ld, how should the other format look like?
when I try to build source code into jar with maven and 0.5 verson fcrepo, it show me some errors:
G:\fcrepo-java-client-master\fcrepo-java-client-master>mvn clean install
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.fcrepo.client:fcrepo-java-client:0.5.0-SNAPSHOT: Failure to find org.fcrepo:fcrepo-parent:pom:5.0.0-SNAPSHOT in http://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of snapshots-repo has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 6, column 11
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.fcrepo.client:fcrepo-java-client:0.5.0-SNAPSHOT (G:\fcrepo-java-client-master\fcrepo-java-client-master\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.fcrepo.client:fcrepo-java-client:0.5.0-SNAPSHOT: Failure to find org.fcrepo:fcrepo-parent:pom:5.0.0-SNAPSHOT in http://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of snapshots-repo has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 6, column 11 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Once #1 is merged, I would like there to be a new release of the fcrepo-java-client. The current release version is 0.1.0, and the next release should be 0.1.1. I am happy to manage the release itself.
@mikedurbin, @daniel-dgi, as project maintainers, do you have any thoughts on this? +1 if you agree, -1 if not.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.