Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Linked Data Fragments

A linked data fragment which takes an arbitrary subject and returns a cached result.

Configuration

YAML

You need a ldf.yml file configured. There are currently two sample files for configurations of two different backend caching layers: ldf.yml.sample_marmotta and ldf.yml.sample_repository.

Marmotta

If you do not already have a marmotta instance, you can use an instance that runs off of jetty by running the following rake task:

rake ldfjetty:install

Once that finishes, please copy config/jetty.yml.sample to config/jetty.yml. You can change the defaults.

Once that is all setup, here are some commands that can be run to use the marmotta instance:

rake ldfjetty:stop
rake ldfjetty:config
rake ldfjetty:start

Blazegraph

If you do not already have a blazegraph instance, you can use an instance that runs off of jetty by running the following rake task:

rake ldfjetty:install

Once that finishes, please copy config/ldfjetty.yml.sample to config/ldfjetty.yml. You can change the defaults.

It is recommended that you populate Blazegraph with LoC for terms to work. To do this:

Once that is all setup, here are some commands that can be run to use the blazegraph instance:

rake ldfjetty:stop
rake ldfjetty:config
rake ldfjetty:start

Usage

Dataset Response

In the default config, this is http://localhost:3000?format=jsonld

Resolving a subject uri

In the default config, this would be something like http://localhost:3000/http://dbpedia.org/resource/Berlin?format=jsonld assuming that you have marmotta running and that linked data source configured in marmotta.

About

Basic linked data fragments endpoint.

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.