Question regarding Stardog.js

Hi, I am using Stardog.js in my Node.js application. What my application does is, it makes an API call to another server which returns a JSON response and I am trying to store that data in my StarDog DB. So I have one question:
I have to map the JSON response to an RDF Graph. Do I have to implement such a function in my app (say through which I generate a .ttl file) or can I create and use an SMS mapping file to do the same?

Any help will be appreciated.

Thanks,
Anurag.

Hi,

Assuming that your server isn't returning JSON-LD (which you would be able to add directly into Stardog), you can indeed use an SMS mapping file to import the JSON as per the docs. I do not believe that there is a stardog.js command to do this, however, so you would need to execute a CLI command.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.