I'm trying to script RDF/OWL data (re)loading to a GraphDB store and I wonder how to be able to process again a CSV file through the Ontorefine component, keeping the columns modifications and the RDF mapping, only using the REST API.
How to Update the Input File of an OntoRefine project in GraphDB
309 Views Asked by Laurent Pierre At
1
There are 1 best solutions below
Related Questions in GRAPHDB
- using contexts for multiple data sets in graphdb repo
- How to integrate tabular data into GraphDB automatically?
- Ontotext GraphDB process terminates
- GraphDB Free 8.3: generate war files
- Ontotext GraphDB Repository cannot be used for queries
- Tool to pre-process .rdf for GraphDB workbench import?
- Not able to pull graphdb-workbench from docker hub
- How to increase max header size for GraphDB standalone server?
- How could i find the store size of a repository in GraphDB?
- Connect to GraphDB instance with rdf4j
- Get the timestamp of INSERT SPARQL Query in GraphDB
- GraphDB or RDF4J bug? BOUND() yields wrong value
- graphDB User/PW proxy settings lead to statuscode 407
- GraphDB custom ruleset for inference over RDF* statements
- is it possible to 'clone' all repositories on a running GraphDB instance to a new server?
Related Questions in ONTOREFINE
- How to Update the Input File of an OntoRefine project in GraphDB
- Using Ontorefine to import data from a Postgresql database
- How to manage the memory allocation for GraphDB's OntoRefine (based on OpenRefine)
- Adding rdf:type to a blank node in Ontorefine
- Tabular import function missing on Graph DB desktop, any solutions?
- Where is the “SPARQL” button in OntoRefine tab of GraphDB 9.5 Free Edition?
- Adding nested triple to blank nodes in OntoRefine not possible?
- How do we give an identification to a relationship in OntoRefine RDF mapping?
- OntoText Refine - UI Issues
- How to set and update properties on existing nodes via CSV file using SPARQL on GraphDB
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
One way to script this is by using the rdf-mapper REST API, which accepts a column mapping file and a tabular file and streams the result to an input location file.
This file can afterwards be imported into GraphDB by using the import server file REST API (for which more information can be found here https://graphdb.ontotext.com/free/devhub/workbench-rest-api/curl-commands.html#data-import ).
Please keep in mind that when starting GraphDB, you need to input the directory from which you plan to import the RDF file by using this property:
Here is a small example script of how you can import a CSV file as RDF .ttl document using cURL:
P.S. Here is how to create the needed mapping.json by using GraphDB Workbench and following these steps: Go to Ontorefine -> Select and Import a tabular file -> Select Create Project -> Select RDF Mapping / Edit RDF Mapping -> Then a new window opens where you can configure the said mapping -> After configuring the mapping select "Download JSON" . The downloaded JSON mapping can be used then with the example provided above.
For more information take a look at https://graphdb.ontotext.com/free/loading-data-using-ontorefine.html?highlight=mapping