Skip to content

Commit 0cd7b8c

Browse files
authored
Merge pull request #302 from CLARIAH/dev
Merging dev updates for release 1.3.4
2 parents d229035 + b665036 commit 0cd7b8c

25 files changed

+806
-314
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Tweet release
2+
# Tweets will happen when a new release is published
3+
on:
4+
release:
5+
types:
6+
- published
7+
jobs:
8+
tweet:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: GitHub Twittction
12+
uses: m1ner79/Github-Twittction@v1.0.1
13+
with:
14+
# Message posted on twitter
15+
twitter_status: "Release ${{github.event.release.tag_name}} of ${{github.event.repository.full_name}} is out! Check out the release notes ${{github.event.release.html_url}}"
16+
# Twitter Consumer Key is referenced here
17+
twitter_consumer_key: ${{ secrets.TWITTER_CONSUMER_KEY }}
18+
# Twitter Consumer Secret is referenced here
19+
twitter_consumer_secret: ${{ secrets.TWITTER_CONSUMER_SECRET }}
20+
# Twitter Access Token Key is referenced here
21+
twitter_access_token_key: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }}
22+
# Twitter Access Token Secret is referenced here
23+
twitter_access_token_secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}

.zenodo.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"creators": [
3+
{
4+
"affiliation": "Vrije Universiteit Amsterdam",
5+
"name": "Meroño-Peñuela, Albert"
6+
},
7+
{
8+
"name": "Hoekstra, Rinke"
9+
},
10+
{
11+
"affiliation": "Netherlands eScience Center",
12+
"name": "Martinez, Carlos",
13+
"orcid": "0000-0001-5565-7577"
14+
},
15+
{
16+
"affiliation": "International Institute of Social History",
17+
"name": "Zijdeman, Richard"
18+
}
19+
],
20+
"description": "grlc, the git repository linked data API constructor, automatically builds Web APIs using SPARQL queries stored in git repositories.",
21+
"doi": "10.5281/zenodo.1064392",
22+
"keywords": [
23+
"swagger-ui",
24+
"sparql",
25+
"linked-data",
26+
"semantic-web",
27+
"linked-data-api"
28+
],
29+
"license": {
30+
"id": "MIT"
31+
},
32+
"publication_date": "2017-11-22",
33+
"title": "grlc",
34+
"version": "1.3.4"
35+
}

CITATION.cff

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,11 @@ license: MIT
2525
message: "If you use this software, please cite it as below."
2626
repository-code: "https://github.com/CLARIAH/grlc"
2727
title: grlc
28+
abstract: grlc, the git repository linked data API constructor, automatically builds Web APIs using SPARQL queries stored in git repositories.
29+
keywords:
30+
- "swagger-ui"
31+
- sparql
32+
- "linked-data"
33+
- "semantic-web"
34+
- "linked-data-api"
2835
version: "1.3.4"

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include requirements.txt
22
include requirements-test.txt
3+
include CITATION.cff

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ grlc is a lightweight server that takes SPARQL queries (stored in a GitHub repos
2929
For a quick usage tutorial check out our wiki [walkthrough](https://github.com/CLARIAH/grlc/wiki/Quick-tutorial) and [list of features](https://github.com/CLARIAH/grlc/wiki/Features).
3030

3131
## Usage
32-
grlc assumes that you have a collection of SPARQL queries as .rq files (like [this](https://github.com/CEDAR-project/Queries)). grlc will create an API operation per such a SPARQL query/.rq file. Your queries can include special [decorators](#decorator-syntax) to add extra functionality to your API.
32+
grlc assumes that you have a collection of SPARQL queries as .rq files (like [this](https://github.com/CLARIAH/grlc-queries)). grlc will create one API operation for each SPARQL query/.rq file in the collection.
33+
34+
Your queries can add API parameters to each operation by using the [parameter mapping](https://github.com/CLARIAH/grlc/wiki/Parameter-Mapping) syntax. This allows your query to define query variables which will be mapped to API parameters for your API operation ([see here](https://github.com/CLARIAH/grlc-queries/blob/master/enumerate.rq) for an example).
35+
36+
Your queries can include special [decorators](#decorator-syntax) to add extra functionality to your API.
3337

3438
### Query location
3539
grlc can load your query collection from different locations: from a GitHub repository (`api-git`), from local storage (`api-local`), and from a specification file (`api-url`). Each type of location has specific features and is accessible via different paths. However all location types produce the same beautiful APIs.
@@ -51,7 +55,17 @@ grlc can also use a subdirectory inside your Github repo. This can be done by in
5155
> API path:
5256
`http://grlc-server/api-local/`
5357

54-
grlc can generate an API from a local directory in the computer where your grlc server runs. You can configure the location of this folder in your [grlc server configuration file](#grlc-server-configuration). See also [how to install and run your own grlc instance](#install-and-run).
58+
grlc can generate an API from a local directory in the computer where your grlc server runs. You can configure the location of this directory in your [grlc server configuration file](#grlc-server-configuration). See also [how to install and run your own grlc instance](#install-and-run).
59+
60+
When the API is generated from a local directory, API information can be loaded from a configuration file in that folder. This file must be called `local-api-config.ini` and it has the following format:
61+
```ini
62+
[repo_info]
63+
repo_title = Some title
64+
api_description = Description of my API
65+
contact_name = My name
66+
contact_url = https://mypage/
67+
licence_url = https://mylicence/
68+
```
5569

5670
#### From a specification file
5771
> API path:
@@ -66,13 +80,15 @@ For example, assuming your queries are listed on spec file: `https://raw.githubu
6680
A grlc API specification file is a YAML file which includes the necessary information to create a grlc API, most importantly a list of URLs to decorated and HTTP-dereferenceable SPARQL queries. This file should contain the following fields
6781

6882
- `title`: Title of my API
83+
- `description`: API description
6984
- `contact`: Contact details of the API owner. This should include the `name` and `url` properties.
7085
- `licence`: A URL pointing to the licence file for the API.
7186
- `queries`: A list of URLs of SPARQL queries (with header decorators).
7287

7388
For example:
7489
```YAML
7590
title: Title of my API
91+
description: Description of my API
7692
contact:
7793
name: Contact Name
7894
url: https://www.mywebsite.org
@@ -223,6 +239,7 @@ Check these out:
223239
- http://grlc.io/api-git/CLARIAH/wp4-queries-hisco
224240
- http://grlc.io/api-git/albertmeronyo/lodapi
225241
- http://grlc.io/api-git/albertmeronyo/lsq-api
242+
- https://grlc.io/api-git/CEDAR-project/Queries
226243

227244
You'll find the sources of these and many more in [GitHub](https://github.com/search?o=desc&q=endpoint+summary+language%3ASPARQL&s=indexed&type=Code&utf8=%E2%9C%93)
228245

bin/grlc-server

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def runViaGunicorn(port=8088):
3939
options = {
4040
'bind': '%s:%d' % ('0.0.0.0', port),
4141
'workers': 20,
42-
'debug': static.LOG_DEBUG_MODE
42+
'debug': static.LOG_DEBUG_MODE,
43+
'timeout': 90
4344
}
4445
StandaloneApplication(grlc_app, options).run()
4546

0 commit comments

Comments
 (0)