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
- How to combine ontotext GraphDB autocomplete and SPARQL to refine searching?
- Expansive path expressions in quoted triples?
- Save Semantic data in GraphDB triplestore using Nifi
- How to select only direct subClassOf element in a GraphDB custom ruleset?
- How to load data from Apache nifi to GraphDB
- Count nodes in SPARQL property path to find nearest node of type
- Selecting graphs in GraphDB using filter exists does not seem to work
- Does geof:buffer work? If so, can someone demonstrate a working query
- Geosparql geof:distance measurement in query yields bad or no result
- Upload a massive rdf file into GraphDB
- Loading SNOMED ontology into GraphDB
- GeoSPARQL plugin properties inconsistent after enabling the plugin
- Use RDF4J API to access GraphDB secured wih OIDC
- How to setup GraphDB 10.x.x with JMX?
- Why is GraphDB running out of memory during inferencing?
Related Questions in ONTOREFINE
- Tabular import function missing on Graph DB desktop, any solutions?
- OntoText Refine - UI Issues
- How do we give an identification to a relationship in OntoRefine RDF mapping?
- Adding rdf:type to a blank node in Ontorefine
- How to manage the memory allocation for GraphDB's OntoRefine (based on OpenRefine)
- Adding nested triple to blank nodes in OntoRefine not possible?
- Where is the “SPARQL” button in OntoRefine tab of GraphDB 9.5 Free Edition?
- Using Ontorefine to import data from a Postgresql database
- How to Update the Input File of an OntoRefine project in GraphDB
- 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