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

https://github.com/r0man/freebase-clj

Clojure Library for Freebase.
https://github.com/r0man/freebase-clj

Last synced: 6 months ago
JSON representation

Clojure Library for Freebase.

Awesome Lists containing this project

README

          

# freebase-clj [![Build Status](https://travis-ci.org/r0man/freebase-clj.png)](https://travis-ci.org/r0man/freebase-clj)

Clojure Library for Freebase.

## Installation

Via Clojars: http://clojars.org/freebase-clj

## Usage

Find an object in the database whose type is "/music/artist" and whose name is "The Police". Then return its set of albums.

(require 'freebase.core)

(query {:type :/music/artist :name "The Police" :album []})
;=> {:album
;=> ["Outlandos d'Amour"
;=> "Reggatta de Blanc"
;=> "Zenyattà Mondatta"
;=> ...
;=> "Can't Stand Losing You"],
;=> :name "The Police",
;=> :type "/music/artist"}

## License

Copyright (C) 2013 Roman Scherer

Distributed under the Eclipse Public License, the same as Clojure.