You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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}}"
Copy file name to clipboardExpand all lines: README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,11 @@ grlc is a lightweight server that takes SPARQL queries (stored in a GitHub repos
29
29
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).
30
30
31
31
## 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.
33
37
34
38
### Query location
35
39
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
51
55
> API path:
52
56
`http://grlc-server/api-local/`
53
57
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
+
```
55
69
56
70
#### From a specification file
57
71
> API path:
@@ -66,13 +80,15 @@ For example, assuming your queries are listed on spec file: `https://raw.githubu
66
80
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
67
81
68
82
-`title`: Title of my API
83
+
-`description`: API description
69
84
-`contact`: Contact details of the API owner. This should include the `name` and `url` properties.
70
85
-`licence`: A URL pointing to the licence file for the API.
71
86
-`queries`: A list of URLs of SPARQL queries (with header decorators).
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)
0 commit comments