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

Knowledge base export #14

Open
masda70 opened this issue Oct 20, 2018 · 1 comment
Open

Knowledge base export #14

masda70 opened this issue Oct 20, 2018 · 1 comment

Comments

@masda70
Copy link
Member

masda70 commented Oct 20, 2018

We want to be able to export the KB into some interchangeable format (NQuads, Trig ?)

@masda70 masda70 changed the title Knowledge base export (Turtle) Knowledge base export Oct 20, 2018
@masda70
Copy link
Member Author

masda70 commented Oct 20, 2018

Implemented by #15

To use, one can has to target the /export endpoint. The default format is TriG, however from a browser, the preferred format may be RDF/XML.

From a console, how can use curl to select the preferred format:

curl -H "Accept: application/trig" http://localhost:8080/export
curl -H "Accept: application/n-quads" http://localhost:8080/export
curl -H "Accept: application/rdf+xml" http://localhost:8080/export

Note that the KB contains named graphs, so a quad serialization is preferred. Triple formats such as Turtle (text/turtle) are supported, but obviously limited to the export of triples.

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

1 participant