Skip to content
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

Adding Stardog as target graph database to write SEPSES kg triples #2

Open
Radu3000 opened this issue Feb 18, 2020 · 4 comments
Open

Comments

@Radu3000
Copy link

What do we need to do to be able to write triples to Stardog?

I have posted a related question at https://community.stardog.com/t/sepses-kg-engine-to-write-triples-to-stardog/2251

So far I have tried:
#================SPARQL Endpoint=========================
SparqlEndpoint=https://host:port/Test2/query
#Triplestore=fuseki;virtuoso;stardog;dummy
Triplestore=stardog
UseAuth=true
...

@fekaputra
Copy link
Contributor

Hi, we have an interface that needs to be implemented for each triplestore that you are using https://github.com/sepses/cyber-kg-converter/blob/master/src/main/java/ac/at/tuwien/ifs/sepses/storage/Storage.java.

We have the implementation for Jena Fuseki (https://github.com/sepses/cyber-kg-converter/blob/master/src/main/java/ac/at/tuwien/ifs/sepses/storage/impl/FusekiStorage.java) and Virtuoso (https://github.com/sepses/cyber-kg-converter/blob/master/src/main/java/ac/at/tuwien/ifs/sepses/storage/impl/VirtuosoStorage.java), but yet to create the implementation for Stardog. Since this is open-source software, it would be encouraged that you write the implementation for stardog (and make a PR afterward).

@jbalint
Copy link

jbalint commented Feb 18, 2020

@Radu3000 assuming the SPARQL INSERT statements will work already with the Fuseki implementation, you can just add s-put and s-post scripts which load the data into Stardog instead of Fuseki. no code changes needed

@Radu3000
Copy link
Author

Radu3000 commented Feb 18, 2020

@jbalint - fuseki s-post script has over 725 lines of code ... I don't think you are suggesting to re-write it for Stardog use... ;) ... it would be like re-writing "stardog-admin import" command ...

Maybe API calls is a better route?

My 2c

@jbalint
Copy link

jbalint commented Feb 18, 2020

@Radu3000 no, I am not suggesting you rewrite anything. I am suggesting you create a script called s-post where you just call stardog data add with the endpoint, named graph, and filename... a 1-liner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants