-
Notifications
You must be signed in to change notification settings - Fork 34
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
Use of UDFs when fetching data from Oracle for building KG #239
Comments
Hi @IshanDindorkar, The UDFs should work with any data source. Do you get any specific error? Regarding your sencond question, the reason for which there is no UDF example in that location is that it only contains the R2RML test cases which do not include UDFs. |
Thank you very much for your prompt response.
The UDF looks like this
Could you please advise what I am missing here and help me in fixing the issue. Thank you very much for your support. Appreciate it. |
I think that the problem is that you are mixing R2RML and RML. For instance, you seem to be using RML but you employ Also, use the latest prefixes in the mapping: @prefix rml: <http://w3id.org/rml/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix fno: <https://w3id.org/function/ontology#> .
@prefix morph-kgc: <https://github.com/morph-kgc/morph-kgc/function/built-in.ttl#> .
@prefix grel: <http://users.ugent.be/~bjdmeest/function/grel.ttl#> .
@prefix idlab-fn: <http://example.com/idlab/function/> . Some additional advice:
|
@arenas-guerrero-julian Thank you so much for your great response and pointing us in the right direction. Really appreciate it :) |
Hello Team,
Thank you for your work.
I recently started using Morph-KGC library for one of the use cases focused on building Knowledge Graph from a relational database like Oracle. We are trying to explore if there is a possibility to use UDFs (Python based user-defined functions) to process incoming data from database before generating KG out of it. To do it, we followed steps mentioned in the official documentation and tried same mapping as shown in the doc. The only difference being the source of data used for example is a CSV file while in our case we are fetching data from an Oracle db. After spending some time, we found this test for UDF functionality and tried to replicate the mappings and config file. It works fine with CSV as an input but unfortunately, the UDF is not working as expected when the source of data is an Oracle table.
Another thing which we noticed is that there are so many examples when db is being using in the mappings file to fetch data and build KG at this location in the repository but not even a single test shows use of UDF. Is it just a coincidence or there is some other reason for it? Could you please advise.
Thank you very much for your support. Appreciate it.
The text was updated successfully, but these errors were encountered: