Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/doriantaylor/clj-rdfa-generator

Generate RDFa (and by the look of things JSON-LD) in Clojure from (currently) Jena
https://github.com/doriantaylor/clj-rdfa-generator

Last synced: 24 days ago
JSON representation

Generate RDFa (and by the look of things JSON-LD) in Clojure from (currently) Jena

Awesome Lists containing this project

README

        

# rdfa-generator

DOES WHAT IT SAYS ON THE TIN!

## Usage

```
;; load the damn thing
(require '[rdfa-generator.core :as r])

;; fire up a context
(def ctx (r/new-context))

;; load some rdf data
(r/parse (:model ctx) "some:/uri/to/some/rdf.n3")

;; now load all the vocabs found in the data
(r/populate-ontology ctx)

;; now you can generate some crap that looks like json-ld
(r/generate ctx "some://uri/to/some/resource")

;; and now i need to write some more code
```

## License

Copyright © 2016 Dorian Taylor

Distributed under
the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).