[go: nahoru, domu]

Skip to content
dkapoor edited this page Aug 17, 2016 · 10 revisions

Karma can publish the modeled data as RDF and as JSON-LD

Publishing Data as RDF

To publish the data as RDF, click on the worksheet title, and from the dropdown menu, select Publish -> RDF as shown below:

This brings up the Publish RDF Dialog

and you can either create a "New Context" or Use an existing context from the dropdown. If Creating a new Context, you would need to provide the URI for the context. There is an option to either replace existing data in the context or to Append to it. You can also select to "Add Inverse Properties" to the RDF. Click "Publish" once done. This will publish the RDF to the OpenRDF Store (Link at the top right corner of the Karma page) and provide a link "RDF" next to the worksheet title to view the triples

#Publishing Data as JSON-LD To publish the data as JSON-LD, click on the top/root class from the model.

It opens up the dialog for the selected class as shown below

Click on the Export JSON button on the left. This brings up another dialog to select if you wish to use a 'Context' and how it should create or use it. The context links object properties in a JSON document to concepts in an ontology. It is useful for converting the full URIs into short JSON property names.

You can select to Use a Context, and if already have a context, you can enter its URL or "Upload" it. If you do not have a context, you can select the option to "Use @context from model". This will create a default context from the model and publish both the context and the model. After making the selections, click on "Submit". Karma will then publish the Context and the JSON-LD and the links for both will appear in the worksheet title menu as shown below

Below is the context that gets generated from the model:

and the corresponding JSON-LD:

Clone this wiki locally