Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ActiveTriples/linked-data-fragments
Basic linked data fragments endpoint.
https://github.com/ActiveTriples/linked-data-fragments
Last synced: 5 days ago
JSON representation
Basic linked data fragments endpoint.
- Host: GitHub
- URL: https://github.com/ActiveTriples/linked-data-fragments
- Owner: ActiveTriples
- License: cc0-1.0
- Created: 2015-06-08T15:04:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-20T11:49:06.000Z (over 7 years ago)
- Last Synced: 2024-08-02T12:49:23.648Z (3 months ago)
- Language: Ruby
- Size: 1.38 MB
- Stars: 15
- Watchers: 8
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - ActiveTriples/linked-data-fragments - Basic linked data fragments endpoint. (others)
README
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:startBlazegraph
-----------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:
* Download the latest subjects vocab from: [http://id.loc.gov/download/](http://id.loc.gov/download/) (the nt version of “LC Subject Headings (SKOS/RDF only)”)
* Extract the above download into a directory.
* Run the following command from that extraction directory:
curl -H 'Content-Type: text/turtle' --upload-file subjects-skos-20140306.nt -X POST "http://localhost:8988/blazegraph/sparql?context-uri=http://id.loc.gov/static/data/authoritiessubjects.nt.skos.zip"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:startUsage
=====Dataset Response
----------------In the default config, this is [http://localhost:3000?format=jsonld](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](http://localhost:3000/http://dbpedia.org/resource/Berlin?format=jsonld)
assuming that you have marmotta running and that linked data source configured in marmotta.