refine-java | OpenRefine API Java Client | REST library
kandi X-RAY | refine-java Summary
kandi X-RAY | refine-java Summary
OpenRefine API Java Client
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Validates the HTTP version response
- Finds an existing node that matches the given path
- Parses a json string
- Parses the getVersion response
- Entry point for testing
- Executes the git command
- Executes the delete command
- Executes the create command
- Validates the HTTP CSRF token response and extracts the required data
- Parses a GetCsrf token response
- Executes the query and returns the result
- Process the delete project response
- Close the HTTP client
- Returns a JSON representation of this object
- Extracts and validates the expression preview
- Returns a String representation of the Token
- Returns a string representation of this object
- Executes the command
- Extracts the apply operations response
- Handle the extract project metadata response
- Validate the location and extract data
- Executes the getCsr - token command
- Validates the location
- Returns a string representation of this class
- Executes the export - rows command
- Executes the apply - operations
refine-java Key Features
refine-java Examples and Code Snippets
Community Discussions
Trending Discussions on refine-java
QUESTION
I am writing a Java program to use OpenRefine without directly using the web page. To do so, I am using Refine-Java API: https://github.com/dtap-gmbh/refine-java
The connection is successful, as I can get the version of the installed OpenRefine through GetVersionResponse versionResponse = RefineCommands.getVersion().build().execute(client);
However, when I try to create a project through : CreateProjectResponse createProjectResponse = RefineCommands.createProject().file(new File("src/test/java/resources/test-1.csv")).name("testOpenExample").format(UploadFormat.SEPARATOR_BASED).options(() -> options).build().execute(client);
I get the following error message: Unexpected response : HTTP/1.1 200 OK
and then nothing happens. This is surprising, as I can even see the command POST /command/core/create-project-from-upload (132ms)
throw when createProjectResponse is executed.
When I go check the "Open Project" page, no project has been created. I am using OpenRefine 3.3
...ANSWER
Answered 2020-Jul-20 at 07:54The issue was the version of OpenRefine. I changed to v2.8
and everything is working now.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install refine-java
You can use refine-java like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the refine-java component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page